[rust-dev] cannot build compiler on Mac OSX 10.6.8

Anders Lind anderslindgaard at yahoo.com
Sun Jan 29 17:40:51 PST 2012


Thank you Ben. But how can I specify which gcc I want to use? Thank you.


________________________________
 From: Ben Noordhuis <info at bnoordhuis.nl>
To: Anders Lind <anderslindgaard at yahoo.com> 
Cc: Tim Chevalier <catamorphism at gmail.com>; "rust-dev at mozilla.org" <rust-dev at mozilla.org> 
Sent: Sunday, January 29, 2012 5:31 PM
Subject: Re: [rust-dev] cannot build compiler on Mac OSX 10.6.8
 
On Mon, Jan 30, 2012 at 02:18, Anders Lind <anderslindgaard at yahoo.com> wrote:
> anders at Macbook-Pro~/Downloads/rust$ VERBOSE=1 make
> make: *** No targets specified and no makefile found.  Stop.
> anders at Macbook-Pro~/Downloads/rust$ cd build/
> anders at Macbook-Pro~/Downloads/rust/build$ VERBOSE=1 make
> cfg: shell host triple x86_64-apple-darwin
> cfg: non host triples
> cfg: host for x86_64-apple-darwin is x86_64
> cfg: unix-y environment
> cfg: using gcc
> cfg: no pandoc found, omitting doc/rust.pdf
> cfg: no llnextgen found, omitting grammar-verification
> cfg: no naturaldocs found, omitting library doc build
> g++ -DNVALGRIND -O2 -Wall -Werror -fno-rtti -g -m64 -arch x86_64   -c -o
>  rt/x86_64-apple-darwin/sync/timer.o  -I ../src/rt -I ../src/rt/isaac -I
> ../src/rt/uthash -I ../src/rt/arch/x86_64 -I ../src/libuv/include
> ../src/rt/sync/timer.cpp
> cc1plus: error: unrecognized command line option ‘-arch’
> make: *** [rt/x86_64-apple-darwin/sync/timer.o] Error 1

That's a bug in / shortcoming of the gcc from MacPorts, at least some
versions of it. Try the gcc that comes with XCode.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120129/1259cd80/attachment-0001.html>


More information about the Rust-dev mailing list