From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: GCC 4.8.1 for Mac OS X Date: Sun, 21 Jul 2013 02:06:16 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net CJnL/vEy9xNt/okcYj5r6Q6pde9miU0Lhf9EK0xKGfa8WQ3CXE Cancel-Lock: sha1:6uFnehb+DRKB3uakmfkuLAIMfZA= User-Agent: Microsoft-Entourage/12.36.0.130206 Thread-Topic: GCC 4.8.1 for Mac OS X Thread-Index: Ac6FroAVXB8L6kVQDkS2casgUbVgqw== Xref: news.eternal-september.org comp.lang.ada:16451 Date: 2013-07-21T02:06:16+01:00 List-Id: On 21/07/2013 01:59, in article a944c0c4-cff4-4318-9b73-ecd208967b99@googlegroups.com, "Michael Rohan" wrote: > Not sure if this is simply a setup issue on my MacBook (this is the first Mac > system I've worked on) but when I try to build an application I run into a > linker issue: > > $ make > gnatmake -p -XOS=unix -XTYPE=static -XBUILD=Debug -aP../../lib/gnat > -aP../../src -P zbmcompile > gnatbind -x /Users/mrohan/zb/zanyblue/src/obj/zbmcompile-main.ali > gnatlink /Users/mrohan/zb/zanyblue/src/obj/zbmcompile-main.ali -g > /Users/mrohan/zb/zanyblue/lib/zanyblue/libzanyblue.a > -Wl,-rpath,/opt/gcc-4.8.1/lib/gcc/x86_64-apple-darwin12/4.8.1/adalib/ -o > /Users/mrohan/zb/zanyblue/bin/zbmcompile > ld: unknown option: -R > collect2: error: ld returned 1 exit status > gnatlink: error when calling /opt/gcc-4.8.1/bin/gcc > gnatmake: *** link failed. > make: *** [all] Error 4 I had a similar problem with GNAT GPL 2102. You need to install the latest Xcode 4.4, but that does not install by default the command line tools /usr/bin{as, ld, make} needed by GNAT. It is necessary to invoke: Xcode > Preferences... > Downloads > Command Line Tools: Install It's about a 115MB download. Once completed, GNAT GPL 2102 was restored to sanity, so that might be what you need with GCC 4.8.1 -- Bill Findlay with blueyonder.co.uk; use surname & forename;