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

Ben Noordhuis info at bnoordhuis.nl
Sun Jan 29 17:31:36 PST 2012


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.


More information about the Rust-dev mailing list