https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80759
--- Comment #16 from Daniel Santos <daniel.santos at pobox dot com> --- Sorry for my delayed response. I'm working on adding extended tests triggered by an environment variable (because I needed to better validate somebody else's changes to my -mcall-ms2sysv-xlogues feature and I encountered a flaw in my test program when the header is generated with a -p range of 7 or higher. (In reply to r...@cebitec.uni-bielefeld.de from comment #14) > You need to make certain to have the necessary 32-bit libraries and > headers. Apart from that, configure --target=i686-pc-linux-gnu > --enable-targets=all should be enough, together with CC='gcc -m32' > CXX='g++ -m32'. I don't pass --enable-multilib, this happens by default. I seem to have encountered some type of bug in something here (autoconf maybe?). When the build gets to running configure on libgcc, it fails with: configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [Makefile:13549: configure-target-libgcc] Error 1 make[1]: Leaving directory '/home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu' make: *** [Makefile:898: all] Error 2 The failure is actually when it's calling exec with -- and the option isn't recognized: configure:3469: /home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu/./gcc/xgcc -B/home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu/./gc c/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-incl ude -o conftest -g -O2 conftest.c >&5 /home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu/./gcc/as: line 106: exec: --: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] configure:3472: $? = 1 configure:3660: checking for suffix of object files configure:3682: /home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu/./gcc/xgcc -B/home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu/./gc c/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-incl ude -c -g -O2 conftest.c >&5 /home/daniel/proj/sys/gcc/builds/testsuite-fixes-i686-pc-linux-gnu/./gcc/as: line 106: exec: --: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] configure:3686: $? = 1 I don't fancy myself an autotools expert, so I'm not yet certain that it's a bug. I'm using gentoo with app-shells/bash-4.3_p48-r1 sys-devel/autoconf-2.64 (among others) sys-devel/binutils-2.26.1 My spidy-sense tells me to try out binutils 2.27 or some such. I'll get back on the rest of this soon.