LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-06-2010, 10:34 AM   #1
linuxquestions2010
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Rep: Reputation: Disabled
Question [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.
 
Old 11-06-2010, 11:29 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

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.
 
Old 11-06-2010, 11:53 AM   #3
linuxquestions2010
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by crts View Post
Hi,

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.
 
Old 11-06-2010, 12:05 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
What were the results of that check?
 
Old 11-06-2010, 12:16 PM   #5
linuxquestions2010
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by crts View Post
What were the results of that check?
Code:
:~$ 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
 
Old 11-06-2010, 12:59 PM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by linuxquestions2010 View Post
Code:
/bin/sh -> /bin/dash
Should be a link to /bin/bash. You did not answer my other question:
Did you install all required *-dev packages?
 
Old 11-06-2010, 01:14 PM   #7
linuxquestions2010
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by crts View Post
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?
 
Old 11-06-2010, 04:55 PM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by linuxquestions2010 View Post
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.
 
Old 11-07-2010, 02:32 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

@linuxquestions2010: I do believe this one needs to be installed: libc6-dev

Hope this helps.
 
Old 11-07-2010, 05:02 AM   #10
linuxquestions2010
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Original Poster
Rep: Reputation: Disabled
My Ubuntu OS crashed!!
It starts booting, but never makes it to the Login Screen.

Now, installing a different distro.
Thanks all for your replies!
 
Old 11-07-2010, 11:49 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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.
 
Old 11-09-2010, 03:23 AM   #12
linuxquestions2010
LQ Newbie
 
Registered: Nov 2010
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Hi,

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.
 
  


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
error Compile glibc mah454 Linux - General 5 06-07-2010 11:46 AM
glibc compile error ponden Linux From Scratch 3 11-13-2008 05:43 PM
glibc compile error Kroenecker Linux From Scratch 11 07-20-2004 01:48 AM
Error during compile glibc 2.3.2 pase Linux From Scratch 3 10-13-2003 01:51 PM
glibc compile error darookee Linux From Scratch 3 09-29-2002 05:25 PM

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

All times are GMT -5. The time now is 09:55 AM.

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