This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap gcc for i686-linux-gnu on x86_64 host
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 23 Aug 2016 07:00:43 +0100
- Subject: Re: bootstrap gcc for i686-linux-gnu on x86_64 host
- Authentication-results: sourceware.org; auth=none
- References: <CAAgBjMm-h3P9pF2Lv37BiMH4tO-w_znMSqKT4pmCmBdDKQHqGw@mail.gmail.com>
On 23 August 2016 at 04:45, Prathamesh Kulkarni wrote:
> Hi,
> Is it possible to bootstrap gcc for i686-linux-gnu on x86_64 host ?
> Should the following work ?
> a) Build binutils for i686-linux-gnu
> b) configure gcc with --host=i686-linux-gnu --build=i686-linux-gnu
> --target=i686-linux-gnu
> c) make BOOT_CFLAGS="-m32"
My memory of trying this is hazy, but IIRC this isn't sufficient, and
you need CC='gcc -m32' CXX='g++ -m32' or something like that.