Your message dated Wed, 30 May 2007 10:34:29 -0700 (PDT)
with message-id <[EMAIL PROTECTED]>
and subject line Bug#426587: Acknowledgement (gcc-4.1 compiled code links on
x86, but not x86-64)
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: gcc-4.1
Version: 4.1.2-8
Severity: important
Code that compiles/links fine on an x86 platform, using PIE fails to
link on amd64 - looks like crt1.o wasn't built -fPIC on amd
$ cc -g -Wall -O2 -fstack-protector-all -z relro -z now -fPIE
-Wl,-z,relro -Wl,-z,now -Wl,-pie -Wl,--warn-shared-textrel version.c
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o:
relocation R_X86_64_32S against `__libc_csu_fini' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: could not
read symbols: Bad value
collect2: ld returned 1 exit status
Just for giggles, change -fPIE to -fPIC
$ cc -g -Wall -O2 -fstack-protector-all -z relro -z now -fPIC
-Wl,-z,relro -Wl,-z,now -Wl,-pie -Wl,--warn-shared-textrel version.c
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o:
relocation R_X86_64_32S against `__libc_csu_fini' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: could not
read symbols: Bad value
collect2: ld returned 1 exit status
-- System Information:
Debian Release: lenny/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'),
(500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.21-rc7 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
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-8 The GNU C preprocessor
ii gcc-4.1-base 4.1.2-8 The GNU Compiler Collection (base
ii libc6 2.5-9 GNU C Library: Shared libraries
ii libgcc1 1:4.2-20070525-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
--- End Message ---
--- Begin Message ---
Stupid luser tricks #666: hiding information from the gcc wrapper
--
Rick Nelson
<xtifr> wow, I think I just used libtool to solve a problem -- somebody
help me! :>
<luca> xtifr, STEP AWAY FROM THE KEYBOARD
--- End Message ---