* [Buildroot] External Toolchain in latest stable buildroot
@ 2009-09-11 6:48 Teemu Keskinarkaus
2009-09-11 7:14 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Teemu Keskinarkaus @ 2009-09-11 6:48 UTC (permalink / raw)
To: buildroot
Hi,
I'm trying to use external toolchain in latest stable buildroot version
(2009.08). It seems that the setup has changed some from the earlier
version I was using (0.10.0svn or something like that).
Now when I configure external toolchain in use and execute make -
command I get result 'Incorret selection of the C library'. Toolchain is
EABI and uses glibc. I have tried both uClibc and glibc - settings from
the buildroot setup, but still get the same error. (Of course that's
valid for uClibc).
With older buildroot there were no such problems and I was able to start
using external toolchain with little troubles. (Although later on I ran
in to some other problems and that's why I upgraded the buildroot).
All the documents I found are meant for older versions of buildroot and
use a little different configuration so they are not much help.
Is there something I should know/do more to get the external toolchain
to work in latest stable buildroot?
Teemu Keskinarkaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090911/af063199/attachment-0001.htm>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
@ 2009-09-11 6:55 Teemu Keskinarkaus
0 siblings, 0 replies; 9+ messages in thread
From: Teemu Keskinarkaus @ 2009-09-11 6:55 UTC (permalink / raw)
To: buildroot
Hi,
I'm trying to use external toolchain in latest stable buildroot version
(2009.08). It seems that the setup has changed some from the earlier
version I was using (0.10.0svn or something like that).
Now when I configure external toolchain in use and execute make -
command I get result 'Incorret selection of the C library'. Toolchain is
EABI and uses glibc. I have tried both uClibc and glibc - settings from
the buildroot setup, but still get the same error. (Of course that's
valid for uClibc).
With older buildroot there were no such problems and I was able to start
using external toolchain with little troubles. (Although later on I ran
in to some other problems and that's why I upgraded the buildroot).
All the documents I found are meant for older versions of buildroot and
use a little different configuration so they are not much help.
Is there something I should know/do more to get the external toolchain
to work in latest stable buildroot?
Teemu Keskinarkaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090911/ffd37f34/attachment-0001.htm>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 6:48 [Buildroot] External Toolchain in latest stable buildroot Teemu Keskinarkaus
@ 2009-09-11 7:14 ` Thomas Petazzoni
2009-09-11 7:27 ` Teemu Keskinarkaus
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2009-09-11 7:14 UTC (permalink / raw)
To: buildroot
Hello Teemu,
Le Fri, 11 Sep 2009 08:48:25 +0200,
"Teemu Keskinarkaus" <Teemu.Keskinarkaus@cc-systems.com> a ?crit :
> Now when I configure external toolchain in use and execute make -
> command I get result 'Incorret selection of the C library'. Toolchain
> is EABI and uses glibc. I have tried both uClibc and glibc - settings
> from the buildroot setup, but still get the same error. (Of course
> that's valid for uClibc).
Which external toolchain are you using ?
What does the following command returns ?
LANG=C $(TARGET_CC) -v
If you see a --with-sysroot thing in the result, could you look in this
directory, and then in /lib/ to see if there is any ld-linux.* file ?
> With older buildroot there were no such problems and I was able to
> start using external toolchain with little troubles. (Although later
> on I ran in to some other problems and that's why I upgraded the
> buildroot).
We added more checks to make sure that the configuration of Buildroot
matches the configuration of the external toolchains. But there's such
a variety of external toolchains that these checks might need some
fixes.
Sincerly,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 7:14 ` Thomas Petazzoni
@ 2009-09-11 7:27 ` Teemu Keskinarkaus
2009-09-11 10:49 ` Teemu Keskinarkaus
0 siblings, 1 reply; 9+ messages in thread
From: Teemu Keskinarkaus @ 2009-09-11 7:27 UTC (permalink / raw)
To: buildroot
Hi,
Thanks for the fast reply.
> -----Original Message-----
> What does the following command returns ?
>
> LANG=C $(TARGET_CC) -v
>
> If you see a --with-sysroot thing in the result, could you look in
this
> directory, and then in /lib/ to see if there is any ld-linux.* file ?
This was the case. I was installed the toolchain in the wrong directory
at first. I'll see what happens now that I have the toolchain in the
right place.
Teemu Keskinarkaus
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 7:27 ` Teemu Keskinarkaus
@ 2009-09-11 10:49 ` Teemu Keskinarkaus
2009-09-11 17:10 ` H Hartley Sweeten
0 siblings, 1 reply; 9+ messages in thread
From: Teemu Keskinarkaus @ 2009-09-11 10:49 UTC (permalink / raw)
To: buildroot
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
> -----Original Message-----
> From: buildroot-bounces at busybox.net
[mailto:buildroot-bounces at busybox.net]
> On Behalf Of Teemu Keskinarkaus
> Sent: 11. syyskuuta 2009 10:27
> To: buildroot at busybox.net
> Subject: Re: [Buildroot] External Toolchain in latest stable buildroot
>
> Hi,
>
> Thanks for the fast reply.
>
> > -----Original Message-----
> > What does the following command returns ?
> >
> > LANG=C $(TARGET_CC) -v
> >
> > If you see a --with-sysroot thing in the result, could you look in
> this
> > directory, and then in /lib/ to see if there is any ld-linux.* file
?
> This was the case. I was installed the toolchain in the wrong
directory
> at first. I'll see what happens now that I have the toolchain in the
> right place.
>
> Teemu Keskinarkaus
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 10:49 ` Teemu Keskinarkaus
@ 2009-09-11 17:10 ` H Hartley Sweeten
2009-09-11 17:29 ` Thomas Petazzoni
2009-09-14 5:57 ` Ulf Samuelsson
0 siblings, 2 replies; 9+ messages in thread
From: H Hartley Sweeten @ 2009-09-11 17:10 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 17:10 ` H Hartley Sweeten
@ 2009-09-11 17:29 ` Thomas Petazzoni
2009-09-11 17:33 ` H Hartley Sweeten
2009-09-14 5:57 ` Ulf Samuelsson
1 sibling, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2009-09-11 17:29 UTC (permalink / raw)
To: buildroot
Hi Hartley,
Le Fri, 11 Sep 2009 13:10:33 -0400,
"H Hartley Sweeten" <hartleys@visionengravers.com> a ?crit :
> 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.
Just a note to let you know that even though I didn't had the time the
past weeks to work on this, supporting Codesourcery toolchains in
Buildroot is definitely on my TODO-list. So, sorry if it wasn't ready
for your project, but it's for sure something I'd like to see supported
in Buildroot.
Thanks for all your investigations. When I'll have a little more time,
they will be very precious to give an idea where to start.
Sincerly,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 17:29 ` Thomas Petazzoni
@ 2009-09-11 17:33 ` H Hartley Sweeten
0 siblings, 0 replies; 9+ messages in thread
From: H Hartley Sweeten @ 2009-09-11 17:33 UTC (permalink / raw)
To: buildroot
On Friday, September 11, 2009 10:29 AM, Thomas Petazzoni wrote:
> Hi Hartley,
>
> Le Fri, 11 Sep 2009 13:10:33 -0400,
> "H Hartley Sweeten" <hartleys@visionengravers.com> a ?crit :
>
>> 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.
>
> Just a note to let you know that even though I didn't had the time the
> past weeks to work on this, supporting Codesourcery toolchains in
> Buildroot is definitely on my TODO-list. So, sorry if it wasn't ready
> for your project, but it's for sure something I'd like to see supported
> in Buildroot.
>
> Thanks for all your investigations. When I'll have a little more time,
> they will be very precious to give an idea where to start.
Thanks for the update. Everybody's busy ;-) I hope my investigations help.
I still have the CodeSourcery toolchain installed so if there is anything
you would like me to test please let me know.
Regards,
Hartley
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] External Toolchain in latest stable buildroot
2009-09-11 17:10 ` H Hartley Sweeten
2009-09-11 17:29 ` Thomas Petazzoni
@ 2009-09-14 5:57 ` Ulf Samuelsson
1 sibling, 0 replies; 9+ messages in thread
From: Ulf Samuelsson @ 2009-09-14 5:57 UTC (permalink / raw)
To: buildroot
H Hartley Sweeten skrev:
> 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.
The AT91SAM9263 is an ARM926EJ-S.
BR
Ulf Samuelsson
>
> 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
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-09-14 5:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 6:48 [Buildroot] External Toolchain in latest stable buildroot Teemu Keskinarkaus
2009-09-11 7:14 ` Thomas Petazzoni
2009-09-11 7:27 ` Teemu Keskinarkaus
2009-09-11 10:49 ` Teemu Keskinarkaus
2009-09-11 17:10 ` H Hartley Sweeten
2009-09-11 17:29 ` Thomas Petazzoni
2009-09-11 17:33 ` H Hartley Sweeten
2009-09-14 5:57 ` Ulf Samuelsson
-- strict thread matches above, loose matches on Subject: below --
2009-09-11 6:55 Teemu Keskinarkaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox