LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   "errno.h: no such file or directory" while trying to build glibc (pass 1) (https://www.linuxquestions.org/questions/linux-from-scratch-13/errno-h-no-such-file-or-directory-while-trying-to-build-glibc-pass-1-a-4175575774/)

ghiso 03-24-2016 01:03 PM

"errno.h: no such file or directory" while trying to build glibc (pass 1)
 
Hello,

I am trying to build LFS for the first time, however I found a problem when compiling glibc. The error screen is the following:

Code:

rpc_main.c:37:19: fatal error: errno.h: No such file or directory
compilation terminated.
Makefile:165: recipe for target 'ftint/lfs/sources/glibc-2.23/build/sunrpc/cross-rpc_main.o' failed
make[2]: *** [/mnt/lfs/sources/glibc-2.23/build/sunrpc/cross-rpc_main.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.23/sunrpc'
Makefile:214: recipe for target 'sunrpc/others' failed
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.23'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2

I have checked that the errno.h header is available in /tools/include/asm and I have double checked if I missed any steps, so I must have misinterpreted something.

I am using the live iso of ubuntu mate 15.10 64-bit as a host (I installed all required packages... unless there's something I'm missing) and I'm installing the system in an ext4 partition in virtualbox.

Any help is welcome :)

spiky0011 03-25-2016 02:51 AM

Hi

I would post the output of version-check script

ghiso 03-25-2016 01:58 PM

Quote:

Originally Posted by spiky0011 (Post 5521015)
Hi

I would post the output of version-check script

Here:

Code:

bash, version 4.3.42(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.26.20160125
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.3, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
g++ (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
(Ubuntu GLIBC 2.21-0ubuntu4.1) 2.21
grep (GNU grep) 2.21
gzip 1.6
Linux version 4.2.0-16-generic (buildd@lcy01-07) (gcc version 5.2.1 20151003 (Ubuntu 5.2.1-21ubuntu2) ) #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015
m4 (GNU M4) 1.4.17
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.20.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
texi2any (GNU texinfo) 6.0
xz (XZ Utils) 5.1.0alpha
g++ compilation OK

I actually ran this twice, the first time it pointed out that /bin/sh pointed to /bin/dash instead of /bin/bash. I corrected that and it didn't seem to solve the problem, do you think I need to recompile binutils and gcc for it to make a difference?


All times are GMT -5. The time now is 10:24 PM.