Hi Tony,

I use Xcode 4.6, and clang/clang++ as the default compiler (clang 3.2svn).

In addition to that, I use python 2.7, swig, mercurial, scons etc from 
macports. It works without any issues out of the box. As Ali pointed out, the 
llvm-gcc (just gcc) that comes with Xcode also works fine.

Andreas

From: Anthony Gutierrez <atgut...@umich.edu<mailto:atgut...@umich.edu>>
Reply-To: gem5 users mailing list 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Saturday, 2 March 2013 16:21
To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Compiling on OS X 10.8.2

I tried clang, it also has linker errors. I'll try to figure out why the llvm 
compiler that comes with my Xcode isn't working.

Thanks,


Anthony Gutierrez
http://web.eecs.umich.edu/~atgutier


On Sat, Mar 2, 2013 at 10:50 AM, Ali Saidi 
<sa...@umich.edu<mailto:sa...@umich.edu>> wrote:
HI Tony,

I'm running 10.8.2 and didn't install gcc via macports. I installed the command 
line Xcode only. With that I can compile with g++ (which is a modified version 
of 4.2). Somehow this version passes the check and compiles even though normal 
gcc wouldn't (I believe because of the llvm backend).

I also use clang and clang++ which work fine.

For python I use the native python and installed scons and mercurial to work 
with it.

Thanks,
Ali


On Mar 1, 2013, at 10:24 PM, Anthony Gutierrez 
<atgut...@umich.edu<mailto:atgut...@umich.edu>> wrote:

Hi All,

I'm a Mac noob and I'm trying to get gem5 working on OS X 10.8.2. I was hoping 
one of the devs who use Mac could give a more detailed explanation of how to 
get it working for Mac. Here is my current situation:

Mac OS X 10.8.2 with Xcode 4.6 and command line tools.
Installed the following from MacPorts:

scons 2.2.0
python 2.7.3
gcc  4.7.2_2 (got gcc47 from MacPorts because scons complains that Xcode 
version is too old, 4.2 I think)
swig 2.0.9
hg 2.5.1
m4 1.4.6
zlib 1.2.7

When I try to build, it compiles fine, but when it gets to the linking stage it 
fails with: g++: error : -fuse-linker-plugin not supported in this 
configuration. I tried installing binutils 2.21 to see if its linker would 
work, it did not. I removed -fuse-linker-plugin from the SConstruct and it 
compiled and linked ok but now I get the same error seen here: 
http://www.mail-archive.com/gem5-users@gem5.org/msg06632.html if I simply run 
./build/ARM/m5.fast configs/example/fs.py. Any help would be appreciated.

Thanks,
Anthony Gutierrez
http://web.eecs.umich.edu/~atgutier
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- 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.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to