Results 1 to 4 of 4
well long story short, i got a beagleboard which has an ARM processor. rather the compiling my programs from the beagleboard itself, i'd like to use my beefy AMD64 desktop ...
- 10-09-2010 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 24
[SOLVED] arm-gcc. getting gcc to compile for the ARM processor
well long story short, i got a beagleboard which has an ARM processor. rather the compiling my programs from the beagleboard itself, i'd like to use my beefy AMD64 desktop to plow through compilation. problem is i can't quite figure out how to do a cross compile, or at least set gcc up so that i can do a cross compile.
i'm running Ubuntu 10.04 with gcc 4.4.3
when i run: gcc -b arm
to tell gcc to compile for arm, it says:
gcc: error trying to exec 'arm-gcc-4.4.3': execvp: No such file or directory
any help would be most appreciated.
- 10-10-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
You need the arm-specific compiler. When you pass "-b arm" to gcc 4.4.3, it looks to execute arm-gcc-4.4.3, which is not in your path. Which distribution did you get the kernel sources for? Is it ARM-specific, or a generic x86 kernel source tree?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-11-2010 #3Just Joined!
- Join Date
- Dec 2009
- Posts
- 24
i'm acutally not compiling the kernel for ARM at the moment though if i would, i'd go for Debian-ARM. most of the stuff i'm compiling is just my own programs to be run from the beagleboard.
see i'm not sure where to get the arm specific compiler. on my host machine i tried using apt but it didn't find any thing for 'arm-gcc' or 'gcc-arm'
i did a little googleing and found third party guides on building a 'cross-compile ARM tool chain' but where all outdated. i figured if vanilla gcc has an arm argument then there has to be some package or library from the main gcc project, i just can't seem to find it, so perhaps it doesn't exist.
- 10-11-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
Ah! Ok. I usually build the kernel on my CentOS workstation, but build my applications on the board itself (200MHz ARM9 w/ 64MB RAM). It's pretty snappy actually. As for building on my workstation, I could point my path to where the ARM toolchain lives and specify that CC in my makefile is arm-none-linux-gnueabi-gcc (the actual compiler name). However, the system libraries aren't there - the toolchain is primarily there to build the kernel (no libraries needed). In fact, I used apt-get to download and install the actual board-level compiler tools and such (running Debian Etch).
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!



