Linux From ScratchThis 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.
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.
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.
....
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,296
Rep:
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.
....
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?
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.
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 -
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.