Konrad Micinski a écrit :
> Hi there,
> 
> this is my third atempt to build a Pure64 system (now I'm running an
> AMD64 machine in 32bit-mode). Both previous builds failed somewhere in
> Chapter 10 because of my mistakes :) But this time I cannot even move
> past chapter 5.8. While compiling glibc (exactly nscd_stat.c) I get
> errors about missing headers: linux/errno.h, asm/prctl.h,
> linux/limits.h, asm/unistd.h, linux/param.h, asm/socket.h . I
> double-checked the headers - they _are_ installed. I even tried to
> replace the heders from CLFS with those from build system
> (Slackware-current, 2.6.16.17) - without success, the same error. I
> also checked the syntax for possible letter-errors - none found :(
> Does anyone has any idea what am I doing wrong? (well, if it is a
> problem with headers then builds of binutils and gcc should also fail
> - but they didn't).
> Oh, by the way - I'm building CLFS-1.0.0rc2.
> 
> Tomorrow I'll again remove all data from CLFS partition and try to
> build the cross-toolchain one more time. If it fails, I'll switch to
> another machine (x86) and try again. Maybe I messed up something with
> my system?
> 
> Konrad Micinski
> 
> Here's the compiler output with errors:
> 
> <------->
> x86_64-unknown-linux-gnu-gcc -m64 nscd_stat.c -c -std=gnu99 -O2 -Wall
> -Winline -Wwrite-strings
> -fmerge-all-constants -g -Wstrict-prototypes   -DIS_IN_nscd=1
> -D_FORTIFY_SOURCE=2
> -I../include -I/mnt/LFS/sources/glibc-build/nscd
> -I/mnt/LFS/sources/glibc-build -I../sysdeps/x86_64/elf
> -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64
> -I../sysdeps/unix/sysv/linux/wordsize-64
> -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
> -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
> -I../sysdeps/unix/common
> -I../sysdeps/unix/mman -I../sysdeps/unix/inet
> -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
> -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
> -I../sysdeps/posix -I../sysdeps/x86_64/fpu
> -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64
> -I../sysdeps/ieee754/ldbl-96
> -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
> -I../sysdeps/ieee754 -I../sysdeps/generic/elf
> -I../sysdeps/generic -I../nptl  -I.. -I../libio -I.  -D_LIBC_REENTRANT
> -include ../include/libc-symbols.h
> -DNOT_IN_libc=1    -o /mnt/LFS/sources/glibc-build/nscd/nscd_stat.o -MD -MP
> -MF /mnt/LFS/sources/glibc-build/nscd/nscd_stat.o.dt -MT
> /mnt/LFS/sources/glibc-build/nscd/nscd_stat.o
> In file included from ../stdlib/errno.h:36,
>                  from ../include/errno.h:3,
>                  from nscd_stat.c:20:
> ../nptl/sysdeps/x86_64/tls.h:23:47: error: asm/prctl.h: No such file
> or directory
> In file included from ../posix/bits/posix1_lim.h:153,
>                  from ../include/bits/posix1_lim.h:1,
>                  from ../include/limits.h:145,
>                  from ../nptl/sysdeps/pthread/allocalim.h:21,
>                  from ../include/alloca.h:20,
>                  from ../stdlib/stdlib.h:612,
>                  from ../include/stdlib.h:8,
>                  from ../nptl/sysdeps/x86_64/tls.h:28,
>                  from ../include/tls.h:6,
>                  from ../include/errno.h:22,
>                  from nscd_stat.c:20:
> ../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:36:26: error:
> linux/limits.h: No such file or directory
> In file included from ../sysdeps/unix/sysdep.h:21,
>                  from ../sysdeps/unix/x86_64/sysdep.h:19,
>                  from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:23,
>                  from ../nptl/sysdeps/x86_64/tls.h:74,
>                  from ../include/tls.h:6,
>                  from ../include/errno.h:22,
>                  from nscd_stat.c:20:
> ../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: error: asm/unistd.h:
> No such file or directory
> In file included from ../sysdeps/i386/i686/hp-timing.h:25,
>                  from ../sysdeps/x86_64/hp-timing.h:23,
>                  from ../nptl/descr.h:28,
>                  from ../nptl/sysdeps/x86_64/tls.h:78,
>                  from ../include/tls.h:6,
>                  from ../include/errno.h:22,
>                  from nscd_stat.c:20:
> ../sysdeps/unix/sysv/linux/sys/param.h:24:25: error: linux/param.h: No
> such file or directory
> In file included from ../socket/sys/socket.h:35,
>                  from ../include/sys/socket.h:2,
>                  from ../inet/netinet/in.h:24,
>                  from ../include/netinet/in.h:3,
>                  from ../resolv/resolv.h:57,
>                  from ../include/resolv.h:12,
>                 from ../nptl/descr.h:39,
>                  from ../nptl/sysdeps/x86_64/tls.h:78,
>                  from ../include/tls.h:6,
>                  from ../include/errno.h:22,
>                  from nscd_stat.c:20:
> ../sysdeps/unix/sysv/linux/bits/socket.h:304:24: error: asm/socket.h:
> No such file or directory
> nscd_stat.c: In function 'send_stats':
> nscd_stat.c:137: error: 'EINTR' undeclared (first use in this function)
> nscd_stat.c:137: error: (Each undeclared identifier is reported only once
> nscd_stat.c:137: error: for each function it appears in.)
> nscd_stat.c: In function 'receive_print_stats':
> nscd_stat.c:185: error: 'EINTR' undeclared (first use in this function)
> nscd_stat.c:198: error: 'EINVAL' undeclared (first use in this function)
> <------->
> 
> _______________________________________________
> Clfs-support mailing list
> [email protected]
> http://ninja.linux-phreak.biz/mailman/listinfo/clfs-support
> 
hi
it may not help you but all work with clfs must be clfs and not lfs
: /mnt/clfs and not /mnt/lfs


_______________________________________________
Clfs-support mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/clfs-support

Reply via email to