On Tue, January 22, 2013 6:51 pm, Binh Pham wrote: > Hi, > I am having error while trying to compile gem5 for x86: > scons build/X86/gem5.opt > Error Don't know what compiler options to use for your compiler. > compiler: None > version: COMMAND NOT FOUND! > If you're trying to use a compiler other than GCC > or clang, there appears to be something wrong with your > environment. > > If you are trying to use a compiler other than those listed > above you will need to ease fix SConstruct and > src/SConscript to support that compiler. > > I do have gcc and g++ installed. Digging into the SConstruct file, I found > that the main['CXX'] is empty after the line: global_vars.Update(main) is > executed (Before that line, main['CXX'] is g++. Because of that, the error > above was printed. > I don't have any insight about the Update(main) function to figure out why > it failed. So I would appreciate if someone could help. >
You can try to set variables CXX, CC on the command line when you issue the scons command. For example: scons -j 16 CXX='/usr/bin/g++' build/X86/gem5.debug. Read more about the build system here -- http://gem5.org/Build_System -- Nilay _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
