On 06/15/2012 12:03 AM, Ian Lance Taylor wrote:
"Armin K."<krejzi@xxxxxxxxx> writes:
Alright, I have built x86_64 cross compiler, built 64bit glibc with
which sort of works. I have built static i686 compiler with multilib
support (i686-linux-gnu-gcc/gcc -m64 works with that one), but now I
am trying to build shared set of compilers including c, c++ and ada
one (I have built static gnat stuff with static gcc), but I still keep
failing with same error as in the bug report, ie - no x86_64
support. Looking at config.log it seems to be using xgcc from stage1
bootstrap which isn't multilib capable for some reason. So, what am I
still doing wrong? I want i686 compiler, but I also want it to be able
to use -m64 with it.
Sorry I missed saying this last time: please reply to gcc-help, not
just to me. Thanks.
Did you configure with --enable-targets=all ?
Ian
Whoops, sorry. I just hit reply and didn't pay attention to e mail
address which was sent to.
Yes, I configured static gcc with --enable-targets=all and even dynamic.
$ /usr/gcc/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/gcc/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/lib/gcc/i686-linux-gnu/4.6.3/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure --prefix=/usr/gcc
--libdir=/usr/gcc/lib --libexecdir=/usr/gcc/lib --without-headers
--with-newlib --disable-shared --disable-nls --disable-decimal-float
--disable-libgomp --disable-libmudflap --disable-libquadmath
--disable-libssp --disable-threads --without-ppl --without-cloog
--enable-targets=all --with-mpfr-include=/home/armin/src/src/mpfr/src
--with-mpfr-lib=/home/armin/src/build/mpfr/.libs --enable-multilib
--enable-bootstrap --enable-languages=c,ada --host=i686-linux-gnu
--build=i686-linux-gnu --target=i686-linux-gnu
Thread model: single
gcc version 4.6.3 (GCC)