Hi All, I'm trying to compile gem5 on Mac OSX 10.9.2. My setup is as follows :
- Python 2.7.8 - clang --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 - Scons v2.3.2, Swig 3.0.2, Zlib 1.2.8, protobuf 2.5.0, GNU M4 1.4 While trying to compile gem5 for X86, I'm getting the following compilation error : Checking for leading underscore in global variables...(cached) yes Checking for C header file Python.h... (cached) yesChecking for C library dl... (cached) no Error: can't find library dl required by python Checking for C library python2.7... (cached) yes While looking for some solutions on Internet forums, I found somewhere that libdl is actually not required on OSX, so I modified my SConstruct file to ignore this error. Compilation finished successfully after this change but now, I'm getting errors when I try to run gem5 in SE mode. --------------------------------------------------------------------------------------------------- bash-3.2$ sudo ./build/X86/gem5.debug configs/example/se.py -c tests/test-progs/hello/bin/x86/linux/hello gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 compiled Aug 17 2014 20:13:27 gem5 started Aug 17 2014 20:31:27 gem5 executing on Hemendras-MacBook-Air.local command line: ./build/X86/gem5.debug configs/example/se.py -c tests/test-progs/hello/bin/x86/linux/hello Global frequency set at 1000000000000 ticks per second Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/hemendrakumarrawat/workspace/gem5_1/src/python/m5/main.py", line 388, in main exec filecode in scope File "configs/example/se.py", line 258, in <module> Simulation.run(options, root, system, FutureClass) File "/Users/hemendrakumarrawat/workspace/gem5_1/configs/common/Simulation.py", line 415, in run m5.instantiate(checkpoint_dir) File "/Users/hemendrakumarrawat/workspace/gem5_1/src/python/m5/simulate.py", line 112, in instantiate for obj in root.descendants(): obj.createCCObject() File "/Users/hemendrakumarrawat/workspace/gem5_1/src/python/m5/SimObject.py", line 1066, in createCCObject self.getCCParams() File "/Users/hemendrakumarrawat/workspace/gem5_1/src/python/m5/SimObject.py", line 1025, in getCCParams setattr(cc_params, param, value) SystemError: NULL result without error in PyObject_Call -------------------------------------------------------------------------------------------------------- Am I missing something here ? Any help would be greatly appreciated. Hemendra Kumar Rawat Phone no: +1(540) 2574810 E-mail: hkr1...@vt.edu
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users