tiva Posted August 4, 2017 Report Share Posted August 4, 2017 n order to run Network on chip simulator form Github called "noxim" , I am getting a fatal error in the last step (build noxim) when I am trying to type "make" concerning Systemc.h and sincerely don't fully understand: saliha@ubuntu:~/Downloads/noxim-master/bin$ make g++ -O3 -Wall -DSC_NO_WRITE_CHECK --std=c++11 -I../src -isystem libs/systemc-2.3.1a/include -Ilibs/yaml-cpp/include -c ../src/Stats.cpp -o build/Stats.o In file included from ../src/Stats.h:17:0, from ../src/Stats.cpp:11: ../src/DataStructs.h:14:21: fatal error: systemc.h: No such file or directory #include <systemc.h> ^ compilation terminated. Makefile:43: recipe for target 'build/Stats.o' failed make: *** [build/Stats.o] Error 1 I have respected all the steps in INSTALL.txt including C++ compiler installation, YAML installation, SystemC installation until Build noxim. The only difference between noxim guide prerequisites and what I found is the SystemC version "systemc 2.3.1(including in INSTALL.txt) and systemc 2.3.1a (what i found)". Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted August 4, 2017 Report Share Posted August 4, 2017 -isystem libs/systemc-2.3.1a/include This line looks suspicious. Should not it be something like -I/path/to/systemc/include ? Quote Link to comment Share on other sites More sharing options...
ralph.goergen Posted August 7, 2017 Report Share Posted August 7, 2017 Hi. Using -isystem is OK to specify includes. But the path you give it should point to your SystemC installation. Are the SystemC header files in the idrectory you specified? libs/systemc-2.3.1a/include This is alocal path relative to the location where you do the compiler call. Greetings Ralph Quote Link to comment Share on other sites More sharing options...
kayalvizhiselvakumar Posted January 16, 2019 Report Share Posted January 16, 2019 g++ -O3 -I. -I.. -I../src -I/usr/home/Desktop/AccessNoxim_v0.3/bin/systemc/include -c ../src/NoximNoC.cpp In file included from ../src/NoximNoC.cpp:10:0: ../src/NoximNoC.h:10:10: fatal error: systemc.h: No such file or directory #include <systemc.h> ^~~~~~~~~~~ compilation terminated. Makefile.defs:26: recipe for target 'NoximNoC.o' failed make: *** [NoximNoC.o] Error 1 Quote Link to comment Share on other sites More sharing options...
kayalvizhiselvakumar Posted January 16, 2019 Report Share Posted January 16, 2019 I am trying to run NoximPower.o in AccessNoxim_v0.3 Chmod +x NoximPower.o ./NoximPower.o It throws error like this bash: ./NoximPower.o: cannot execute binary file: Exec format error Quote Link to comment Share on other sites More sharing options...
David Black Posted January 16, 2019 Report Share Posted January 16, 2019 Based on the question, it seems to me that you need to take a class in C++. Anyhow, of course you cannot execute an object file. You need a fully linked executable. Files ending in .o are not executable because they do not contain fully resolved code. Linking is part of the process of compilation. If your code compiled, I expect there is another file either with no extension or perhaps with .x or .exe. In any event, you definitely should not ever have to add the execute privilege (chmod +x). In fact, that was a bold and dangerous move on your part. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.