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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-22-2012, 01:37 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2012
Posts: 4
Rep: 
|
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?
|
|
|
|
11-22-2012, 01:49 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,691
|
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.
|
|
|
|
11-22-2012, 01:57 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2012
Posts: 4
Original Poster
Rep: 
|
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?
|
|
|
|
11-22-2012, 03:09 AM
|
#4
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,691
|
Quote:
Originally Posted by ptolemystroud
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.
|
|
|
|
11-22-2012, 03:18 AM
|
#5
|
|
LQ Newbie
Registered: Nov 2012
Posts: 4
Original Poster
Rep: 
|
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.
|
|
|
|
11-22-2012, 03:47 AM
|
#6
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,691
|
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.
|
|
|
|
11-22-2012, 03:50 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2012
Posts: 4
Original Poster
Rep: 
|
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!
|
|
|
|
11-22-2012, 04:03 AM
|
#8
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,691
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:47 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.
|
Latest Threads
LQ News
|
|