in Education by
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 ^~~~~~~~~ compilation terminated. So I tried to comment rtems.h in the init.c 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 ^~~~~~~~~~~ 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. command line: export PATH=$HOME/masters_project/rtems/5/bin:"$PATH" Also I have created the variable RTEMS_MAKEFILE_PATH based in older versions instructions. I found 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 to create this environment variable 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 ? my uname -a command output: Linux michel-COM 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You need to add directory inclusion flags for header file inclusion associated with RTEMS using -I {path-to-RTEMS}, Example: flag_rtems = -I /opt/rtems/5/, now use $(flag_rtems) during compilation stage. Exporting $(PATH) will help to use the binaries in the run environment not to search the included header files. Recommended installing RTEMS in /opt/ directory. (Note: Directory inclusion flags are used in object file compilation stage, not in linking stage.)

Related questions

0 votes
    Which of the following patsy formula ignores the intercept? (1)y ~ x1 + x2 (2)y ~ x1 + x2 + x1*x2 (3)y ~ -1 + x1 (4)y ~ x1...
asked Aug 10, 2021 in Technology by JackTerrance
0 votes
    I'm trying to embed python into a C application. For the moment, I am trying to get the following ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    Give me some Information about Quantum Computer… Please…don’t copy from Google or any other sites… Don’t give me any irrelevant answer… Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    All compilers I could get my hands on agree that this is fine: template auto foo(Check, T...) - ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 14, 2022 in Education by JackTerrance
0 votes
    #include void display(int *q,int,int); int main(){ int a[3][4]={ 2,3,4,5, 5,7,6,8, 9,0,1,6 }; display(a,3,4); return 0; } void display(int *q,int row,int col){ int i,j; for(i=0;i...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    #include void display(int *q,int,int); int main(){ int a[3][4]={ 2,3,4,5, 5,7,6,8, 9,0,1,6 }; display(a,3,4); return 0; } void display(int *q,int row,int col){ int i,j; for(i=0;i...
asked Jun 8, 2022 in Education by JackTerrance
0 votes
    Is there a way to utilise the GCC compiler whilst still being able to develop via the Visual Studio IDE ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 30, 2022 in Education by JackTerrance
0 votes
    Is there a way to utilise the GCC compiler whilst still being able to develop via the Visual Studio IDE ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 29, 2022 in Education by JackTerrance
0 votes
    Is there a way to utilise the GCC compiler whilst still being able to develop via the Visual Studio IDE ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I am going through an eg pgm to create a make file. http://mrbook.org/tutorials/make/ My folder ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    I am going through an eg pgm to create a make file. http://mrbook.org/tutorials/make/ My folder ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    I am going through an eg pgm to create a make file. http://mrbook.org/tutorials/make/ My folder ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which compiler switch to be used for compiling the programs using math library with gcc compiler?...
asked Jan 18, 2021 in Technology by JackTerrance
+1 vote
    Which compiler switch to be used for compiling the programs using math library with gcc compiler?...
asked Nov 9, 2020 in Technology by JackTerrance
...