LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   [Abandoned]5.7.1. Installation of Glibc compile error (https://www.linuxquestions.org/questions/linux-from-scratch-13/%5Babandoned%5D5-7-1-installation-of-glibc-compile-error-842733/)

linuxquestions2010 11-06-2010 10:34 AM

[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?

crts 11-06-2010 11:29 AM

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.

linuxquestions2010 11-06-2010 11:53 AM

Quote:

Originally Posted by crts (Post 4151123)
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.

crts 11-06-2010 12:05 PM

What were the results of that check?

linuxquestions2010 11-06-2010 12:16 PM

Quote:

Originally Posted by crts (Post 4151144)
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


crts 11-06-2010 12:59 PM

Quote:

Originally Posted by linuxquestions2010 (Post 4151151)
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?

linuxquestions2010 11-06-2010 01:14 PM

Quote:

Originally Posted by crts (Post 4151190)
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?

crts 11-06-2010 04:55 PM

Quote:

Originally Posted by linuxquestions2010 (Post 4151206)
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.

druuna 11-07-2010 02:32 AM

Hi,

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

Hope this helps.

linuxquestions2010 11-07-2010 05:02 AM

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!

druuna 11-07-2010 11:49 AM

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.

linuxquestions2010 11-09-2010 03:23 AM

Quote:

Originally Posted by druuna (Post 4151948)
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.


All times are GMT -5. The time now is 01:55 PM.