Bug#768265: gcc-4.9: Please support i386 compilation on amd64 through multiarch
Package: gcc-4.9 Version: 4.9.1-19 Severity: wishlist Dear Maintainer, 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. Kind regards Ralf -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (100, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.17.0+ (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gcc-4.9 depends on: ii binutils2.24.90.20141023-1 ii cpp-4.9 4.9.1-19 ii gcc-4.9-base4.9.1-19 ii libc6 2.19-12 ii libcloog-isl4 0.18.2-1 ii libgcc-4.9-dev 4.9.1-19 ii libgmp102:6.0.0+dfsg-6 ii libisl100.12.2-2 ii libmpc3 1.0.2-1 ii libmpfr43.1.2-1 ii zlib1g 1:1.2.8.dfsg-2 Versions of packages gcc-4.9 recommends: ii libc6-dev 2.19-12 Versions of packages gcc-4.9 suggests: ii gcc-4.9-doc 4.9.1-3 pn gcc-4.9-locales pn gcc-4.9-multilib pn libasan1-dbg pn libatomic1-dbg pn libcilkrts5-dbg pn libgcc1-dbg pn libgomp1-dbg pn libitm1-dbg pn liblsan0-dbg pn libquadmath0-dbg pn libtsan0-dbg pn libubsan0-dbg -- no debconf information -- 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/20141106080245.31762.98677.reportbug@r-schnelltop
Bug#768265: gcc-4.9: Please support i386 compilation on amd64 through multiarch
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
Processed: Re: Bug#768265: gcc-4.9: Please support i386 compilation on amd64 through multiarch
Processing control commands: > tags -1 + wontfix Bug #768265 [gcc-4.9] gcc-4.9: Please support i386 compilation on amd64 through multiarch Added tag(s) wontfix. -- 768265: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768265 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- 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/handler.s.b768265.141527656225637.transcr...@bugs.debian.org
Processed: user release.debian....@packages.debian.org, tagging 701814, tagging 709198, tagging 694986 ...
Processing commands for cont...@bugs.debian.org: > # RT sprint decision (-ignore, is-blocker) > # moreinfo/unreproduciable changes are BTS cleaning > user release.debian@packages.debian.org Setting user to release.debian@packages.debian.org (was ni...@thykier.net). > tags 701814 + jessie-ignore Bug #701814 [os-prober] os-prober: damages XFS exported via iSCSI but not mounted locally; potential data loss Added tag(s) jessie-ignore. > tags 709198 + jessie-ignore Bug #709198 [debconf] debconf: should not use python in maintainer scripts Added tag(s) jessie-ignore. > tags 694986 + jessie-ignore Bug #694986 [initscripts] flash-kernel: postinst modifies /etc/default/rcS Added tag(s) jessie-ignore. > tags 745835 + jessie-ignore Bug #745835 [lynx-cur] lynx-cur: certificate revocation is not checked Added tag(s) jessie-ignore. > tags 752610 + jessie-ignore Bug #752610 [lynx-cur] lynx: Can connect to CVE-2014-0092 test site Added tag(s) jessie-ignore. > severity 715204 important Bug #715204 [automake] automake: Doesn't use TESTS_ENVIRONMENT with parallel test Severity set to 'important' from 'serious' > severity 747054 important Bug #747054 [eclipse] FTBFS: package javax.servlet.http does not exist Severity set to 'important' from 'serious' > tags 747054 - unreproducible Bug #747054 [eclipse] FTBFS: package javax.servlet.http does not exist Removed tag(s) unreproducible. > severity 649038 important Bug #649038 [elfutils] elfutils FTBFS on kfreebsd Severity set to 'important' from 'serious' > usertags 714045 jessie-is-blocker There were no usertags set. Usertags are now: jessie-is-blocker. > tags 747141 + jessie-ignore Bug #747141 [debhelper] debhelper: dh_installdocs --link-doc forces source-version dependencies Added tag(s) jessie-ignore. > severity 765017 normal Bug #765017 [spice-client-glib-usb-acl-helper] SECURITY - normal users are allowed full access to USB devices per default Severity set to 'normal' from 'critical' > tags 765380 + jessie-ignore Bug #765380 [src:gcc-4.8] don't ship gcc-4.8 with jessie Added tag(s) jessie-ignore. > retitle 765380 gcc-4.8: do not ship with Jessie+1 Bug #765380 [src:gcc-4.8] don't ship gcc-4.8 with jessie Changed Bug title to 'gcc-4.8: do not ship with Jessie+1' from 'don't ship gcc-4.8 with jessie' > tags 756179 + moreinfo Bug #756179 [efibootmgr] grub-efi-amd64: Boot failure after upgrade to 2.02~beta2-11 Added tag(s) moreinfo. > severity 756179 important Bug #756179 [efibootmgr] grub-efi-amd64: Boot failure after upgrade to 2.02~beta2-11 Severity set to 'important' from 'critical' > severity 764692 important Bug #764692 [libc0.1-dev] glibc: removed __FAVOR_BSD from features.h Severity set to 'important' from 'serious' > tags 741464 - moreinfo unreproducible Bug #741464 [grub-pc-bin] grub-pc-bin: freezes after "terminal_input at_keyboard" Removed tag(s) unreproducible and moreinfo. > severity 741464 grave Bug #741464 [grub-pc-bin] grub-pc-bin: freezes after "terminal_input at_keyboard" Severity set to 'grave' from 'critical' > tags 765567 + jessie-ignore Bug #765567 [docbook-xsl] Please use non-recursive version Added tag(s) jessie-ignore. > severity 764590 important Bug #764590 [procps] procps: fails to build from source in sid on amd64 Severity set to 'important' from 'critical' > severity 740509 important Bug #740509 [glibc] ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address Bug #765882 [glibc] freebsd-net-tools: ifconfig ioctl siocaifaddr Severity set to 'important' from 'critical' Severity set to 'important' from 'critical' > severity 766370 important Bug #766370 [libc6] login[5797]: segfault at ip sp error 14 in librt-2.19.so Severity set to 'important' from 'critical' > tags 766370 + unreproducible Bug #766370 [libc6] login[5797]: segfault at ip sp error 14 in librt-2.19.so Added tag(s) unreproducible. > tags 766397 + jessie-ignore Bug #766397 [emacs24] emacs/gnus: Uses s_client to for SSL. Added tag(s) jessie-ignore. > thanks Stopping processing here. Please contact me if you need assistance. -- 649038: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649038 694986: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694986 701814: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701814 709198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709198 714045: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714045 715204: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715204 740509: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740509 741464: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741464 745835: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745835 747054: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747054 747141: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747141 752610: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752610 756179: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756179 764590: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764590 764692: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764
Results for 4.9.2 (Debian 4.9.2-1) testsuite on i586-pc-kfreebsd-gnu
LAST_UPDATED: Tue Nov 4 02:04:29 UTC 2014 (revision 217061) Target: i586-kfreebsd-gnu gcc version 4.9.2 (Debian 4.9.2-1) Native configuration is i586-pc-kfreebsd-gnu === g++ tests === Running target unix FAIL: g++.dg/ipa/pr61160-3.C -std=gnu++98 execution test FAIL: g++.dg/ipa/pr61160-3.C -std=gnu++11 execution test FAIL: g++.dg/ipa/pr61160-3.C -std=gnu++1y execution test FAIL: g++.dg/guality/pr55665.C -O2 line 23 p == 40 FAIL: g++.dg/guality/pr55665.C -O3 -fomit-frame-pointer line 23 p == 40 FAIL: g++.dg/guality/pr55665.C -O3 -g line 23 p == 40 XPASS: g++.dg/tls/thread_local-order2.C -std=c++11 execution test XPASS: g++.dg/tls/thread_local-order2.C -std=c++1y execution test === g++ Summary for unix === # of expected passes81452 # of unexpected failures6 # of unexpected successes 2 # of expected failures 443 # of unsupported tests 2690 Running target unix/-fstack-protector FAIL: g++.dg/fstack-protector-strong.C -std=gnu++98 scan-assembler-times stack_chk_fail 2 FAIL: g++.dg/fstack-protector-strong.C -std=gnu++11 scan-assembler-times stack_chk_fail 2 FAIL: g++.dg/fstack-protector-strong.C -std=gnu++1y scan-assembler-times stack_chk_fail 2 FAIL: g++.dg/ipa/pr61160-3.C -std=gnu++98 execution test FAIL: g++.dg/ipa/pr61160-3.C -std=gnu++11 execution test FAIL: g++.dg/ipa/pr61160-3.C -std=gnu++1y execution test FAIL: g++.dg/guality/pr55665.C -O2 line 23 p == 40 FAIL: g++.dg/guality/pr55665.C -O3 -fomit-frame-pointer line 23 p == 40 FAIL: g++.dg/guality/pr55665.C -O3 -g line 23 p == 40 XPASS: g++.dg/tls/thread_local-order2.C -std=c++11 execution test XPASS: g++.dg/tls/thread_local-order2.C -std=c++1y execution test === g++ Summary for unix/-fstack-protector === # of expected passes81449 # of unexpected failures9 # of unexpected successes 2 # of expected failures 443 # of unsupported tests 2690 === g++ Summary === # of expected passes162901 # of unexpected failures15 # of unexpected successes 4 # of expected failures 886 # of unsupported tests 5380 /build/gcc-4.9-V1EqxM/gcc-4.9-4.9.2/build/gcc/testsuite/g++/../../xg++ version 4.9.2 (Debian 4.9.2-1) === gcc tests === Running target unix FAIL: gcc.c-torture/compile/pr46534.c -O0 (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -O1 (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -O2 (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -O3 -fomit-frame-pointer (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -O3 -g (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -Os (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) FAIL: gcc.c-torture/compile/pr46534.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) WARNING: program timed out. WARNING: program timed out. WARNING: program timed out. WARNING: program timed out. WARNING: program timed out. WARNING: program timed out. WARNING: program timed out. WARNING: program timed out. XPASS: gcc.dg/guality/example.c -O0 execution test XPASS: gcc.dg/guality/example.c -O1 execution test XPASS: gcc.dg/guality/guality.c -O0 execution test XPASS: gcc.dg/guality/guality.c -O1 execution test XPASS: gcc.dg/guality/guality.c -O2 execution test XPASS: gcc.dg/guality/guality.c -O3 -fomit-frame-pointer execution test XPASS: gcc.dg/guality/guality.c -O3 -g execution test XPASS: gcc.dg/guality/guality.c -Os execution test XPASS: gcc.dg/guality/guality.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test XPASS: gcc.dg/guality/guality.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test XPASS: gcc.dg/guality/inline-params.c -O2 execution test XPASS: gcc.dg/guality/inline-params.c -O3 -fomit-frame-pointer execution test XPASS: gcc.dg/guality/inline-params.c -O3 -g execution test XPASS: gcc.dg/guality/inline-params.c -Os execution test XPASS: gcc.dg/guality/inline-params.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test XPASS: gcc.dg/guality/pr41353-1.c -O0 line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -O1 line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -O2 line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -O3 -fomit-frame-pointer line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -O3 -g line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -Os line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41353-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects line 28 j == 28 + 37 XPASS: gcc.dg/guality/pr41447-1.c -O0 execution test XPASS: gcc.dg/guality/pr41447-1.c -O1 execu