Bug#428509: gcc-4.1 post 4.1.2-8 breaks glibc compilation
Package: gcc-4.1
Version: 4.1.2-12
Severity: important
I tracked down why glibc didn't build anymore on hppa.
This is related to the new gcc-4.1.
All version post 4.1.2-8 (that is 4.1.2-11 and 4.1.2-12) breaks at
the same place in the log :
gcc-4.1 -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld.so.1
-B/home/seb/dev/glibc-2.5/build-
tree/hppa-libc/csu/ -Wl,--version-script=/home/seb/dev/glibc-2.5/build-tree/hppa-libc/librt.map
-Wl,-soname=librt.so.1
-Wl,-z,combreloc -Wl,--hash-style=both -Wl,--enable-new-dtags,-z,nodelete
-L/home/seb/dev/glibc-2.5/build-tree/hppa-libc
-L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/math -L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/elf
-L/home/seb/dev/
glibc-2.5/build-tree/hppa-libc/dlfcn -L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/nss
-L/home/seb/dev/glibc-2.5/build-
tree/hppa-libc/nis -L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt
-L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/reso
lv -L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/crypt
-L/home/seb/dev/glibc-2.5/build-tree/hppa-libc/linuxthreads -Wl,
-rpath-link=/home/seb/dev/glibc-2.5/build-tree/hppa-libc:/home/seb/dev/glibc-2.5/build-tree/hppa-libc/math:/home/seb/dev
/glibc-2.5/build-tree/hppa-libc/elf:/home/seb/dev/glibc-2.5/build-tree/hppa-libc/dlfcn:/home/seb/dev/glibc-2.5/build-tre
e/hppa-libc/nss:/home/seb/dev/glibc-2.5/build-tree/hppa-libc/nis:/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt:/home/s
eb/dev/glibc-2.5/build-tree/hppa-libc/resolv:/home/seb/dev/glibc-2.5/build-tree/hppa-libc/crypt:/home/seb/dev/glibc-2.5/
build-tree/hppa-libc/linuxthreads -o /home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt.so -T
/home/seb/dev/glibc-2.5
/build-tree/hppa-libc/shlib.lds /home/seb/dev/glibc-2.5/build-tree/hppa-libc/csu/abi-note.o -Wl,--whole-archive
/home/se
b/dev/glibc-2.5/build-tree/hppa-libc/rt/librt_pic.a -Wl,--no-whole-archive
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/
elf/interp.os /home/seb/dev/glibc-2.5/build-tree/hppa-libc/libc.so
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/libc_non
shared.a /home/seb/dev/glibc-2.5/build-tree/hppa-libc/linuxthreads/libpthread_nonshared.a
/home/seb/dev/glibc-2.5/build-
tree/hppa-libc/linuxthreads/libpthread.so /home/seb/dev/glibc-2.5/build-tree/hppa-libc/elf/ld.so
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt_pic.a(clock_nanosleep.os): In function `clock_nanosleep':
/home/seb/dev/glibc-2.5/build-tree/glibc-2.5/rt/../sysdeps/unix/sysv/linux/clock_nanosleep.c:42: undefined
reference to
`__librt_multiple_threads'
/home/seb/dev/glibc-2.5/build-tree/glibc-2.5/rt/../sysdeps/unix/sysv/linux/clock_nanosleep.c:42: undefined
reference to
`__librt_multiple_threads'
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt_pic.a(mq_timedsend.os): In function `mq_timedsend':
(.text+0x1c): undefined reference to `__librt_multiple_threads'
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt_pic.a(mq_timedsend.os): In function `mq_timedsend':
(.text+0x20): undefined reference to `__librt_multiple_threads'
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt_pic.a(mq_timedreceive.os): In function `mq_timedreceive':
(.text+0x1c): undefined reference to `__librt_multiple_threads'
/home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt_pic.a(mq_timedreceive.os):(.text+0x20): more undefined
references
to `__librt_multiple_threads' follow
/usr/bin/ld: /home/seb/dev/glibc-2.5/build-tree/hppa-libc/rt/librt.so: hidden symbol `__librt_multiple_threads'
isn't de
fined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
Note that the gcc-4.2 is also affected by this problem.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: hppa (parisc)
Kernel: Linux 2.6.21-1-parisc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gcc-4.1 depends on:
ii binutils 2.17cvs20070426-8 The GNU assembler, linker and bina
ii cpp-4.1 4.1.2-12 The GNU C preprocessor
ii gcc-4.1-base 4.1.2-12 The GNU Compiler Collection (base
ii libc6 2.5-9 GNU C Library: Shared libraries
ii libgcc4 4.2-20070609-1 GCC support library
Versions of packages gcc-4.1 recommends:
ii libc6-dev 2.5-9 GNU C Library: Development Librari
pn libmudflap0-dev <none> (no description available)
-- no debconf information
Reply to: