make results in undefined reference to e_reset_core

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

make results in undefined reference to e_reset_core

Postby donaldleslie » Sat May 10, 2014 12:04 am

As a first test i went to the parallella-examples directory.

The executable xtemp works fine

If I try another e.g. mandelbrot and run make I get.

gcc -O3 host.c -o main -I /opt/adapteva/esdk/tools/host/include -L /opt/adapteva/esdk/tools/host/lib -le-hal -lrt
/tmp/ccD1CvOM.o: In function `main':
host.c:(.text.startup+0x100): undefined reference to `e_reset_core'
collect2: error: ld returned 1 exit status
make: *** [main] Error 1

What am I missing?
donaldleslie
 
Posts: 1
Joined: Mon Dec 17, 2012 3:27 am

Re: make results in undefined reference to e_reset_core

Postby ticso » Sat May 10, 2014 12:27 am

I had been running into this myself.
You need some environments variables to be set, which are defined for linaro user, but not for root.
ticso
 
Posts: 41
Joined: Mon Dec 17, 2012 3:22 am
Location: Germany, Moers

Re: make results in undefined reference to e_reset_core

Postby holgt » Sat May 10, 2014 6:42 am

For me it also applies as user linaro ..., i made the roots via sudo tar -xvf ubuntu-lxde-14.03.06-rootfs.tar.gz -C /path/to/mmc/rootfs,
maybe it is an issue of ubuntu-lxde-14.03.06-rootfs.tar.gz not making the environment vars ...
holgt
 
Posts: 4
Joined: Mon Dec 17, 2012 3:22 am
Location: Lüdinghausen, Germany

Re: make results in undefined reference to e_reset_core

Postby shodruk » Sun May 11, 2014 11:28 am

The source code bundled with the ubuntu-lxde-14.03.06-p16g1.img is obsolete.
Get the latest source code from GitHub.
https://github.com/parallella/parallella-examples
Shodruky
shodruk
 
Posts: 464
Joined: Mon Apr 08, 2013 7:03 pm


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 8 guests

cron