Re: help regarding native compiler building

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks ian,

i tried the same way. as follows 

./configure --target=mips-unknown-linux --host=mips-unknown-linux --build=i686-pc-linux  --enable-languages=c

and exported the cross tool chain in the PATH

i could able to create the native compiler,  but it's not working on my target for simple functions such as below

int foo()
{
return 0;
}

it's giving "???bad rtl" as error.




----- Original Message -----
From: Ian Lance Taylor <iant@xxxxxxxxxx>
To: Tango Nair <tangotst@xxxxxxxxx>
Cc: "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx>
Sent: Wednesday, January 30, 2013 8:54 PM
Subject: Re: Fw: help regarding native compiler building

On Wed, Jan 30, 2013 at 7:19 AM, Tango Nair <tangotst@xxxxxxxxx> wrote:
>
> i have cross tool chain gcc4 for our target(MIPS like).
> how can i built native compiler using this cross tool chain?

Assuming you have a fully functioning cross tool chain, build GCC in
the usual way, but when you run configure pass --build, --host, and
--target options.  The --build option would be the system on which you
are doing the build, the host system of your cross tool chain.  The
--host and --target options should be the same, and should be the
target of your cross tool chain.

Ian




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux