This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bootstrap gcc for i686-linux-gnu on x86_64 host


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]