R_C Posted February 25, 2019 Report Share Posted February 25, 2019 hi All, I am trying to compile UVM-SC in linux (gcc version 4.1.2, SUSE Linux Enterprise Desktop 11 SP4) but it fails at 'gmake check' with the below error: ---------------------------------------------------------------------- sc_main.cpp:(.text._ZN3top11build_phaseERN3uvm9uvm_phaseE[top::build_phase(uvm::uvm_phase&)]+0x29): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' ../../src/uvmsc/.libs/libuvm-systemc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<void const*>(void const*)' ../../src/uvmsc/.libs/libuvm-systemc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)' ../../src/uvmsc/.libs/libuvm-systemc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)' collect2: ld returned 1 exit status gmake[3]: *** [simple/callbacks/basic/test] Error 1 gmake[3]: Leaving directory `/SystemC/UVMC/uvm-systemc-1.0-beta2/objdir/examples/uvmsc' gmake[2]: *** [check-am] Error 2 gmake[2]: Leaving directory `/SystemC/UVMC/uvm-systemc-1.0-beta2/objdir/examples/uvmsc' gmake[1]: *** [check-recursive] Error 1 gmake[1]: Leaving directory `/SystemC/UVMC/uvm-systemc-1.0-beta2/objdir/examples' gmake: *** [check-recursive] Error 1 ---------------------------------------------------------------------- Any idea what could be missing here? similar undefined messages are present in log befoe the collect2 ld error as well, not sure which symbols are missing. Thanks RC Quote Link to comment Share on other sites More sharing options...
Stephan Gerth Posted February 25, 2019 Report Share Posted February 25, 2019 Looks like your libstdc++ found by the linker is not matching with your compiler version. Could you check that your LD_LIBRARY_PATH is setup correctly? As far as I remember GCC 4.1.2 is not the default system compiler version for SLES 11. So assuming that GCC 4.1.2 is probably residing in a different directory, you would have to adapt library search paths as well before running configure & make commands. Quote Link to comment Share on other sites More sharing options...
R_C Posted February 26, 2019 Author Report Share Posted February 26, 2019 Thanks Stephan, your comments were helpful. Examples work with the default version though i still need to figure out why it didn't work for gcc 4.1.2, LD_LIBRARY_PATH is correct for gcc but not sure about binutils PATH, will debug it further but at least i know that the problem is in setup, not the tar/code (which was anyways less likely). 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.