using the eSDK, building hello_world

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

using the eSDK, building hello_world

Postby alexB » Sun Jun 09, 2013 4:54 pm

I may be misunderstanding things here, but I seem not to be able to use the downloaded eSDK esdk.4.13.04.24_linux_x86_64_armv7l.tgz I downloaded this on an x86 box expecting to cross compile. I get the following:
/usr/bin/ld: skipping incompatible /home/alex/parallella/esdk/tools/host/lib/libe-hal.so when searching for -le-hal
The host is a link host -> host.armv7l
I.e. it's linking with "host" libraries with the local machine GCC code and using ARM which obviously won't work since the local machine is an x64 box.
If the object is to cross compile to the ARM host of the Epihphany, then a-gcc should be used.

I hacked the file to do this (change gcc to a-gcc), then followed the instructions in viewtopic.php?f=13&t=286&p=1906&hilit=libmpfr.so.1%3A#p1906 to adding links to fake the different versions of libgmp and libmpfr on Ubuntu.
I then end up with a pair of binaries one for ARM, one for Epiphany. The e-run simulator appears to accept the latter, I don't have an ARM sim to test the former.

What I would like to do is write code on x64 Linux, and just test on the simulator until my hardware turns up (I don't have a prototype board).
alexB
 
Posts: 13
Joined: Mon Dec 17, 2012 3:25 am

Re: using the eSDK, building hello_world

Postby ed2k » Mon Jun 10, 2013 4:08 am

I guess the e-gcc from the package is built for arm. if you want to run e-gcc on x64, you can always download the source and build yourself.
ed2k
 
Posts: 113
Joined: Mon Dec 17, 2012 3:27 am

Re: using the eSDK, building hello_world

Postby ysapir » Mon Jun 10, 2013 5:49 pm

User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 12 guests