* [Buildroot] Compiling applications for ARM9
@ 2010-12-13 11:39 Abhishek Ashtekar
2010-12-13 16:49 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Abhishek Ashtekar @ 2010-12-13 11:39 UTC (permalink / raw)
To: buildroot
Hello,
I have Buildroot running on the AT91SAM9G20 board and want to compile and run own application programs.
With Eclipse, GNU_ARM_Eclipse_Plugin (ARM Linux GCC ) when I try to compile a ' Hello World ', I get the error
/bin/sh: arm-elf-gcc: not found
Then I compiled gnu-arm-installer from mcuprogramming.com that generated arm-elf-gcc in /gnu-arm-installer/install/bin.
After giving this path to C compiler and assembler, Still arm-elf-gcc is not found.
Or do I have to compile my applications using arm-uclibc-gcc ? From where or how do I get it ?
Thanks a lot,
Abhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101213/3198b8da/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Compiling applications for ARM9
@ 2010-12-13 12:21 Abhishek Ashtekar
0 siblings, 0 replies; 3+ messages in thread
From: Abhishek Ashtekar @ 2010-12-13 12:21 UTC (permalink / raw)
To: buildroot
Hello,
I have Buildroot running on the AT91SAM9G20 board and want to compile and run own application programs.
With Eclipse, GNU_ARM_Eclipse_Plugin (ARM Linux GCC ) when I try to compile a ' Hello World ', I get the error
/bin/sh: arm-elf-gcc: not found
Then I compiled gnu-arm-installer from mcuprogramming.com that generated arm-elf-gcc in /gnu-arm-installer/install/bin.
After giving this path to C compiler and assembler, Still arm-elf-gcc is not found.
Or do I have to compile my applications using arm-uclibc-gcc ? From where or how do I get it ?
Thanks a lot,
Abhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101213/7786839c/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Compiling applications for ARM9
2010-12-13 11:39 [Buildroot] Compiling applications for ARM9 Abhishek Ashtekar
@ 2010-12-13 16:49 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2010-12-13 16:49 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 13 Dec 2010 12:39:18 +0100
Abhishek Ashtekar <Abhishek.Ashtekar@ubitronix.com> wrote:
> I have Buildroot running on the AT91SAM9G20 board and want to compile
> and run own application programs.
>
> With Eclipse, GNU_ARM_Eclipse_Plugin (ARM Linux GCC ) when I try to
> compile a ' Hello World ', I get the error
>
> /bin/sh: arm-elf-gcc: not found
arm-elf-gcc is a bare-metal toolchain, so you will not be able to
generate programs that will run under Linux with it.
You should use the toolchain that has been generated by Buildroot, i.e
output/staging/usr/bin/arm-linux-gcc.
> Then I compiled gnu-arm-installer from mcuprogramming.com that
> generated arm-elf-gcc in /gnu-arm-installer/install/bin.
>
> After giving this path to C compiler and assembler, Still arm-elf-gcc
> is not found.
Again, arm-elf-gcc is a bare-metal toolchain, which has nothing to do
with a Linux toolchain. You can't pick any toolchain found by randomly
searching "arm toolchain" on Google. You need to understand a little
bit what you are doing.
> Or do I have to compile my applications using arm-uclibc-gcc ? From
> where or how do I get it ?
In output/staging/usr/bin/ in your Buildroot tree.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-13 16:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 11:39 [Buildroot] Compiling applications for ARM9 Abhishek Ashtekar
2010-12-13 16:49 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2010-12-13 12:21 Abhishek Ashtekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox