Control: tags -1 + wontfix Am 06.11.2014 um 09:02 schrieb Ralf Jung: > I tried to compile a simple "Hello world" C program to a 32bit binary on > my amd64 system, using: > > $ gcc -m32 test.c -o test > > But this does not work: > > /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a > when searching for -lgcc > /usr/bin/ld: cannot find -lgcc > /usr/bin/ld: skipping incompatible > /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s > /usr/bin/ld: cannot find -lgcc_s > collect2: error: ld returned 1 exit status > > I do have libgcc-4.9-dev:i386 installed, so both libgcc.a and libgcc_s.so are > available as 32bit binaries. > It just doesn't find them. I tried guiding it with "-L", but that did not > help. > > Of course I could install gcc-multilib, but that will pull in > libc6-dev-i386:amd64, duplicating what > I already have from libc6-dev:i386. That seems like a useless waste.
the GCC package has to be self-contained for both build, testing, and deployment. If you use the system for development, you have the resources on this system, so "useless waste" seems to be non-issue. If you want to lookup the additional directories, please provide a patch, get it upstream, and then it will find its way in the packages. -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/545b6806.6050...@debian.org