LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-17-2008, 03:14 PM   #1
ioncrew
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Error Compile in glibc-2.8-20081215


hi...

i'a a newbie in Linux, now i have a kind of project to make a LFS. I use LFS-BOOK-6.4-HTML for the handbook.

When i try to "make" in glibc-2.8-20081215, i got some error :
Code:
../misc/syslog.c: In function ‘__vsyslog_chk’:                                  
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/mnt/lfs/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20081215/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20081215'
make: *** [all] Error 2
so, could you tell me what the best solution for it?

i've read dianming threads, but i can't understand it.

Help me... please
 
Old 12-18-2008, 10:14 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,160

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
# 7, dianming thread :
http://www.linuxquestions.org/questi...31/highlight#7
Quote:
So I've finally gotten GCC compiled right. I restarted with a Xubuntu
host and used all the updated files. I think my problem
might have been with the sed command before the configure -- I wasn't
running it when cd'd into the GCC source folder. No wonder the command
always returned a "file not found" error.
So the suggestion is to recompile gcc, and remember the "sed lines"
used before compiling.
....
 
Old 01-13-2009, 08:20 PM   #3
vigohe
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
i got the same problem =(

anyone know how to fix it?
 
Old 01-14-2009, 06:24 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,160

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
Short : The 'gcc' you have build in chapter 5.12.1. cannot
be used for compiling 'glibc'

Solution : Go back and do 5.12.1. again. And remember :
Do not reuse any gcc-4.3.2/ that has been used before.

If a sed command returns "file not found" , you are in the
wrong directory. Then do 'cd gcc-4.3.2'. Go back and repeat
the two commands
1)cp -v gcc/Makefile.in{,.orig}
2)sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in

Continue with the other commands ... and recompile gcc again.
....
 
Old 03-07-2009, 08:36 AM   #5
zzypty
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 3
Hi!

I'm trying to follow LFS 6.4 word-by-word, but have hit a bit of a stumbling block in section 5.7 - GLIBC installatoin.

Quote:
This is the error I get :
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to 'syslog': function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/media/lfs/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/media/lfs/sources/glibc-2.8-20080929/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/media/lfs/sources/glibc-2.8-20080929'
make: *** [all] Error 2
I tried doing the above as lfs (and not as root), but the error still occurs.

Should I install another version of gcc, an older version maybe?
 
Old 03-08-2009, 03:18 AM   #6
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
zzypty, what host distribution are you using? And you made sure everything met the Host System Requirements?

The version of GCC in the book should work, so it sounds like either something went wrong during your Pass 1 installation of GCC in 5.5 (maybe a typo or a missed command?) or there's an issue with the host.
 
Old 03-08-2009, 03:25 AM   #7
zzypty
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 3
Getting past 'cannot find -lgcc_eh' and 'inlining failed in call to 'syslog'' errors

Hi!

Here is how I got past the problem. I chose to mount my LFS drive to '/media/mango', and not '/mnt/lfs' as mentioned in the book. I am presently working on Ubuntu 8.10.

The first time, I tried compile glibc, I did it as root. This is the error I got-
Quote:
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to 'syslog': function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/media/lfs/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/media/lfs/sources/glibc-2.8-20080929/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/media/lfs/sources/glibc-2.8-20080929'
make: *** [all] Error 2
This error is due to performing the 'make' command as root. So, first thing I did was changed the ownership of my lfs partition -
Quote:
$ chown -R lfs /media/mango
$ chgrp -R lfs /media/mango
Then, I tried the 'make' command as user lfs, and I got the following error :
Quote:
/tools/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [/media/mango/sources/glibc-build/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/media/mango/sources/glibc-2.8-20080929/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/media/mango/sources/glibc-2.8-20080929'
make: *** [all] Error 2
The solution to this problem has been discussed here, in the Linux From Scratch mail archives. The mail in the archive advises us to create a symmlink after the first gcc pass. I (apparently) had made some error with this step, hence the errorr above.
Quote:
$ cd ../gcc-build
$ ln -vs libgcc.a `gcc -print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`
Now, a simple 'make' as user lfs should work perfectly!
Quote:
$ cd ../glibc-build
$ make
PS : A better solution is to delete the whole glibc-build and glibc-2.8-20080929 directories and start chapter '5.7. Glibc-2.8-20080929' afresh. But, remember to perform the symmlink.

Last edited by zzypty; 03-08-2009 at 05:01 AM. Reason: Clarify host OS
 
1 members found this post helpful.
  


Reply

Tags
compile, error, glibc


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 compile error ponden Linux From Scratch 3 11-13-2008 06:43 PM
glibc-2.5 compile error, '__NR_clock_gettime' AphoxemaG Linux - Software 2 01-03-2007 03:16 PM
glibc compile error Kroenecker Linux From Scratch 11 07-20-2004 02:48 AM
Error during compile glibc 2.3.2 pase Linux From Scratch 3 10-13-2003 02:51 PM
glibc compile error darookee Linux From Scratch 3 09-29-2002 06:25 PM


All times are GMT -5. The time now is 11:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration