Regarding nirgam installation

51 views
Skip to first unread message

vidyaka...@gmail.com

unread,
Mar 21, 2019, 11:46:20 AM3/21/19
to NIRGAM Users
Hello im getting this error

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/kasarla/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/kasarla/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/kasarla/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/kasarla/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/kasarla/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/kasarla/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/kasarla/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/kasarla/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/kasarla/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 do help to rectify this
pleaseeee
thanks in advance

Misbah Manzoor

unread,
Mar 22, 2019, 12:45:26 AM3/22/19
to nirgam...@googlegroups.com
Hello Vidya,

To my knowledge his error probably occurs because systemC compiler does not get linked. so for this you install systemC 2.0 seperately and give its path in makefile.defs in nirgam folder. Hope it works 

Regards
Misbah 

--
You received this message because you are subscribed to the Google Groups "NIRGAM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nirgam-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vidyaka...@gmail.com

unread,
Mar 22, 2019, 2:21:58 AM3/22/19
to NIRGAM Users
Thanks a lot
I'm still facing problem with it!
Can I get bundled nirgam package from you, if you have
It would be really helpful

rubi...@gmail.com

unread,
Apr 15, 2019, 5:36:09 AM4/15/19
to NIRGAM Users
i had same problem, i solved using following method

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