Compile Error When building macsim_1.2 with dramsim

63 views
Skip to first unread message

Hong Yeol Lim

unread,
Mar 27, 2013, 11:16:47 PM3/27/13
to macsi...@googlegroups.com
Hello,

I am building macsim with dramsim, given the following command:
cd macsim-1.2; ./build.py --dramsim
 
The original macsim(1.2 version) building with dramsim was success.
 
But, I am modifying macsim files(macsim.*, memory.*, cache.*, process_manager.*, core.* etc.).
Modified macsim is not able to building with dramsim, but it is able to building without dramsim.

I got the following error:
 
./build.py --dramsim
scons: Reading SConscript files ...
Checking for c++0x conformance...(cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: .opt_build
g++ -o .opt_build/macsim --static .opt_build/src/all_knobs.o .opt_build/src/all_stats.o .opt_build/src/allocate.o .opt_build/src/allocate_smc.o .opt_build/src/bp.o .opt_build/src/bp_gshare.o .opt_build/src/bp_targ.o .opt_build/src/bug_detector.o .opt_build/src/cache.o .opt_build/src/core.o .opt_build/src/dram.o .opt_build/src/exec.o .opt_build/src/factory_class.o .opt_build/src/fetch_factory.o .opt_build/src/frontend.o .opt_build/src/knob.o .opt_build/src/macsim.o .opt_build/src/main.o .opt_build/src/map.o .opt_build/src/memory.o .opt_build/src/memreq_info.o .opt_build/src/noc.o .opt_build/src/port.o .opt_build/src/pref.o .opt_build/src/pref_common.o .opt_build/src/pref_factory.o .opt_build/src/pref_stride.o .opt_build/src/process_manager.o .opt_build/src/readonly_cache.o .opt_build/src/retire.o .opt_build/src/rob.o .opt_build/src/rob_smc.o .opt_build/src/router.o .opt_build/src/schedule.o .opt_build/src/schedule_io.o .opt_build/src/schedule_ooo.o .opt_build/src/schedule_smc.o .opt_build/src/statistics.o .opt_build/src/sw_managed_cache.o .opt_build/src/trace_read.o .opt_build/src/uop.o .opt_build/src/utils.o -L.opt_build -L. -L/usr/lib -L/usr/local/lib -lz -ldramsim
.opt_build/src/dram.o: In function `dram_controller_c::receive_packet()':
dram.cc:(.text+0x2165): undefined reference to `DRAMSim::MultiChannelMemorySystem::addTransaction(bool, unsigned long)'
.opt_build/src/dram.o: In function `dram_controller_c::run_a_cycle()':
dram.cc:(.text+0x221c): undefined reference to `DRAMSim::MultiChannelMemorySystem::update()'
.opt_build/src/dram.o: In function `dram_controller_c::dram_controller_c(macsim_c*)':
dram.cc:(.text+0x4047): undefined reference to `DRAMSim::getMemorySystemInstance(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
dram.cc:(.text+0x411b): undefined reference to `DRAMSim::MultiChannelMemorySystem::RegisterCallbacks(DRAMSim::CallbackBase<void, unsigned int, unsigned long, unsigned long>*, DRAMSim::CallbackBase<void, unsigned int, unsigned long, unsigned long>*, void (*)(double, double, double, double))'
collect2: ld returned 1 exit status
scons: *** [.opt_build/macsim] Error 1
scons: building terminated because of errors

Could you please help me out? Thank you very much.

Thanks,
 
 
Hong Yeol.

navin red E

unread,
Feb 1, 2017, 5:17:45 AM2/1/17
to Macsim Developer
Hello sir,

I'm also facing the same problem in building macsim with dram, did you found any solution for that?
Reply all
Reply to author
Forward
0 new messages