comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: ANN: GCC 4.9.0 (2014) for Max OS X Mavericks
Date: Sat, 24 May 2014 18:00:14 +0100
Date: 2014-05-24T18:00:14+01:00	[thread overview]
Message-ID: <lyha4fcdsx.fsf@pushface.org> (raw)

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.


             reply	other threads:[~2014-05-24 17:00 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-24 17:00 Simon Wright [this message]
2014-05-31 19:35 ` ANN: GCC 4.9.0 (2014) for Max OS X Mavericks Simon Wright
2014-05-31 22:29   ` Bill Findlay
2014-05-31 22:44     ` Pascal Obry
2014-05-31 23:31       ` Bill Findlay
2014-06-01  2:34         ` Dan'l Miller
2014-06-01  9:06     ` Simon Wright
2014-06-01 13:56       ` Bill Findlay
2014-10-11 22:42       ` marioeroy
2014-10-12  9:05         ` Simon Wright
2014-10-12 15:38           ` Mario Roy
2014-10-12 18:35             ` Simon Wright
2014-10-14 16:41               ` Simon Wright
2014-10-14 21:31                 ` Mario Roy
2014-10-14 22:21                 ` David Botton
2014-10-14 22:54                   ` Luke A. Guest
2014-10-14 23:27                     ` David Botton
2014-10-15  9:42                     ` Simon Wright
2014-10-15 13:05                       ` David Botton
2014-10-15 13:41                         ` Simon Wright
2014-10-15 14:28                           ` Björn Lundin
2014-10-15 13:43                         ` Björn Lundin
2014-10-15 14:02                           ` Simon Wright
2014-10-15 13:55                   ` ANN: " Simon Wright
2014-10-15 15:33                     ` David Botton
2014-10-17 15:29                       ` Simon Wright
2014-06-02 16:46   ` Stephen Leake
2014-06-02 18:02     ` Simon Wright
2014-06-04  0:15 ` Luke A. Guest
2014-06-06  7:48   ` Simon Wright
2014-06-06 14:37     ` Lucretia
2014-06-06 14:42       ` Simon Wright
2014-10-15  5:39 ` ANN: " Mario Roy
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox