Thanks! I figured the reason just a minute ago: The first time when I
ran scons to build gem5, g++ was not installed on my system. Then I
installed g++, but scons didn't pick up that information for some
reason. Doing a clean scons solve this problem: scons -c. Now looks like
things are compiling.
Your suggestion is useful anyway, I didn't know that I could do it from
the command line.
Binh
On 1/22/13 6:29 PM, Nilay wrote:
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