This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross compilation problem
>> The problem is that the tools that is being built are not 32bit
>> executables, they are rather 64bit (ELF 64-bit LSB executable,
>> x86-64). This is not what I expected because of
>> "--with-host=i386-linux-gnu" parameter which as far as I understand
>> tells the build system to build a compiler that runs on 32bit linux
>> machine.
>
> Specifying --with-host tells the build system that the resulting
> executables should run on that host. ÂHowever, you also have to provide
> a compiler that generates executables that run on that host. ÂIf you
> don't, the configure script will try to find such a compiler. ÂIn your
> case it appears to be getting it wrong.
>
> I would recommend passing BOOT_CFLAGS=-m32 when you run configure and/or
> make.
>
> Ian
Thank You!
I tried to add following parameters and they helped:
--disable-bootstrap CFLAGS=-m32
I also added CFLAGS=-m32 to "make" command just in case
I don't know what exactly made such an effect but the problem is
solved now. Thank You!
----------------------------
Best regards!
Alexey Umnov
umnoff@gmail.com