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: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: ANN: GCC 4.9.0 (2014) for Max OS X Mavericks Date: Sat, 24 May 2014 18:00:14 +0100 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="f944b7aa56b4100b8770465c51f11294"; logging-data="6653"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1860VxlvP0XauEId1jiI7SuKMEC/5lfSLQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:eawILWs10n3V4b2MLOtVx1VWiqI= sha1:70RFaBGDPEJc0TeiBX3t0TJ0BZ0= X-Original-Bytes: 5022 Xref: number.nntp.dca.giganews.com comp.lang.ada:186597 Date: 2014-05-24T18:00:14+01:00 List-Id: GCC 4.9.0, with the GNAT GPL 2014 tools, is available at https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/4.9.0-2014/ This is the README: This is GCC 4.9.0 built for Mac OS X Mavericks (10.9.2, Darwin 13.1.0), with Xcode 5.1.1 and tools from GNAT GPL 2014. gcc-4.9.0-x86_64-apple-darwin13-2014.tar.bz2 ============================================ Compilers included: Ada, C, C++, Objective C, Objective C++, Fortran. Tools included: ASIS, AUnit, GDB, GNATColl, GPRbuild, and XMLAda from GNAT GPL 2014. Target: x86_64-apple-darwin13 Configured with: ../gcc-4.9.0/configure \ --prefix=/opt/gcc-4.9.0 \ --disable-multilib \ --disable-nls \ --enable-languages=c,c++,ada,fortran,objc,obj-c++ \ --host=x86_64-apple-darwin13 \ --target=x86_64-apple-darwin13 \ --build=x86_64-apple-darwin13 Thread model: posix gcc version 4.9.0 (GCC) MD5 (gcc-4.9.0-x86_64-apple-darwin13-2014.tar.bz2) = 4f8e94f0349757ecd417e97b604ce99e Install by ======= $ cd / $ sudo tar jxvf ~/Downloads/gcc-4.9.0-x86_64-apple-darwin13-2014.tar.bz2 and put /opt/gcc-4.9.0/bin first on your PATH. Installing GDB -------------- gdb has to be 'code-signed' (unless you're willing to run it as root!) Instructions are at https://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Codesigning-the-Debugger.html 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 2014, which are full GPL. The command 'gnat', as originally built, failed with SIGSEGV. It was rebuilt on its own, using the project file gnatcmd.gpr, and no longer failed; the working version is provided. Changes made to GPRbuild GPL 2014 are in gprbuild-gpl-2014-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. * remove some restrictions not provided in FSF GCC yet: No_Fixed_IO, No_Long_Long_Integers, No_Multiple_Elaboration. * import the new library package GNAT.Rewrite_Data (used by gprslave). * retain the bug in gprinstall which installs executables with 'execute' access for the owner only rather than for all users (this is a problem if the installation is done by root). The change relies on a change in the RTS (adaint.c). * gprslave can't call Set_File_Last_Modify_Time_Stamp (adaint.c again). GNATColl GPL 2014 was configured as below, which is minimal apart from GNU Readline being enabled. Users may wish to reconfigure for their own requirements. ./configure \ --prefix=/opt/gcc-4.9.0 \ --build=x86_64-apple-darwin13 \ --enable-gpl resulting in 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 Changes to ASIS GPL 2014 are in asis-gpl-2014-src.diff. Only changes necessary for the build are included. GDB GPL 2014 built without changes, but there are problems with 'catch exception'; one workround is to invoke GDB with the '-readnow' switch. See https://sourceware.org/bugzilla/show_bug.cgi?id=11385 In addition to the above, a new library gnat_util is required by ASIS and GNATColl. A Sourceforge project to provide this has been set up at https://sourceforge.net/projects/gnatutil/; release 4.9.0 is included here. This is the equivalent of the Debian libgnatvsn.