by njpacoma » Mon Jul 06, 2015 3:54 am
I am confused in the same way as cardosojc.
I followed the PAL build instructions and also ran a "sudo make install" because that didn't seem to get done after the "make". That seemed to be successful.
I have taken the example code from the PAL README.md and moved that code to a 'workarea' directory:
workarea/palExample
manager.c
hello_task.c
and now I want to compile them. Whatever I have tried so far does not work.
Using the build commands from another example, the epiphany-examples/apps/hello-world, I have a compile command for the manager.c file like this
gcc manager.c -o manager.elf -I /usr/local/include/pal -L /usr/local/lib -Ilibpal
but what I get out is as follows:
manager.c: In function ‘main’:
manager.c:30:9: warning: passing argument 6 of ‘p_run’ from incompatible pointer type [enabled by default]
status = p_run(prog0, team0, i, 1, nargs, args, 0);
^
In file included from /usr/local/include/pal/pal.h:3:0,
from manager.c:1:
/usr/local/include/pal/pal_base.h:107:5: note: expected ‘const char **’ but argument is of type ‘char **’
int p_run(p_prog_t prog, p_team_t team, int start, int count, int nargs,
^
/usr/bin/ld: cannot find -llibpal
collect2: error: ld returned 1 exit status
So, I am obviously missing something here.
Similarly, I am not sure how I would go about creating the hello_task.elf file that the manager.c program wants to load into the processors.
Can you point me in the right direction?