LinuxQuestions.org
Help answer threads with 0 replies.
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 01-12-2007, 03:04 PM   #1
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Glibc Error


I'm using the latest Livecd as host and /dev/hda10 on an AMD64 system but using the i386 build.

I'm getting this error when compiling glibc-2.3.6:

Code:
In file included from /tools/include/linux/errno.h:14
In file include from /sysdeps/unix/sysv/linux/bits/errno.h:25
In file included from /sysdeps/unix/i386/sysdep.S:22
In file included from /sysdeps/unix/sysv/linux/i386/sysdep.S:39
/tools/include/asm/errno.h:4:31: error:asm-generic/errno.h: No such file or directory

make[2]: *** [/mnt/lfs/sources/glibc-build/csu/sysdep.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6'
make: *** [all] Error 2
Any ideas/suggestions what's going on?

Thnx.
 
Old 01-14-2007, 01:30 PM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Original Poster
Rep: Reputation: 31
I didn't patch glibc-2.3.6. Think I should, would it make a difference?

Thnx.
 
Old 01-14-2007, 01:36 PM   #3
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
You could try it, if the patch doesn't make it work you can always delete the source dir and start again.

My guess based on this:

Code:
/tools/include/asm/errno.h:4:31: error:asm-generic/errno.h: No such file or directory
is that something went wrong when you installed the kernel headers. You could try installing them again and see what happens.
 
Old 01-14-2007, 07:57 PM   #4
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Original Poster
Rep: Reputation: 31
Thnx for the reply. I'll try reinstalling and patching to see what happens.
 
Old 01-20-2007, 03:40 PM   #5
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Original Poster
Rep: Reputation: 31
I deleted the old glibc-build directory to reinstall glibc but now I keep getting Permission Denied trying to make the new glibc-build directory.

I've tried changing the permissions from root to lfs user. The /mnt/lfs/tools work but /mnt/lfs/sources doesn't seem to change to lfs.

Shouldn't owner & group be lfs for both sources and tools directory?

Thnx.
 
Old 01-20-2007, 04:54 PM   #6
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
Shouldn't owner & group be lfs for both sources and tools directory?
It's actually meant to be root:root but have 1777 permissions, you may want to double check that.

Usually when people (not necessarily you) complain about this error it is because they run
Code:
mkdir -v ../glibc-build
directly from the sources directory when in fact it should be run inside the unpacked glibc directory. You are wanting /mnt/lfs/sources/glibc-build not /mnt/lfs/glibc-build. /mnt/lfs should be owned by root btw.

Oh and one last thing

Quote:
I deleted the old glibc-build directory
That's good but you should also delete the glibc source dir. Despite the fact you are building in a seperete directory, the building procedure will change a few files around in there anyway.
 
Old 01-20-2007, 05:28 PM   #7
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Original Poster
Rep: Reputation: 31
Thanks Daws. I believe I did make the glibc-build inside of sources the first time...maybe that's why I have that error message.

Let me look things over when I have some time.

Thanks again. You have been a big help for me.
 
Old 01-21-2007, 07:29 AM   #8
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Hmm. Interesting. This thread has just been misquoted on the lfs-support mailing list. When I said
Quote:
Usually when people (not necessarily you) complain about this error
I was refering to the Permission denied error while trying to create ../glibc-build. Not the mysterious errno.h problem.

If you in fact created /mnt/lfs/sources/glibc-2.3.6/glibc-build in the first place (as is suggested on the mailing list) or /mnt/lfs/glibc-build (unlikely) and this was the cause of the errno.h problem then please post back with the results.

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 error glidermike Linux - General 1 12-12-2006 08:05 AM
GLIBC Error scbops Linux - Software 3 04-26-2006 10:40 PM
glibc error newcomer4 Linux From Scratch 1 02-03-2006 03:03 PM
glibc error xlordt Linux - Newbie 3 08-07-2004 11:56 PM
glibc 2.3.2 error rahul_jain_9684 Linux From Scratch 3 08-06-2003 10:36 PM

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

All times are GMT -5. The time now is 09:29 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