On Wed, Mar 30, 2016 at 7:37 PM, $rik@nth srikanth007m@gmail.com wrote:
You mean if i set --host=arm-linux-gnuebi and --target=arm-linux-gunebi should automatically pick cross compilers
Yes, in theory, it should find CC, AS, AR, etc by itself. Don't forget that you need to set all 3 of build, host, and target for this to work.
instead of pointing them? I am just following Linaro website on how to build cross tool chain https://wiki.linaro.org/WorkingGroups/ToolChain/BuildingGNUToolchains
That page only talks about a basic cross build. it doesn't talk about cross building a native.
Please let me know if there is some more links where i can follow precisely.
We call it a "canadian cross" when build != host != target. What you are trying to do is very similar to a canadian cross, and works basically the same way. If you do a web search for "build canadian cross gcc" then you can find some web pages that talk about this. In general, this isn't well documented, because it is much harder to do a canadian cross than a regular cross, and it usually requires learning quite a bit about how gcc builds work in order to be able to do it successfully.
We have a tool called ABE that we use for builds inside linaro. There is a wiki page for it at https://wiki.linaro.org/ABE I know that this has support for a windows canadian cross build, e.g. build=x86_64-linux host=i686-w64-mingw3 and then a target or arm or aarch64. I don't know offhand if it can be used for what you are trying to do.
Building a native gcc binary is much easier than trying to cross build a native. You should do a native build if you can.
Jim