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.
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.
|
|
07-08-2004, 07:15 AM
|
#1
|
Member
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245
Rep:
|
glibc compile error
I am trying to compile (pass 1) glibc from LFS stable (5.1.1), but I get the following error during make check
Any thoughts? A google brings up a problem with red hat kernel source from a year ago, so I assume that is no longer relavent to the current situation.
gcc -B/tools/bin/ -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -B/mnt/lfs/sources/glibc-build/csu/ -Wl,--version-script=/mnt/lfs/sources/glibc-build/librt.map -Wl,-soname=librt.so.1 -Wl,-z,combreloc -L/mnt/lfs/sources/glibc-build -L/mnt/lfs/sources/glibc-build/math -L/mnt/lfs/sources/glibc-build/elf -L/mnt/lfs/sources/glibc-build/dlfcn -L/mnt/lfs/sources/glibc-build/nss -L/mnt/lfs/sources/glibc-build/nis -L/mnt/lfs/sources/glibc-build/rt -L/mnt/lfs/sources/glibc-build/resolv -L/mnt/lfs/sources/glibc-build/crypt -L/mnt/lfs/sources/glibc-build/linuxthreads -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/linuxthreads -o /mnt/lfs/sources/glibc-build/rt/librt.so -T /mnt/lfs/sources/glibc-build/shlib.lds /mnt/lfs/sources/glibc-build/csu/abi-note.o -Wl,--whole-archive /mnt/lfs/sources/glibc-build/rt/librt_pic.a -Wl,--no-whole-archive /mnt/lfs/sources/glibc-build/elf/interp.os
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(aio_misc.os)(.text+0x59c): In function `__aio_enqueue_request':
../sysdeps/pthread/aio_misc.c:412: undefined reference to `pthread_create'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(aio_misc.os)(.text+0x89a): In function `handle_fildes_io':
../sysdeps/pthread/aio_misc.c:653: undefined reference to `pthread_create'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(aio_suspend.os)(.text+0x396): In function `aio_suspend':
../sysdeps/pthread/aio_suspend.c:146: undefined reference to `_pthread_cleanup_push'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(aio_suspend.os)(.text+0x415):../sysdeps/pthread/aio_suspend.c:170: undefined reference to `_pthread_cleanup_pop'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(aio_notify.os)(.text+0xd9): In function `__aio_notify_only':
../sysdeps/pthread/aio_notify.c:85: undefined reference to `pthread_create'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(clock_gettime.os)(.text+0x8b): In function `clock_gettime':
../sysdeps/unix/clock_gettime.c:107: undefined reference to `_rtld_global'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(clock_settime.os)(.text+0x110): In function `clock_settime':
../sysdeps/unix/clock_settime.c:114: undefined reference to `_rtld_global'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_create.os)(.text+0x50): In function `timer_create':
../linuxthreads/sysdeps/pthread/timer_create.c:61: undefined reference to `pthread_once'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_delete.os)(.text+0xf4): In function `timer_delete':
../linuxthreads/sysdeps/pthread/timer_delete.c:51: undefined reference to `_pthread_cleanup_push'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_delete.os)(.text+0x10a):../linuxthreads/sysdeps/pthread/timer_delete.c:57: undefined reference to `_pthread_cleanup_pop'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_routines.os)(.text+0x201): In function `__timer_init_once':
../linuxthreads/sysdeps/pthread/timer_routines.c:221: undefined reference to `pthread_atfork'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_routines.os)(.text+0x5ec): In function `thread_func':
../linuxthreads/sysdeps/pthread/timer_routines.c:382: undefined reference to `_pthread_cleanup_push'
/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_routines.os)(.text+0x84c): In function `__timer_thread_start':
../linuxthreads/sysdeps/pthread/timer_routines.c:492: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/rt/librt.so] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2
Just wondering if you have gotten a similar error, but continued on without further problems.
Thanks for your time.
|
|
|
07-08-2004, 09:00 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
What kernel are you using? I read that there are problems with LFS-5.1.1 http://linuxfromscratch.org/pipermai...ly/047205.html I don't know if it's related to the problem you're having.
|
|
|
07-08-2004, 09:29 AM
|
#3
|
Member
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245
Original Poster
Rep:
|
Hmm. Well I am using 2.6.3. I am building LFS using my previous LFS 5 build. I am wondering if maybe I had screwed up something in the original build which now makes this second build ... error prone. Well, I might just accept taht make check produces a few errors for now and see how chapter six goes. (maybe I should just install slack and build 5.1.1 from
there~)
|
|
|
07-08-2004, 10:16 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
I wouldn't worry about make check on the first pass. See how it goes in Chapter 6. If it fails there it's not good, but a fail in chapter 5 isn't so important as those are just temporary tools.
|
|
|
07-09-2004, 12:19 AM
|
#5
|
LQ Newbie
Registered: Nov 2003
Posts: 25
Rep:
|
A make check in chapter 5 or earlier isn't recommended by the authors... its success is absolutely dependend on your host system.
Don't worry! Just go on!
|
|
|
07-12-2004, 10:19 AM
|
#6
|
Member
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245
Original Poster
Rep:
|
Well, Ive made it through unscathed. Thanks for reminding me about the authors' recommendations.
|
|
|
07-15-2004, 03:09 AM
|
#7
|
Member
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403
Rep:
|
I'm building LFS 5.1.1 from Slackware 10, but I got errors too with glibc. Same error as you in chapter 5, but I got a timeout error in chapter 6. Could it be the LFS team misconfigured something in their glibc pakcage? I didn't have any single compile error with 5.0, wich had the "normal" glibc packages...
greetz,
.-=~ iluvatar ~=-.
|
|
|
07-15-2004, 04:08 AM
|
#8
|
Member
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245
Original Poster
Rep:
|
I actually finished the book without any problems after that intial...surprise. I hope that you are able to get it working.
|
|
|
07-15-2004, 05:18 AM
|
#9
|
Member
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403
Rep:
|
well, I could ignore the errors. in chapter 5 timeout errors may occure but I get them in chapter 6, maybe it's not very important. But I was wondering how to test if glibc is ok after the completion of the book?
greetz,
.-=~ iluvatar ~=-.
|
|
|
07-15-2004, 07:53 AM
|
#10
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
A timeout error could be due to a slow processor. How old is your hardware?
|
|
|
07-16-2004, 02:14 AM
|
#11
|
Member
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403
Rep:
|
ah forgot to tell... I'm currently building on LFS 5.1 on a celeron 500 with 320 Mb ram wich gives the timeout error, while LFS 5.0 didn't come with an error on a PII 333 Mhz with 64 Mb ram... so I guess it's not the hardware...
greetz,
.-=~ iluvatar ~=-.
|
|
|
07-20-2004, 01:48 AM
|
#12
|
Member
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403
Rep:
|
I just rebuild from the beginning and I don't get any errors anymore in chapter 6... maybe I missed something the previous try...
greetz,
.-=~ iluvatar ~=-.
|
|
|
All times are GMT -5. The time now is 05:37 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
|
|