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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-17-2008, 02:14 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2008
Posts: 2
Rep:
|
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
|
|
|
|
12-18-2008, 09:14 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,759
|
# 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.
....
|
|
|
|
01-13-2009, 07:20 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2009
Posts: 1
Rep:
|
i got the same problem =(
anyone know how to fix it?
|
|
|
|
01-14-2009, 05:24 PM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,759
|
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.
....
|
|
|
|
03-07-2009, 07:36 AM
|
#5
|
|
LQ Newbie
Registered: Mar 2009
Posts: 13
Rep:
|
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?
|
|
|
|
03-08-2009, 01:18 AM
|
#6
|
|
Member
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59
Rep:
|
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.
|
|
|
|
03-08-2009, 01:25 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2009
Posts: 13
Rep:
|
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 04:01 AM.
Reason: Clarify host OS
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:19 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|