installation problem

49 views
Skip to first unread message

rubi...@gmail.com

unread,
Apr 10, 2019, 5:28:47 AM4/10/19
to NIRGAM Users
os Ubuntu 16.04
1. installed systemc 2.3.1
2. started nirgam 2.1 installation
 2.1  removed "mutable"
 2.2  change "W1" to "Wl"
 2.3  now still make command is giving problem

 g++  -g2 -rdynamic -I. -I.. -I./systemC/include -L. -L.. -L./systemC/lib-linux -o nirgam core/rng.o core/fifo.o core/InputChannel.o core/ipcore.o core/OutputChannel.o core/VCAllocator.o core/NWTile.o core/NoC.o core/orion/SIM_array_l.o core/orion/SIM_array_m.o core/orion/SIM_cam.o core/orion/SIM_router.o core/orion/SIM_arbiter.o core/orion/SIM_crossbar.o core/orion/SIM_router_power.o core/orion/orion_router_power.o core/orion/SIM_ALU.o core/orion/SIM_misc.o core/orion/SIM_permu.o core/orion/SIM_static.o core/orion/SIM_link.o core/orion/SIM_clock.o core/orion/SIM_util.o core/orion/SIM_time.o core/orion/orion_router_area.o core/orion/SIM_router_area.o core/main.o core/Controller.o core/ranvar.o application/src/TG.o application/src/Traffic_patterns.o application/src/NED_traffic.o -lsystemc -lm -ldl  2>&1 | c++filt
core/fifo.o: In function `sc_dt::sc_uint_base::print(std::ostream&) const':
/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/datatypes/int/sc_uint_base.h:831: undefined reference to `sc_dt::sc_uint_base::to_string[abi:cxx11](sc_dt::sc_numrep, bool) const'
core/InputChannel.o: In function `sc_trace(sc_core::sc_trace_file*&, creditLine const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/rubina/Desktop/nirgam 2.1/core/credit.h:61: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_bit const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/rubina/Desktop/nirgam 2.1/core/credit.h:62: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_bit const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
core/InputChannel.o: In function `sc_core::sc_inout<sc_dt::sc_uint<64> >::end_of_elaboration()':
/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/communication/sc_signal_ports.h:1124: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_uint_base const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
core/InputChannel.o: In function `sc_core::sc_in<sc_dt::sc_uint<5> >::end_of_elaboration()':
/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/communication/sc_signal_ports.h:285: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_uint_base const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
core/InputChannel.o: In function `sc_core::sc_inout<sc_dt::sc_uint<32> >::end_of_elaboration()':
/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/communication/sc_signal_ports.h:1124: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_uint_base const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
core/InputChannel.o: In function `sc_core::sc_in<sc_dt::sc_uint<3> >::end_of_elaboration()':
/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/communication/sc_signal_ports.h:285: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_uint_base const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
core/InputChannel.o: In function `sc_core::sc_inout<sc_dt::sc_uint<2> >::end_of_elaboration()':
/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/communication/sc_signal_ports.h:1124: undefined reference to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_uint_base const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
core/VCAllocator.o:/home/rubina/Desktop/nirgam 2.1/./systemC/include/sysc/communication/sc_signal_ports.h:1124: more undefined references to `sc_core::sc_trace(sc_core::sc_trace_file*, sc_dt::sc_uint_base const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' follow
collect2: error: ld returned 1 exit status

please help me

rubi...@gmail.com

unread,
Apr 15, 2019, 5:34:44 AM4/15/19
to NIRGAM Users
go to nirgam-2.1 folder, in it open MakeFile.defs set
   SYSTEMC = /usr/local/systemc-2.3.1

   rubina@rubina-VB:~/Desktop/nirgam 2.1$ make ultraclean
   rubina@rubina-VB:~/Desktop/nirgam 2.1$ make
   rubina@rubina-VB:~/Desktop/nirgam 2.1$ ./nirgam
again there will be error
       ./nirgam: error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory
set path     
       rubina@rubina-VB:~/Desktop/nirgam 2.1$ export LD_LIBRARY_PATH=/usr/local/systemc-2.3.1/lib-linux/

      rubina@rubina-VB:~/Desktop/nirgam 2.1$ ./nirgam
again one error

       rubina@rubina-VB:~/Desktop/nirgam 2.1$ export SC_SIGNAL_WRITE_CHECK=DISABLE
       rubina@rubina-VB:~/Desktop/nirgam 2.1$ ./nirgam
 now nirgam simulation will be succes full

for next time use of nirgam, update bashrc, so that dont have to write export on every run:-

rubina@rubina-VB:~/Desktop/nirgam 2.1$ sudo gedit ~/.bashrc

export SYSTEMC_HOME=/usr/local/systemc-2.3.1/
export LD_LIBRARY_PATH=/usr/local/systemc-2.3.1/lib-linux/
export SC_SIGNAL_WRITE_CHECK=DISABLE

rubina@rubina-VB:~/Desktop/nirgam 2.1$ exec bash
Reply all
Reply to author
Forward
0 new messages