LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-24-2016, 01:03 PM   #1
ghiso
LQ Newbie
 
Registered: Mar 2016
Posts: 2

Rep: Reputation: Disabled
Unhappy "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
 
Old 03-25-2016, 02:51 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

I would post the output of version-check script
 
Old 03-25-2016, 01:58 PM   #3
ghiso
LQ Newbie
 
Registered: Mar 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
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?

Last edited by ghiso; 03-26-2016 at 11:05 AM. Reason: forgot quote
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glibc 2.7 Build Error "ld: cannot find -lgcc" binzyw Linux From Scratch 8 06-25-2012 02:51 AM
NSLU2 setup- UpSlug2 source build terminal problem- "No such file or directory" RockandRoll24 Linux - Newbie 0 03-22-2010 09:58 AM
Glibc-2.3.2 (Pass 2) "critical programs are missing or old" irfanali Linux From Scratch 3 08-13-2004 01:37 AM
Pre-Build Executable "No Such File or Directory" problem Archeress Linux - General 2 08-17-2002 08:26 PM
mutt says: "~/Mail/Inbox: No such file or directory (errno = 2)" realos Linux - General 1 08-01-2002 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration