Hi Hemendra,

I use the compiler from Xcode (just as you), and the built-in OSX python 
(/usr/bin/python which is 2.7.5 for my OSX 10.9.4 installation). For the 
remaining tools I use macports. The combination of Xcode + system python + 
macports has worked for me the last few years without any issues.

Andreas



From: Hemendra Rawat via gem5-users 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Reply-To: Hemendra Rawat <hkr1...@vt.edu<mailto:hkr1...@vt.edu>>, gem5 users 
mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Monday, August 18, 2014 at 3:44 AM
To: "gem5-users@gem5.org<mailto:gem5-users@gem5.org>" 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: [gem5-users] Need help with gem5 compilation on OSX 10.9.2

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<mailto:hkr1...@vt.edu>

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to