This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Build error with GCC-3.3


Hi.

I've tried building the latest CVS glibc with GCC-3.3, and hit an error
linking the pthreads library. As GCC-3.3 is not officially released yet,
it is very possible this error is a compiler problem, but I thought I'd
ask the list and see if other people have had success with 3.3. I'm
running on i586-pc-linux-gnu, the compiler was built Sunday night, and
the binutils package is 2.13.90.0.18.

The build was configured ...

$ CFLAGS="-O2 -march=pentium-mmx" /opt/build/libc/configure \
	--prefix=/usr --enable-add-ons=linuxthreads \
	--with-headers=/usr/src/linux-2.4.20-ac1/include --with-tls

Here's the error message reformatted for mailing ...
...
rm -f /opt/build/glibc-cvs/linuxthreads/libpthread.so.new
gcc   -shared -static-libgcc -Wl,-O1  \
	-Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 \
	-B/opt/build/glibc-cvs/linuxthreads/ \
	-B/opt/build/glibc-cvs/csu/ \
	-B/opt/build/glibc-cvs/linuxthreads/ \
	-Wl,--version-script=/opt/build/glibc-cvs/libpthread.map \
	-Wl,-soname=libpthread.so.0 \
	-Wl,-z,combreloc \
	-Wl,--enable-new-dtags,-z,nodelete \
	-Wl,--enable-new-dtags,-z,initfirst \
	-L/opt/build/glibc-cvs \
	-L/opt/build/glibc-cvs/math \
	-L/opt/build/glibc-cvs/elf \
	-L/opt/build/glibc-cvs/dlfcn \
	-L/opt/build/glibc-cvs/nss \
	-L/opt/build/glibc-cvs/nis \
	-L/opt/build/glibc-cvs/rt \
	-L/opt/build/glibc-cvs/resolv \
	-L/opt/build/glibc-cvs/crypt \
	-L/opt/build/glibc-cvs/linuxthreads \
	-Wl,-rpath-link=/opt/build/glibc-cvs:/opt/build/glibc-cvs/math:/opt/build/glibc-cvs/elf:/opt/build/glibc-cvs/dlfcn:/opt/build/glibc-cvs/nss:/opt/build/glibc-cvs/nis:/opt/build/glibc-cvs/rt:/opt/build/glibc-cvs/resolv:/opt/build/glibc-cvs/crypt:/opt/build/glibc-cvs/linuxthreads \
	-o /opt/build/glibc-cvs/linuxthreads/libpthread.so \
	-T /opt/build/glibc-cvs/linuxthreads/libpthread.so.lds \
	/opt/build/glibc-cvs/csu/abi-note.o \
	-Wl,--whole-archive \
	/opt/build/glibc-cvs/linuxthreads/libpthread_pic.a \
	-Wl,--no-whole-archive \
	/opt/build/glibc-cvs/elf/interp.os \
	/opt/build/glibc-cvs/libc.so \
	/opt/build/glibc-cvs/libc_nonshared.a \
	/opt/build/glibc-cvs/elf/ld.so 
/opt/build/glibc-cvs/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xc72): In function `__pthread_reset_main_thread':
: undefined reference to `_errno'
/opt/build/glibc-cvs/linuxthreads/libpthread_pic.a(pthread.os)(.text+0xc81): In function `__pthread_reset_main_thread':
: undefined reference to `_h_errno'
/opt/build/glibc-cvs/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1b8): undefined reference to `_errno'
/opt/build/glibc-cvs/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c0): undefined reference to `_h_errno'
collect2: ld returned 1 exit status
make[2]: *** [/opt/build/glibc-cvs/linuxthreads/libpthread.so] Error 1
make[2]: Target `others' not remade because of errors.
...

Known issue? Real problem? Local problem to my system?

Recent builds with GCC-3.2 (CVS) have been completing and testing
without errors.

Art Haas

-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]