[Abandoned]5.7.1. Installation of Glibc compile error
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Abandoned]5.7.1. Installation of Glibc compile error
I am unable to compile glibc-2.12.1 with Ubuntu 10.04 host.
(5.7.1 section of the LFS book)
Error:
Code:
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:
../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/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/lfs/glibc-2.12.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/glibc-2.12.1'
make: *** [all] Error 2
Can anyone please help me fix it?
Last edited by linuxquestions2010; 11-07-2010 at 11:25 AM.
did you make sure that your system does meet all the host system requirements? Did you install all the necessary *-dev packages in Ubuntu? Although it has been reported that it is possible to use Ubuntu or other Distros as host I would still recommend the liveCD. If you insist on using anything else than the liveCD then be prepared for some additional workarounds, e.g. some distros require to install certain *-dev packages if you want to compile something.
did you make sure that your system does meet all the host system requirements? Did you install all the necessary *-dev packages in Ubuntu? Although it has been reported that it is possible to use Ubuntu or other Distros as host I would still recommend the liveCD. If you insist on using anything else than the liveCD then be prepared for some additional workarounds, e.g. some distros require to install certain *-dev packages if you want to compile something.
I have gone through the 'Host System Requirements' section in the LFS book, and checked using the following code:
Code:
cat > version-check.sh << "EOF"
#!/bin/bash
export LC_ALL=C
# Simple script to list version numbers of critical development tools
bash --version | head -n1 | cut -d" " -f2-4
echo "/bin/sh -> `readlink -f /bin/sh`"
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -e /usr/bin/yacc ];
then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
else echo "yacc not found"; fi
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
if [ -e /usr/bin/awk ];
then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
else echo "awk not found"; fi
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d"," -f1
grep --version | head -n1
gzip --version | head -n1
cat /proc/version
m4 --version | head -n1
make --version | head -n1
patch --version | head -n1
echo Perl `perl -V:version`
sed --version | head -n1
tar --version | head -n1
echo "Texinfo: `makeinfo --version | head -n1`"
echo 'main(){}' > dummy.c && gcc -o dummy dummy.c
if [ -x dummy ]; then echo "Compilation OK";
else echo "Compilation failed"; fi
rm -f dummy.c dummy
EOF
bash version-check.sh
Have successfully compiled Binutils, GCC & Linux API Headers.
Dont know why having compiling issues with Glibc.
:~$ bash version-check.sh
bash, version 4.1.5(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.5) stable release version 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.32-25-generic (buildd@palmer) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK
Should be a link to /bin/bash. You did not answer my other question:
Did you install all required *-dev packages?
i have got the basic ubuntu install and then i updated/installed the required packages as listed in LFS book using apt-get. I did not use any *-dev command.
What should i do about the "/bin/sh -> /bin/dash" thing?
i have got the basic ubuntu install and then i updated/installed the required packages as listed in LFS book using apt-get. I did not use any *-dev command.
What should i do about the "/bin/sh -> /bin/dash" thing?
Well, you will have to relink it, so that it points to /bin/bash.
However, I see the main problem is that you do not have the development packages installed. And I do not know which ones need to be installed in order to build lfs. Maybe you can open synaptic and type -dev in the search field and install whatever comes up. But there is no guarantee that it will work. I still recommend that you use the liveCD as host. If you do not like the pure CLI then I think you can type startx and you'll get a GUI.
Just out of curiosity: Do you think one of the above actions is to blame for the crash? If so, do you have an idea which step?
It would be nice to know the cause of the crash, it could be of use to others that want to use Ubuntu as host for LFS and/or be a warning to use the LFS liveCD instead.
Just out of curiosity: Do you think one of the above actions is to blame for the crash? If so, do you have an idea which step?
It would be nice to know the cause of the crash, it could be of use to others that want to use Ubuntu as host for LFS and/or be a warning to use the LFS liveCD instead.
I really don't know which step might have been responsible.
The glibc compiling issue was really stubborn and i was trying out all possible solutions. I even tried out this one http://www.linuxquestions.org/questi...1215-a-691292/. Plus, Installed gnome-development packages and did a lot of rounds, of configure & make.
Last edited by linuxquestions2010; 11-09-2010 at 03:24 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.