davidepatti / noxim

Network on Chip Simulator
217 stars 117 forks source link

Can't *Make* noxim correctly #45

Closed stdoo closed 6 years ago

stdoo commented 6 years ago

I'm using ubuntu 14.04, the installation directory of systemc-2.3.2 is /usr/include/systemc-2.3.2 and YAML is /usr/include/yaml-cpp. So I changed the noxim Makefile to this:

LIBRARIES CONFIGURATION

SYSTEMC := /usr/include/systemc-2.3.2 YAML := /usr/include/yaml-cpp

When I make the file, there's an error like this: build/Buffer.o: In function _GLOBAL__sub_I__ZN6BufferC2Ev': Buffer.cpp:(.text.startup+0x2e): undefined reference tosc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BINDUNDEFINED>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)' build/Channel.o: In function _GLOBAL__sub_I__ZN7Channel11b_transportEiRN3tlm19tlm_generic_payloadERN7sc_core7sc_timeE': Channel.cpp:(.text.startup+0x2e): undefined reference tosc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BINDUNDEFINED>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)' build/ConfigurationManager.o: In function _GLOBAL__sub_I_config': ConfigurationManager.cpp:(.text.startup+0x2d): undefined reference tosc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BINDUNDEFINED>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)' build/GlobalStats.o: In function _GLOBAL__sub_I__ZN11GlobalStatsC2EPK3NoC': GlobalStats.cpp:(.text.startup+0x2e): undefined reference tosc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BINDUNDEFINED>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)' build/Hub.o: In function _GLOBAL__sub_I__ZN3Hub9tile2PortEi': Hub.cpp:(.text.startup+0x2e): undefined reference tosc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BINDUNDEFINED>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)' build/Initiator.o:Initiator.cpp:(.text.startup+0x2e): more undefined references to `sc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BINDUNDEFINED>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)' follow collect2: error: ld returned 1 exit status

I don't know what's wrong, can anyone help me?

stdoo commented 6 years ago

I just changed systemc to 2.3.1 and problem was solved.