Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Compiling applications for ARM9
Date: Mon, 13 Dec 2010 17:49:28 +0100	[thread overview]
Message-ID: <20101213174928.07d8d35c@surf> (raw)
In-Reply-To: <0C11C5BF0B29FD43A8D0250F711D497F7FB4E8B6D1@ex01-ubitronix.ubitronix.local>

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

  reply	other threads:[~2010-12-13 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13 11:39 [Buildroot] Compiling applications for ARM9 Abhishek Ashtekar
2010-12-13 16:49 ` Thomas Petazzoni [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-12-13 12:21 Abhishek Ashtekar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101213174928.07d8d35c@surf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox