Hi,

I am getting the following error trying to build LFS 5.7

x86_64-unknown-linux-gnu-gcc   -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE
-DIS_IN_build -include
/home/marian/kits/crosstool-0.43/build/x86_64-unknown-linux-gnu/glibc-build/config.h
rpc_main.c \
                -o
/home/marian/kits/crosstool-0.43/build/x86_64-unknown-linux-gnu/glibc-build/sunrpc/cross-rpc_main.o
-MMD -MP -MF
/home/marian/kits/crosstool-0.43/build/x86_64-unknown-linux-gnu/glibc-build/sunrpc/cross-rpc_main.o.dt
-MT
/home/marian/kits/crosstool-0.43/build/x86_64-unknown-linux-gnu/glibc-build/sunrpc/cross-rpc_main.o
-c
rpc_main.c:37:19: fatal error: errno.h: No such file or directory
 #include <errno.h>
                   ^
compilation terminated.

  I configured :

../glibc-2.19/configure --prefix=/tools --host=$TARGET
--build=$(../glibc-2.19/scripts/config.guess) --disable-profile
--enable-kernel=3.7.10 --with-headers=/tools/include
libc_cv_forced_unwind=yes libc_cv_ctors_header=yes libc_cv_c_cleanup=yes
--without-selinux

  I am running on linux 3.7.10. I am not sure how to get this working.
I build gcc using:

make all-gcc
make all-target-libgcc
make install-gcc
make install-target-libgcc

because otherwise if i use make, i also get error saying that the
compiler can not create executables.

Thanks,
Marian

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to