From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Mon, 13 Dec 2010 17:49:28 +0100 Subject: [Buildroot] Compiling applications for ARM9 In-Reply-To: <0C11C5BF0B29FD43A8D0250F711D497F7FB4E8B6D1@ex01-ubitronix.ubitronix.local> References: <0C11C5BF0B29FD43A8D0250F711D497F7FB4E8B6D1@ex01-ubitronix.ubitronix.local> Message-ID: <20101213174928.07d8d35c@surf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Mon, 13 Dec 2010 12:39:18 +0100 Abhishek Ashtekar 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