LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-05-2003, 07:15 AM   #1
pase
LQ Newbie
 
Registered: Oct 2003
Location: Germany
Distribution: Red Hat 9
Posts: 1

Rep: Reputation: 0
Unhappy Error during compile glibc 2.3.2


Hello,
I tried to compile Glibc-2.3.2 as it's shown in Part II, Chapter 5 (Installing Glibc-2.3.2) in the last LFS-Book.
After a little while make stopped with the following message:

../linuxthreads/descr.h:43:40: linuxthreads_db/thread_dbP.h: No such file or directory
In file included from ../linuxthreads/internals.h:29,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../linuxthreads/descr.h:164: error: parse error before "td_eventbuf_t"
../linuxthreads/descr.h:164: warning: no semicolon at end of struct or union
../linuxthreads/descr.h:184: error: parse error before '}' token
../linuxthreads/descr.h:184: warning: empty declaration
../linuxthreads/descr.h: In function `thread_self':
../linuxthreads/descr.h:250: error: invalid use of undefined type `struct _pthread_descr_struct'
In file included from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../linuxthreads/internals.h: At top level:
../linuxthreads/internals.h:159: error: parse error before "__pthread_threads_events"
../linuxthreads/internals.h:159: warning: type defaults to `int' in declaration of `__pthread_threads_events'
../linuxthreads/internals.h:159: warning: data definition has no type or storage class
../linuxthreads/internals.h: In function `invalid_handle':
../linuxthreads/internals.h:178: error: dereferencing pointer to incomplete type
../linuxthreads/internals.h:178: error: dereferencing pointer to incomplete type
../linuxthreads/internals.h: In function `nonexisting_handle':
../linuxthreads/internals.h:183: error: dereferencing pointer to incomplete type
../stdio-common/_itoa.h: At top level:
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../stdio-common/_itoa.h:76: warning: called from here
make[2]: *** [/home/dreck/Desktop/gcb/csu/init-first.o] Error 1
make[2]: Leaving directory `/home/dreck/Desktop/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/dreck/Desktop/glibc-2.3.2'
make: *** [all] Error 2


May anyone help me with this error? I tried it with Knoppix v3.3 too, but I got the same error. So it wasn't my OS's fault.

Here some more Informations:
Book Version: LFS-5.0-PRE2
OS: Freshly installed Red Hat 9 (nothing changed since installation)

greets

pase
 
Old 10-06-2003, 03:52 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Are you using gcc3.3? I had massive problems when using v4.1 because I didn't follow the book to the letter, I got slightly newer versions where available. Gcc3.3 was a big headache for me. I don't know what 5.0-pre2 says (the site's down at themo), but if you aren't following the book then you can't expect it to work (as everyone on the LFS mailing list condescendingly tells me)
Otherwise try going to version 4.1 - it worked for me
Guy
 
Old 10-06-2003, 04:52 AM   #3
euangray
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: LFS-CVS-20031113
Posts: 29

Rep: Reputation: 15
Hey there,

If you're compiling glibc-2.3.2 with gcc-3.3 you need to patch glibc or the build will fail, the patch (glibc-2.3.2-sscanf-1.patch, IIRC) is available from LFS. If your read the docs on glibc, you will notice that the developers actually recommend gcc-3.2, in which case you would not need the patch.

If you want to use the latest releases of software, I'd suggest you might want to read through the CVS version of the book.

Euan
 
Old 10-13-2003, 01:51 PM   #4
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
Question

I am giving 5.0-PRE2 a try (it's actually my first stab at LFS... what can I say, I like a challenge )
Compiler is gcc-3.3.1. I've patched glibc (as stated above) and compiling it in chapter 5 was not completely error-free (I had one error 2, reran make and then it seemed to run smoothly). Now, in chapter 6, I get this:
Code:
gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2  
-B/usr/src/glibc-build/csu/  -Wl,--version-script=/usr/src/glibc-build/libc.map -Wl,-soname=libc.so.6 
-Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -u __register_frame -L/usr/src/glibc-build 
-L/usr/src/glibc-build/math -L/usr/src/glibc-build/elf -L/usr/src/glibc-build/dlfcn -L/usr/src/glibc-build/nss 
-L/usr/src/glibc-build/nis -L/usr/src/glibc-build/rt -L/usr/src/glibc-build/resolv -L/usr/src/glibc-build/crypt 
-L/usr/src/glibc-build/linuxthreads 
-Wl,-rpath-link=/usr/src/glibc-build:/usr/src/glibc-build/math:/usr/src/glibc-build/elf:/usr/src/glibc-build/dlfcn:
/usr/src/glibc-build/nss:/usr/src/glibc-build/nis:/usr/src/glibc-build/rt:/usr/src/glibc-build/resolv:/usr/src/glibc
-build/crypt:/usr/src/glibc-build/linuxthreads
 -o /usr/src/glibc-build/libc.so -T /usr/src/glibc-build/libc.so.lds /usr/src/glibc-build/csu/abi-note.o 
/usr/src/glibc-build/elf/soinit.os /usr/src/glibc-build/libc_pic.os /usr/src/glibc-build/elf/sofini.os 
/usr/src/glibc-build/elf/interp.os /usr/src/glibc-build/elf/ld.so e_atan2.S -lgcc
gcc: e_atan2.S: No such file or directory
make[1]: *** [/usr/src/glibc-build/libc.so] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.3.2'
make: *** [all] Error 2
I gave find a go:
Code:
root:/usr/src/glibc-build# find / -name "e_atan2.S" 
/usr/src/glibc-2.3.2/sysdeps/i386/fpu/e_atan2.S
/usr/src/glibc-2.3.2/sysdeps/ia64/fpu/e_atan2.S
File seems to be there, but perhaps it tries to access it from the static glibc already installed? Anyway, I just emptied the build-dir and reran ./configure and make. If that fails, I will give untarring the tarballs another go (solved one or two problems in the past)

[edit]
Okay, all I did was rm -rf * in the build dir and used the same configure command as in the build that went wrong (I scrolled back with the arrow keys, so I am positive it was identical). I then typed in 'make' and the second compile went perfectly. No error, no nothing. It might be a little off-topic, but it would be great if someone could explain why the exact same build errors first, and then finishes without error
[/edit]

Last edited by ReefShark; 10-13-2003 at 03:41 PM.
 
  


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
glibc compile error Kroenecker Linux From Scratch 11 07-20-2004 01:48 AM
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 12:38 PM.

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