See an email thread with the subject: 

Re: Error while building Gem5
Simulator 

>From last week. 

Ali 

On Fri, 23 Sep 2011 02:22:55 -0400,
shu  wrote:  
Hi all, 
 I am trying to compile gem5 in a cluster. The
cluster's compiler is gcc4.1.2. 
So I install a gcc4.5 on my local
account and to compile gem5 by the gcc4.5.

 Now I can use the gcc 4.5
to compile gem5. However I am faced some errors:


---------------------------------------------------------------------------------------


 [ CXX] ALPHA_FS/sim/system.cc -> .fo 
 [ CXX]
ALPHA_FS/sim/arguments.cc -> .fo 
 [ CXX]
ALPHA_FS/python/swig/pyevent.cc -> .fo 
 [ CXX]
ALPHA_FS/python/swig/pyobject.cc -> .fo   

 [ CC] ALPHA_FS/base/fenv.c
-> .fo 
 [ CXX] ALPHA_FS/python/swig/core_wrap.cc -> .fo 

cc1plus:
warnings being treated as errors 

build/ALPHA_FS/python/swig/core_wrap.cc: In function 'PyObject*
_wrap_doExitCleanup(PyObject*, PyObject*)':

build/ALPHA_FS/python/swig/core_wrap.cc:3721:1: error: label 'fail'
defined but not used 
build/ALPHA_FS/python/swig/core_wrap.cc: In
function 'PyObject* _wrap_disableAllListeners(PyObject*, PyObject*)':

build/ALPHA_FS/python/swig/core_wrap.cc:3732:1: error: label 'fail'
defined but not used 
build/ALPHA_FS/python/swig/core_wrap.cc: In
function 'PyObject* _wrap_curTick(PyObject*, PyObject*)':

build/ALPHA_FS/python/swig/core_wrap.cc:3842:1: error: label 'fail'
defined but not used 
scons: ***
[build/ALPHA_FS/python/swig/core_wrap.fo [1]] Error 1 

scons: building
terminated because of errors.  


----------------------------------------------------------------------------------------


Is it a problem about SWIG? I named my compiler to gcc45 and g++45.

I used command " scons build/ALPHA_FS/m5.fast CXX=/usr/bin/g++45
CC=/usr/bin/gcc45 " 

My python version is 2.7 
The OS is centOS5.6 

SWIG Version 2.0.4 and compiled with g++ [x86_64-unknown-linux-gnu]. 
I
am not sure if the g++ [x86_64-unknown-linux-gnu] is the new version
4.5. 

Could you please tell me what I missed?
 Thanks in
advance.

Regards,
Shu.  

 

Links:
------
[1] http://core_wrap.fo/
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to