habedi / SystemCAccessNoxim

All you need to build and run SystemC and AccessNoxim on your system; SystemC and AccessNoxim are tools to emulate and test network-on-chip (NOC) algorithms
GNU Affero General Public License v3.0
11 stars 2 forks source link

Not working for Ubunto 14.0.2 #1

Closed SyedAbubakar closed 6 years ago

SyedAbubakar commented 8 years ago

After following the whole procedure when i goes to make, al lot of problems occur. In short make is not happening. Some last lines are shown below. ./NoximMain.o:NoximMain.cpp:(.text._ZN8NoximNoCC1EN7sc_core14sc_module_nameE[NoximNoC::NoximNoC(sc_core::sc_module_name)]+0xcbbd): more undefined references to VTT for sc_core::sc_signal<bool>' follow ./thermal_IF.o: In functionstatic_initialization_and_destruction_0(int, int)': thermal_IF.cpp:(.text+0x3d): undefined reference to sc_core::sc_api_version_2_2_0::sc_api_version_2_2_0()' ./NoximVLink.o: In functionstatic_initialization_and_destruction_0(int, int)': NoximVLink.cpp:(.text+0xbd): undefined reference to sc_core::sc_api_version_2_2_0::sc_api_version_2_2_0()' ./NoximLog.o: In function__static_initialization_and_destruction_0(int, int)': NoximLog.cpp:(.text+0x3d): undefined reference to `sc_core::sc_api_version_2_2_0::sc_api_version_2_2_0()' collect2: error: ld returned 1 exit status

habedi commented 8 years ago

It's a typical compile time error(not related to your OS, that is Ubuntu 14), I think you need to tell the compiler(GCC) where to look for the right header files, have you done exactly as it's been described in my tutorial? please double check everything, especially this part:

# Building AccessNoxim{do this inside AccessNoxim_v0.3}
export SYSTEMC_HOME=/usr/local/systemc231
export SYSTEMC_HEADERS=$SYSTEMC_HOME/include
export C_INCLUDE_PATH=$SYSTEMC_HEADERS
export CPLUS_INCLUDE_PATH=$SYSTEMC_HEADERS
cd bin
make

hope it solves your problem.

SyedAbubakar commented 8 years ago

I have followed the same procedure after that error came. What should i do now.

habedi commented 8 years ago

Sadly I don't have the time to resolve this issue right now, by as a short answer I guess something maybe is wrong with your compiler directives, mostly with the idea that your LINKING or INCLUDE path is wrong.

SyedAbubakar commented 8 years ago

Did it worked properly on Debian 8.0.0 with given systemc-3.2.1? On Sep 3, 2015 4:29 PM, "hassan abedi" notifications@github.com wrote:

Sadly I don't have the time to resolve this issue right now, by as a short answer I guess something maybe is wrong with your compiler directives, mostly with the idea that your LINKING or INCLUDE path is wrong.

— Reply to this email directly or view it on GitHub https://github.com/habedi/SystemC-AccessNoxim/issues/1#issuecomment-137412432 .

habedi commented 8 years ago

Sorry I didn't test it on Debian 8.