<div dir="ltr">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<br>linux mint. The environment comes with sample applications. I'm trying to compile the <br>sample from "hello" (init.c) using sparc-rtems5-gcc, here's the command line:<br><br>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<br><br>but it returns the following error:<br><br>fatal error: rtems.h: No such file or directory<br> #include <rtems.h><br> ^~~~~~~~~<br>compilation terminated.<br><br>So I tried to comment rtems.h in the code and leave the next library of the code,<br>tmacros.h, so I tried to compile again and had the following error:<br><br>fatal error: tmacros.h: No such file or directory<br> #include <tmacros.h><br> ^~~~~~~~~~~<br>compilation terminated.<br><br>I have used the locate command and found these libraries in the envinronment tree.<br>As far as I perceived the sparc-rtems5-gcc does not find or ignore the libraries.<br>I added the bin folder to the PATH variable, also I have created the variable<br>RTEMS_MAKEFILE_PATH based in older versions instructions. I found that<br>that RTEMS_MAKEFILE_PATH variable should point to where the BSP files are. But<br>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.<br><br>command line:<br>export RTEMS_MAKEFILE_PATH=/home/michel/masters_project/build/b-erc32<br><br>Could someone help ? Also if you have a working environment could you copy your project<br>tree for me ? </div>