The warning is something that should be fixed soon and crops up with
pretty recent versions of scons. It's just telling you we've used a
keyword that's been deprecated and we need to switch to the new one,
but functionally everything should be fine. I agree that the compiler
error is most likely a version issue. I don't know for sure how to
override it, but looking at the scons files I think if you set CC to
your gcc and CXX to your g++ that might do it.
Gabe
Quoting Navid Farazmand <[email protected]>:
Hi,
I'm getting the following warning and error while trying to compile m5. The
warning message is printed many times (say around 50 times)
but I have copied the last one and the error message follows.
*****************************************************************************************************************************
scons: warning: The build_dir keyword has been deprecated; use the
variant_dir keyword instead.
File "/home/nfarazma/NUCAR_research/m5/source/m5/build/ALPHA_FS/SConscript",
line 251, in ?
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/ALPHA_FS/dev/i8254xGBe.fo -c -Wno-deprecated -pipe
-fno-strict-aliasing -Wall -Wno-sign-compare -Wundef -O3 -Werror -DNDEBUG
-DTRACING_ON=0 -Ibuild/gzstream -Ibuild/libelf -Iext
-I/usr/local/include/python2.4 -I/usr/include/mysql -Ibuild/ALPHA_FS
build/ALPHA_FS/dev/i8254xGBe.cc
In file included from build/ALPHA_FS/dev/i8254xGBe.hh:46,
from build/ALPHA_FS/dev/i8254xGBe.cc:47:
build/ALPHA_FS/dev/i8254xGBe_defs.hh: In member function `unsigned int
iGbReg::Regs::RCTL::descSize()':
build/ALPHA_FS/dev/i8254xGBe_defs.hh:492: warning: converting of negative
value `-0x00000000000000001' to `unsigned int'
scons: *** [build/ALPHA_FS/dev/i8254xGBe.fo] Error 1
scons: building terminated because of errors.
*****************************************************************************************************************************
I'm trying to compile m5 on a cluster. The gcc version is 3.4.5 on the
cluster; so I'm suspicious that the problem is with gcc version.
I have installed a local copy of gcc but I don't know which file/environment
variable should I change so that Scons uses the local gcc copy.
Any help is appreciated.
Thanks,
Navid.
Regards,
Navid Farazmand.
PhD candidate at ECE Department,
Northeastern University.
Cell Phone: 617-447-8929
[email protected]
[email protected]
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users