compile error

41 views
Skip to first unread message

Vinay V.L

unread,
May 20, 2011, 1:17:05 PM5/20/11
to mv5...@googlegroups.com
Hey
 
I was trying to run mv5 on another server. Got gcc-4.1.2 installed on it properly.
I got this error. Is it because of python-2.5?? should I install python2.4. I am trying to get that done. But it seems a bit complicated.
 
 
 
 
./scons/scons.py USE_MYSQL=False build/ALPHA_SE/m5.debug CPU_MODELS=O3CPU,TimingSimpleCPU,AtomicSimpleCPU,MTSimpleCPU,MTAtomicCPU,SIMDTimingCPU,ControlCPU,SlaveCPU
scons: Reading SConscript files ...
Checking for C header file Python.h... (cached) yes
Checking for C library python2.5... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
Checking for zlibVersion() in C++ library z... (cached) yes
Checking for C header file fenv.h... (cached) yes
Building in /root/hgfractal/build/ALPHA_SE
Using saved options file /root/hgfractal/build/options/ALPHA_SE
scons: done reading SConscript files.
scons: Building targets ...
g++412 -o build/ALPHA_SE/python/swig/debug_wrap.do -c -pipe -fno-strict-aliasing -Wall -Wno-sign-compare -Werror -Wundef -ggdb3 -DTHE_ISA=ALPHA_ISA -DDEBUG -DTRACING_ON=1 -Iext/dnet -I/usr/include/python2.5 -Ibuild/libelf -Ibuild/ALPHA_SE build/ALPHA_SE/python/swig/debug_wrap.cc
build/ALPHA_SE/python/swig/debug_wrap.cc: In function \u2018int SWIG_Python_ConvertFunctionPtr(PyObject*, void**, swig_type_info*)\u2019:
build/ALPHA_SE/python/swig/debug_wrap.cc:2051: error: invalid conversion from \u2018const char*\u2019 to \u2018char*\u2019
build/ALPHA_SE/python/swig/debug_wrap.cc: In function \u2018void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)\u2019:
build/ALPHA_SE/python/swig/debug_wrap.cc:3266: error: invalid conversion from \u2018const char*\u2019 to \u2018char*\u2019
scons: *** [build/ALPHA_SE/python/swig/debug_wrap.do] Error 1
scons: building terminated because of errors.
make: *** [compile] Error 2
 
 
 
thanks,
Vinay.

Jiayuan Meng

unread,
May 20, 2011, 1:23:37 PM5/20/11
to mv5...@googlegroups.com
I'm not sure about this. Python 2.5 should be fine. Looks like it may due to swig. 

Vinay V.L

unread,
May 20, 2011, 1:37:04 PM5/20/11
to mv5...@googlegroups.com
Which version of swig are you using?

Jiayuan Meng

unread,
May 20, 2011, 1:40:16 PM5/20/11
to mv5...@googlegroups.com
I'm using 1.3.33.

Vinay V.L

unread,
May 25, 2011, 1:47:48 PM5/25/11
to mv5...@googlegroups.com
I edited a few lines in build/ALPHA_SE/python/swig/debug_wrap.cc and build/ALPHA_SE/python/swig/random_wrap.cc
It compiled successfully. But then when I run the example command I get this message :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
zipimport.ZipImportError: can't find module 'm5'

Any clues on what this error can be due to?

Vinay V.L

unread,
May 25, 2011, 2:01:42 PM5/25/11
to mv5...@googlegroups.com
The problem is solved. Thanks!

Hasan Mozafari

unread,
Oct 31, 2013, 5:13:35 PM10/31/13
to mv5...@googlegroups.com
Would you please, let me know how you solved the problem!?
I have the same one!

Rohith Tenneti

unread,
Nov 1, 2013, 1:43:11 PM11/1/13
to mv5...@googlegroups.com
Can't remember, do not have access to the machine we used to work on.
If it helps, we contacted Jiayuan Meng directly when we had a problem
as it was pretty important at that time and he was very helpful.
> --
> You received this message because you are subscribed to the Google Groups
> "MV5sim" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mv5sim+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages