SPARC-RTEMS5-GCC ignores or don't find libraries

Michel Macena mmacena.eng at gmail.com
Sat Mar 23 16:28:28 UTC 2019


I'm a beginner with RTEMS and I have built a RTEMS5 environment for an
erc32 chip (the example in RTEMS Docs) in my computer with
linux mint. The environment comes with sample applications. I'm trying to
compile the
sample from "hello" (init.c) using sparc-rtems5-gcc, here's the command
line:

sparc-rtems5-gcc -g -O2
/home/michel/masters_project/src/rtems/testsuites/samples/hello/init.c -o
/home/michel/masters_project/compile_test/hello2.exe

but it returns the following error:

fatal error: rtems.h: No such file or directory
 #include <rtems.h>
          ^~~~~~~~~
compilation terminated.

So I tried to comment rtems.h in the code and leave the next library of the
code,
tmacros.h, so I tried to compile again and had the following error:

fatal error: tmacros.h: No such file or directory
 #include <tmacros.h>
          ^~~~~~~~~~~
compilation terminated.

I have used the locate command and found these libraries in the
envinronment tree.
As far as I perceived the sparc-rtems5-gcc does not find or ignore the
libraries.
I added the bin folder to the PATH variable, also I have created the
variable
RTEMS_MAKEFILE_PATH based in older versions instructions. I found that
that RTEMS_MAKEFILE_PATH variable should point to where the BSP files are.
But
I'm not sure if in the present version of RTEMS it is still necessary since
I have not found any instructions for this in the main docs.

command line:
export RTEMS_MAKEFILE_PATH=/home/michel/masters_project/build/b-erc32

Could someone help ? Also if you have a working environment could you copy
your project
tree for me ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190323/76dc6a51/attachment.html>


More information about the users mailing list