What cross toolchain for Ubuntu 12.04 LTS?

Hi all,

I got a problem with the cross toolchain for Ubuntu.
On my Ubuntu-host I have installed: gcc-4.4-arm-linux-gnueabi
and integrated it into the Eclipse environment. The build has been successful:

**** Build of configuration Debug for project 05hellobone ****
make all
Building file: …/src/05hellobone.c
Invoking: GCC C Compiler
arm-linux-gnueabi-gcc-4.4 -I/usr/arm-linux-gnueabi/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/05hellobone.d" -MT"src/05hellobone.d" -o"src/05hellobone.o" “…/src/05hellobone.c”
Finished building: …/src/05hellobone.c
Building target: 05hellobone
Invoking: GCC C Linker
arm-linux-gnueabi-gcc-4.4 -o"05hellobone" ./src/05hellobone.o
Finished building target: 05hellobone

But an my Beaglebone, I got the following error message:
(Sorry, I renamed the executable during scp to 05hbone)

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-psp7 armv7l)

ubuntu@omap:~$ ls
05hbone Test.cpp features.htm stick

ubuntu@omap:~$ ./05hbone
-bash: ./05hbone: No such file or directory
ubuntu@omap:~$

Then I executed the same file under Angstroem:

root@beaglebone:~# ./05hbone
Start Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Hello Bone
Ende Hello Bone
root@beaglebone:~#

It works as it should!

Is a specific toolchain necessary for Ubuntu 12.04?
I tried with version 4.6 as well, but there I missed the include files for the eabi.

Any hint is highly appreciated.
Best regards

Walter

Your running the "12.04 armhf" image right? :wink:

Unless you install the "armel" libraries, your "armel" built project
won't run on a "armhf" system.

Regards,

Note: with precise, you can get this via "sudo apt-get install
gcc-arm-linux-gnueabihf" with gcc 4.4/4.5/4.6 versions available:

http://packages.ubuntu.com/search?searchon=contents&keywords=arm-linux-gnueabihf&mode=&suite=precise&arch=any

Regards,

Hi Robert,

You are my hero !!!

With the gnueabihf version it works perfectly under Ubuntu.

Many thanks again for your splendid support!

Best regards
Walter

Yes Sir, it was happening the same thing with my toolchain installation. Thanks to this post I have not lost hours of time and foolishness.
Thank you very much.