Skip to contentSkip to conversation

debian/testing cannot compile static with gcc3.3.5

DISCUSSION Stephane Eranian 5 participants 5 messages Aug 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

I recently upgraded my system to the latest testing. Since then, I cannot comile any program with static linking:

$ cc hello.c -o hello -g -static
/usr/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a(check_fds.o)
/usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

I have the following packages installed. So it seems that somehow libc6.1-dev has a problem compared to the shared libc.

ii  binutils       2.16.1-2       The GNU assembler, linker and binary utiliti
ii  binutils-dev   2.16.1-2       The GNU binary utilities (BFD development fi
ii  binutils-doc   2.15-5         Documentation for the GNU assembler, linker
ii  libc6.1        2.3.2.ds1-22   GNU C Library: Shared libraries and Timezone
ii  libc6.1-dbg    2.3.2.ds1-22   GNU C Library: Libraries with debugging symb
ii  libc6.1-dev    2.3.2.ds1-22   GNU C Library: Development Libraries and Hea
ii  libc6.1-pic    2.3.2.ds1-22   GNU C Library: PIC archive library
ii  libc6.1-prof   2.3.2.ds1-22   GNU C Library: Profiling Libraries
ii  gcc            3.3.5-1        The GNU C compiler
ii  gcc-3.3        3.3.5-8        The GNU C compiler
ii  gcc-3.3-base   3.3.5-8        The GNU Compiler Collection (base package)
ii  gcc-3.4        3.4.3-6        The GNU C compiler
ii  gcc-3.4-base   3.4.3-6        The GNU Compiler Collection (base package)
ii  gcc-4.0        4.0.1-2        The GNU C compiler
ii  gcc-4.0-base   4.0.1-2        The GNU Compiler Collection (base package)
ii  libgcc1        4.0.1-2        GCC support library
Signature · 1 line
-Stephane
#1 lore raw
Quoted 1 line · Stephane Eranian

Since then, I cannot comile any program with static linking:

What does this have to do with the kernel?

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#2 lore raw
In reply to Stephane Eranian
Quoted 7 lines · Stephane Eranian

I recently upgraded my system to the latest testing. Since then, I cannot comile any program with static linking:

$ cc hello.c -o hello -g -static
/usr/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a(check_fds.o)
/usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

gcc-4.0 issue? Try rebuilding glibc.

#3 lore raw
In reply to Stephane Eranian

I'm running Debian/unstable and static linking of a dummy hello world program works fine, both with gcc 3.3.6 and gcc 4.0.2. [email protected] might be a better place to take this discussion, though.

--david

Quoted 38 lines · Stephane Eranian

Hello,

I recently upgraded my system to the latest testing. Since then, I cannot comile any program with static linking:

$ cc hello.c -o hello -g -static
/usr/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a(check_fds.o)
/usr/lib/gcc-lib/ia64-linux/3.3.5/../../../libc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

I have the following packages installed. So it seems that somehow libc6.1-dev has a problem compared to the shared libc.

ii  binutils       2.16.1-2       The GNU assembler, linker and binary utiliti
ii  binutils-dev   2.16.1-2       The GNU binary utilities (BFD development fi
ii  binutils-doc   2.15-5         Documentation for the GNU assembler, linker
ii  libc6.1        2.3.2.ds1-22   GNU C Library: Shared libraries and Timezone
ii  libc6.1-dbg    2.3.2.ds1-22   GNU C Library: Libraries with debugging symb
ii  libc6.1-dev    2.3.2.ds1-22   GNU C Library: Development Libraries and Hea
ii  libc6.1-pic    2.3.2.ds1-22   GNU C Library: PIC archive library
ii  libc6.1-prof   2.3.2.ds1-22   GNU C Library: Profiling Libraries
ii  gcc            3.3.5-1        The GNU C compiler
ii  gcc-3.3        3.3.5-8        The GNU C compiler
ii  gcc-3.3-base   3.3.5-8        The GNU Compiler Collection (base package)
ii  gcc-3.4        3.4.3-6        The GNU C compiler
ii  gcc-3.4-base   3.4.3-6        The GNU Compiler Collection (base package)
ii  gcc-4.0        4.0.1-2        The GNU C compiler
ii  gcc-4.0-base   4.0.1-2        The GNU Compiler Collection (base package)
ii  libgcc1        4.0.1-2        GCC support library

--

(quoted diff) +0 -2
-Stephane
-

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Mosberger Consulting LLC, voice/fax: 510-744-9372,
http://www.mosberger-consulting.com/
35706 Runckel Lane, Fremont, CA 94536
#4 lore raw
In reply to Stephane Eranian
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Stephane" = Stephane Eranian <[email protected]> writes:

Stephane> Hello, I recently upgraded my system to the latest testing. Stephane> Since then, I cannot comile any program with static linking:

It's a glibc bug. Get a glibc after 2.3.5.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug19115

Signature · 2 lines
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
The technical we do immediately,  the political takes *forever*