--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: gcc-4.0: Can't compile 32-bit on amd64
- From: Anders Boström <anders@netinsight.se>
- Date: Tue, 28 Mar 2006 15:34:46 +0200 (CEST)
- Message-id: <20060328.153446.-974477065.anders@netinsight.se>
Package: gcc-4.0
Version: 4.0.3-1
Severity: important
I can't compile 32-bit (using -m32) on amd64:
sid:/home/anders/src>env -u LC_ALL gcc-4.0 -v -m32 hello.c -o hello
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.0.3 (Debian 4.0.3-1)
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -m32 -mtune=k8 -auxbase hello -version -o /tmp/ccldKBO2.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/include
/usr/include/i486-linux-gnu
/usr/include
End of search list.
GNU C version 4.0.3 (Debian 4.0.3-1) (x86_64-linux-gnu)
compiled by GNU C version 4.0.3 (Debian 4.0.3-1).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
as -V -Qy --32 -o /tmp/ccq131eX.o /tmp/ccldKBO2.s
GNU assembler version 2.16.91 (x86_64-linux-gnu) using BFD version 2.16.91 20060118 Debian GNU/Linux
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o hello /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../crti.o /usr/lib/gcc/x86_64-linux-gnu/4.0.3/32/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3/32 -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3/32 -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../.. /tmp/ccq131eX.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.0.3/32/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../crtn.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
sid:/home/anders/src>
This has worked before, but I don't know exactly when the problem
started. Similar problems have been reported before in bug #316142 and
#317473, but both #316142 and #317473 was fixed long ago.
I've got ia32-libs 1.6, libc6-i386 2.3.6-3, libc6-dev-i386 2.3.6-3 and
lib32gcc1 4.0.3-1 installed, but the search-path for libraries in gcc
don't use them (see above).
/ Anders
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.6
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to sv_SE)
Versions of packages gcc-4.0 depends on:
ii binutils 2.16.1cvs20060117-1 The GNU assembler, linker and bina
ii cpp-4.0 4.0.3-1 The GNU C preprocessor
ii gcc-4.0-base 4.0.3-1 The GNU Compiler Collection (base
ii libc6 2.3.6-3 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.3-1 GCC support library
Versions of packages gcc-4.0 recommends:
ii libc6-dev 2.3.6-3 GNU C Library: Development Librari
ii libmudflap0-dev 4.0.3-1 GCC mudflap support libraries (dev
-- no debconf information
--- End Message ---
--- Begin Message ---
>>>>> "AJ" == Aurelien Jarno <aurelien@aurel32.net> writes:
AJ> On Tue, Apr 11, 2006 at 09:38:15AM +0200, Anders Bostr??m wrote:
>> gcc -m32 works if I create the this link:
>> /usr/lib32 -> /emul/ia32-linux/usr/lib
>>
>> What package should create that link?
>>
AJ> A recent glibc provides the link, so I think you will have to upgrade.
OK, a newer glibc provides the link and is in testing by now => close.
/ Anders
--- End Message ---