This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -m31 rejected when building libgcc for cross compiler for s390 (31 bit) gcc 4.6.0
- From: Ian Lance Taylor <iant at google dot com>
- To: "John P. Hartmann" <jphartmann at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 21 May 2011 08:31:58 -0700
- Subject: Re: -m31 rejected when building libgcc for cross compiler for s390 (31 bit) gcc 4.6.0
- References: <BANLkTinApiihuy4su+jyWwSQD+k-9Zf0MA@mail.gmail.com>
"John P. Hartmann" <jphartmann@gmail.com> writes:
> Building a cross compiler from i686 (the platform of my linux) to s390
> I get the following when the bootstrap process is configuring in
> s390-ibm-linux/libgcc:
>
> configure:3268: /usr/ports/gcc390/build460/./gcc/xgcc
> -B/usr/ports/gcc390/build460/./gcc/
> -B/usr/ports/gcc390/inst/s390-ibm-linux/bin/
> -B/usr/ports/gcc390/inst/s390-ibm-linux/lib/ -isystem
> /usr/ports/gcc390/inst/s390-ibm-linux/include -isystem
> /usr/ports/gcc390/inst/s390-ibm-linux/sys-include -c -g -O2
> conftest.c >&5
> exec: 89: -m31: not found
This looks like you don't have a cross-assembler. You need to make and
install the GNU binutils first with the same --host, --target, and
--prefix options. Then start again with gcc in a brand new empty build
directory.
Ian