[Buildroot] External Toolchain in latest stable buildroot

H Hartley Sweeten hartleys at visionengravers.com
Fri Sep 11 17:10:33 UTC 2009


On Friday, September 11, 2009 3:50 AM, Teemu Keskinarkaus wrote:
> Hi,
>
> So I was able to get some of the stuff compile and some not. The
> external toolchain I'm using is Codesourcery's toolchain for arm.
> Version is(Sourcery G++ Lite 2009q1-203) (gcc version 4.3.3)
> 
> I'm quite sure that this is not 100% buildroot problem, but I ask
> anyway.
> 
> I hit problems when compiling bootstrap for AT91.
> 
> Get few of these errors:
> 
> build/at91sam9263ek/main.o:(.ARM.exidx+0x0): undefined reference to
> `__aeabi_unwind_cpp_pr1'
> build/at91sam9263ek/at91sam9263ek.o:(.ARM.exidx+0x0): undefined
> reference to `__aeabi_unwind_cpp_pr0'
> 
> I did some digging and it seems that the problem might be in the
> toolchain, but it might also need some work in buildroot side.
> 
> Has anyone been able to use CodeSourcerys toolchain to compile buildroot
> for ARM? Or is anyone even using CodeSourcerys toolchain for ARM?
> 
> Teemu Keskinarkaus

The Sourcery G++ Lite 2009q1-203 toolchain is a multilib sysroot toolchain.
I had similar problems trying to get it to work for an EP93XX processor.

I think the AT91 processor is an ARM920T so you need to pass -march=armv4t
to the toolchain to in order for it to compile the code correctly.  This
is the same option I need for the EP93XX.

I spent the last three weeks trying to get this toolchain to work correctly.
I finally got "way" over my head and built my own toolchain with crosstool-ng.
Personally I would prefer to use a prebuilt external toolchain but at least
everything works now.

Regards,
Hartley


More information about the buildroot mailing list