Building a GCC cross compiler (C++).

Programming, for all ages and all languages.
Post Reply
skyking
Member
Member
Posts: 174
Joined: Sun Jan 06, 2008 8:41 am

Building a GCC cross compiler (C++).

Post by skyking »

Is there anyone here that actually built an fully functional GCC for arm? When I've tried to use fx --target=arm-eabi I've ended up with libraries where the exception handling support seem to be crippled (ie __register_frame does not appear in any generated library). Other configurations (fx arm-unknown-linux-gnueabi) failed to build. I'm trying to build GCC-4.4.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Building a GCC cross compiler (C++).

Post by pcmattman »

Have you tried the arm-elf target?

The EABI machine seems to lack support for the function (although, that is an LLVM list, not a GCC one).
skyking
Member
Member
Posts: 174
Joined: Sun Jan 06, 2008 8:41 am

Re: Building a GCC cross compiler (C++).

Post by skyking »

pcmattman wrote:Have you tried the arm-elf target?

The EABI machine seems to lack support for the function (although, that is an LLVM list, not a GCC one).
Now I've tried - that target failed miserably (libstdc++ didn't support that target). The reason I'm asking is that trying a random target and build is a quiet time consuming way of working.

I've now been successful - the key thing was that you have to supply --with-newlib to configure for gcc (or add support for your OS in stdlibc++). I think that the tutorials in the wiki on this matter is not very good. First of all the tutorial for GCC Cross-Compiler does not really cover the steps beyond the raw compiler (in order to get runtime support for C++ you have to incorporate some bits and pieces from the Porting Newlib and the OS Specific Toolchain pages, also the examples are quiet silly since most of us already have support for i586 in their native gcc. Also as it is very time consuming operation it would be a good idea to give information on some known-to-work targets.
Post Reply