http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53523
Bug #: 53523 Summary: i686 compiler with multilib ( x86_64 target ) included fails on linker Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: kphilli...@gmail.com Created attachment 27518 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27518 Simple Shell containing the commands I used ran. I was trying to build a compiler where the default output is i686 ( 32-bit), but the compiler can handle building 64-bit libraries. This occurs when trying to link the libgcc_s.a (64-bit version ) Attached is a simple text file outlining all of the commands I ran. Host Computer: Linux Mint 13 Host Computer Prep: sudo apt-get install g++ && sudo apt-get build-dep gcc Host Compiler: $gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Compiler being built: i686-w64-mingw32-gcc -v Using built-in specs. COLLECT_GCC=i686-w64-mingw32-gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-w64-mingw32/4.7.0/lto-wrapper Target: i686-w64-mingw32 Configured with: ../gcc-4.7.0/configure --target=i686-w64-mingw32 --enable-targets=all --enable-languages=c,c++,fortran,objc,obj-c++,lto Thread model: win32 gcc version 4.7.0 (GCC)