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 X-Received: by 10.224.86.200 with SMTP id t8mr30471631qal.0.1374368382056; Sat, 20 Jul 2013 17:59:42 -0700 (PDT) X-Received: by 10.50.110.103 with SMTP id hz7mr997522igb.17.1374368381963; Sat, 20 Jul 2013 17:59:41 -0700 (PDT) Path: border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!news.glorb.com!f1no243596qae.0!news-out.google.com!dk8ni860qab.0!nntp.google.com!f1no243594qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 20 Jul 2013 17:59:41 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.68.98.119; posting-account=1YPeQwoAAACAk-xhKPD32B0GIDdsFFtk NNTP-Posting-Host: 108.68.98.119 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GCC 4.8.1 for Mac OS X From: Michael Rohan Injection-Date: Sun, 21 Jul 2013 00:59:42 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-07-20T17:59:41-07:00 List-Id: On Sunday, July 7, 2013 11:37:02 AM UTC-7, Simon Wright wrote: > You can find this at > > https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/4.8.1/ > > > > The README says: > > > > This is GCC 4.8.1 built for Mac OS X Mountain Lion (10.8.4, Darwin 12.4.0). > > > > gcc-4.8.1-x86_64-apple-darwin12.tar.bz2 > > ======================================= > > > > Compilers included: Ada, C, C++, Objective C, Objective C++, Fortran. > > > > Tools included: ASIS, AUnit, GPRbuild, GNATColl, XMLAda from GNAT GPL > > 2013. > > > > Target: x86_64-apple-darwin12 > > Configured with: > > ../gcc-4.8.1/configure \ > > --prefix=/opt/gcc-4.8.1 \ > > --disable-multilib \ > > --enable-languages=c,c++,ada,fortran,objc,obj-c++ \ > > --target=x86_64-apple-darwin12 \ > > --build=x86_64-apple-darwin12 > > Thread model: posix > > gcc version 4.8.1 (GCC) > > > > MD5 (gcc-4.8.1-x86_64-apple-darwin12.tar.bz2) = 549d32da94a7af15e99bb98a7d288be9 > > > > > > Install by > > ======= > > > > $ cd / > > $ sudo tar jxvf ~/Downloads/gcc-4.8.1-x86_64-apple-darwin12.tar.bz2 > > > > and put /opt/gcc-4.8.1/bin first on your PATH. > > > > > > Notes > > ===== > > > > The compiler is GPL verson 3 with the Runtime Exception, so > > executables built with it can be released on proprietary terms > > PROVIDED THAT they make no use of the the packages from GNAT GPL 2013, > > which are full GPL. > > > > Changes made to GPRbuild GPL 2013 are in gprbuild-2013-src.diff. They: > > * remove the '-c' flag that is wrongly passed to ranlib (and isn't by gnatmake). > > * correct a problem when building static stand-alone libraries. > > > > Changes made to GNATColl GPL 2013 are in gnatcoll-gpl-2013-src.diff. Only > > changes necessary for the build are included. > > > > Changes to ASIS GPL 2013 are in asis-gpl-2013-src.diff. Only changes > > necessary for the build are included. > > > > In addition to the above, a new library gnat_util is required by > > GNATColl. A Sourceforge project to provide this has been set up at > > https://sourceforge.net/projects/gnatutil/; release 4.8.1 is included > > here. This is the equivalent of the Debian libgnatvsn. > > > > The GNATColl build was configured as below, which is minimal apart > > from GNU Readline being enabled. Users may wish to reconfigure for > > their own requirements. > > > > Shared libraries: yes (default: static) > > Gtk+: no (requires pkg-config and gtkada.gpr) > > Python: yes /System/Library/Frameworks/Python.framework/Versions/2.7 (see --with-python) > > PyGtk: no (see --enable-pygtk) > > PyGObject: no (see --enable-pygobject) > > Syslog: yes (see --enable-syslog) > > Readline (GPL license): yes (see --with-readline --enable-gpl) > > gmp: no (see --with-gmp) > > PostgreSQL: no -L/usr/lib (see --with-postgresql) > > Sqlite: embedded (see --with-sqlite) > > Iconv: yes (see --with-iconv) > > Projects: yes Hi, 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 assume I need GNU ld, it seems I don't currently have it: $ ld -v @(#)PROGRAM:ld PROJECT:ld64-136 configured to support archs: armv6 armv7 armv7s i386 x86_64 LTO support using: LLVM version 3.2svn, from Apple Clang 4.2 (build 425.0.28) Apologies if this is a basic question. Take care, Michael.