LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-08-2004, 07:15 AM   #1
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
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.
 
Old 07-08-2004, 09:00 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 07-08-2004, 09:29 AM   #3
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
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~)
 
Old 07-08-2004, 10:16 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 07-09-2004, 12:19 AM   #5
7.e.Q
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Rep: Reputation: 15
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!
 
Old 07-12-2004, 10:19 AM   #6
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
Well, Ive made it through unscathed. Thanks for reminding me about the authors' recommendations.
 
Old 07-15-2004, 03:09 AM   #7
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 ~=-.
 
Old 07-15-2004, 04:08 AM   #8
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
I actually finished the book without any problems after that intial...surprise. I hope that you are able to get it working.
 
Old 07-15-2004, 05:18 AM   #9
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 ~=-.
 
Old 07-15-2004, 07:53 AM   #10
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
A timeout error could be due to a slow processor. How old is your hardware?
 
Old 07-16-2004, 02:14 AM   #11
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 ~=-.
 
Old 07-20-2004, 01:48 AM   #12
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 ~=-.
 
  


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
glibc compile error ponden Linux From Scratch 3 11-13-2008 05:43 PM
glibc-2.3.5 for i686: compile error ludovanput Linux - Software 0 10-04-2005 06:57 AM
Error during compile glibc 2.3.2 pase Linux From Scratch 3 10-13-2003 01:51 PM
glibc compile error (during configure) ixion Linux From Scratch 1 06-08-2003 11:09 AM
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 05:37 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