LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Linux From Scratch, glibc Make error with gcc 4.7.2 (https://www.linuxquestions.org/questions/linux-from-scratch-13/linux-from-scratch-glibc-make-error-with-gcc-4-7-2-a-4175438233/)

ptolemystroud 11-22-2012 01:37 AM

Linux From Scratch, glibc Make error with gcc 4.7.2
 
I am following the LFS guide 7.2 and I am at section 5.7. When executing the Glibc make, I receive the following error.

-o /mnt/lfs/sources/glibc-build/math/s_isnan.os -MD -MP -MF /mnt/lfs/sources/glibc-build/math/s_isnan.os.dt -MT /mnt/lfs/sources/glibc-build/math/s_isnan.os
../sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c:30:1: error: '__EI___isnan' aliased to external symbol '__GI___isnan'
make[2]: *** [/mnt/lfs/sources/glibc-build/math/s_isnan.os] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'
make: *** [all] Error 2

My GCC version is 4.7.2. What are the steps I should take to correct this error?

druuna 11-22-2012 01:49 AM

This from the Host System Requirements section:
Quote:

Gcc-4.1.2 (Versions greater than 4.7.1 are not recommended as they have not been tested)
Please re-check/post the output of the version-check.sh script.

ptolemystroud 11-22-2012 01:57 AM

bash, version 4.2.37(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.22.90.20120924
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
(Ubuntu EGLIBC 2.15-0ubuntu20) 2.15
grep (GNU grep) 2.12
gzip 1.5
Linux version 3.5.0-18-generic (buildd@allspice) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK


This is the output I get from the version-check script
I realized that my version hasn't been tested. How do I downgrade the GCC so that it is compatible?

druuna 11-22-2012 03:09 AM

Quote:

Originally Posted by ptolemystroud (Post 4834560)
I realized that my version hasn't been tested. How do I downgrade the GCC so that it is compatible?

I'm not sure downgrading is a good idea, it might impact your host in a negative way.

Are you using a virtual machine to build LFS? If so I would suggest using a host that is compatible. Ubuntu 12.04 and Debian 6 are compatible (as in: not having package that are too new), have a look here if you want/need a reference: Minimal Graphical Debian Host for LFS / LFS 7.1 on Ubuntu 12.04.

Although you cannot rule out gcc 4.7.2 being the culprit, you might want to post a few more error lines (5 to 10 before the first make error line). Maybe there's another clue in there.

ptolemystroud 11-22-2012 03:18 AM

make[2]: Entering directory `/mnt/lfs/sources/glibc-2.16.0/math'
gcc ../sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c -c -std=gnu99 -fgnu89-inline -fno-stack-protector -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -fPIC -Wno-uninitialized -U_FORTIFY_SOURCE -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I/mnt/lfs/sources/glibc-build/math -I/mnt/lfs/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -o /mnt/lfs/sources/glibc-build/math/s_isnan.os -MD -MP -MF /mnt/lfs/sources/glibc-build/math/s_isnan.os.dt -MT /mnt/lfs/sources/glibc-build/math/s_isnan.os
../sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c:30:1: error: '__EI___isnan' aliased to external symbol '__GI___isnan'
make[2]: *** [/mnt/lfs/sources/glibc-build/math/s_isnan.os] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'
make: *** [all] Error 2
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.16.0/math'
gcc ../sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c -c -std=gnu99 -fgnu89-inline -fno-stack-protector -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -fPIC -Wno-uninitialized -U_FORTIFY_SOURCE -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I/mnt/lfs/sources/glibc-build/math -I/mnt/lfs/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -o /mnt/lfs/sources/glibc-build/math/s_isnan.os -MD -MP -MF /mnt/lfs/sources/glibc-build/math/s_isnan.os.dt -MT /mnt/lfs/sources/glibc-build/math/s_isnan.os
../sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c:30:1: error: '__EI___isnan' aliased to external symbol '__GI___isnan'
make[2]: *** [/mnt/lfs/sources/glibc-build/math/s_isnan.os] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'
make: *** [all] Error 2

So sorry for the wall of text :/ Its what my terminal looks like at the moment.
I am not using a virtual machine to build this LFS.

druuna 11-22-2012 03:47 AM

I don't see any new info that would help.

Are you sure you didn't make a mistake somewhere in this or previous chapters? If you're 100% sure about that then it seems that using your hosts gcc 4.7.2 is the problem.

ptolemystroud 11-22-2012 03:50 AM

I am positive that I have executed every command to the T. I did some research and it does seem that the newest GCC version does effect the MAKE of glibc. Thanks for the help anyways!

druuna 11-22-2012 04:03 AM

You're welcome.

Can you put up the [SOLVED] tag.
- above the first post -> Please Mark this thread as solved if you feel a solution has been provided.
- -or- -
- first post -> Thread Tools -> Mark this thread as solved


All times are GMT -5. The time now is 09:59 PM.