Skip to content

Commit

Permalink
Update for x86_64 GCC 13.1.0.
Browse files Browse the repository at this point in the history
  * README.md: download_prerequisites is in contrib/.
      gprconfig.sh needs to be before gprbuild.sh.
  * common.sh: update for 13.1.0. Commented out development-only settings,
    with ??? to indicate change required.
    (VERSION): 13.1.0.
    (TOP): /Volumes/Miscellaneous3.
  * gcc.sh: for PR107568, configure with CFLAGS, CXXFLAGS set to
      -Wno-deprecated-declarations.
  * release_notes.md: updated (should this be with distributing_gcc?)
  • Loading branch information
simonjwright committed Apr 27, 2023
1 parent c0cdb12 commit 6992613
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 44 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd <i>package</i>

GCC relies on external maths libraries (e.g. the [GNU Multiple Precision Arithmetic Library][GMP]). To download and set them up, go to the top level of the GCC source directory and say
```
contribs/download_prerequisites
contrib/download_prerequisites
```
The scripts below build the libraries in both static and relocatable forms.

Expand All @@ -45,8 +45,8 @@ would be
* `mpfr.sh`
* `mpc.sh`
* `xmlada.sh`
* `gprbuild.sh`
* `gprconfig.sh`
* `gprbuild.sh`
* `aunit.sh`
* `gnatcoll-core.sh`
* `gnatcoll-bindings.sh`
Expand Down
15 changes: 9 additions & 6 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@

set -eu

VERSION=12.2.0
VERSION=13.1.0
PREFIX=/opt/gcc-$VERSION
BUILD=x86_64-apple-darwin15
BUILD=x86_64-apple-darwin21

TOP=/Volumes/Miscellaneous1
TOP=/Volumes/Miscellaneous3

# override the above version if necessary
# PREFIX=
# PREFIX=/opt/gcc-???

# Deployment target, if needed
# export MACOSX_DEPLOYMENT_TARGET=???

SRC_PATH=$TOP/src

GCC_SRC=$SRC_PATH/gcc-$VERSION
# override the above version if necessary
# GCC_SRC=$SRC_PATH/gcc
# override the above version, if needed
# GCC_SRC=$SRC_PATH/???

NEW_PATH=$PREFIX/bin:$PATH

Expand Down
4 changes: 3 additions & 1 deletion gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ $GCC_SRC/configure \
--with-sysroot= \
--with-specs="%{!sysroot=*:--sysroot=%:if-exists-else($XCODE $CLU)}" \
--with-build-config=no \
--enable-bootstrap
--enable-bootstrap \
CFLAGS=-Wno-deprecated-declarations \
CXXFLAGS=-Wno-deprecated-declarations

make -w -j7

Expand Down
66 changes: 31 additions & 35 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
This is GCC 12.2.0 built on Mac OS X El Capitan (10.11, Darwin 15), with Xcode 8.2.1 and Python 3.9.8.
This is GCC 13.1.0 built on macOS Monterey (12, Darwin 21), with Command Line Tools 14.2 and Python 3.9.8.

Also runs on macOS versions up to at least Monterey (12, Darwin 21). It will run on Intel Macs, or M1 Macs under Rosetta, and uses the Xcode SDK if found, the Command Line Tooks SDK if not.
It will run on Intel Macs, or M1 Macs under Rosetta, and uses the Xcode SDK if found, the Command Line Tooks SDK if not.

**gcc-12.2.0-x86_64-apple-darwin15.pkg**
**gcc-13.10-x86_64-apple-darwin21.pkg**

Compilers included: Ada, C, C++.

Tools included (all at version 23.0.0, and all with the [Runtime Library Exception][RLE], except as noted):

Full GPL:

* <a name="gdb-build"></a> GDB from https://sourceware.org/git/binutils-gdb.git at tag `gdb-12.1-release`, **without Python support**).
* <a name="gdb-build"></a> GDB from https://sourceware.org/git/binutils-gdb.git at tag `gdb-12.1-release`.

GPL with the [Runtime Library Exception][RLE]:

* AUnit from https://github.com/AdaCore/aunit
* GNATCOLL from:
* https://github.com/AdaCore/gnatcoll-core
* https://github.com/AdaCore/gnatcoll-bindings (ZLIB is included, OMP and LZMA are not (the GNATCOLL version for LZMA requires thread support in the system library, not available on macOS))
* https://github.com/AdaCore/gnatcoll-bindings (except LZMA: the GNATCOLL version for LZMA requires thread support in the system library, not available on macOS)
* https://github.com/AdaCore/gnatcoll-db (only the SQLite backend)
* Gprbuild from https://github.com/AdaCore/gprbuild
* Langkit from https://github.com/AdaCore/langkit
Expand All @@ -28,26 +28,28 @@ GPL with the [Runtime Library Exception][RLE]:

Configured with:
```
--prefix=/opt/gcc-12.2.0
--without-libiconv-prefix
--disable-libmudflap
--disable-libstdcxx-pch
--disable-libsanitizer
--disable-libcc1
--disable-libcilkrts
--disable-multilib
--disable-nls
--enable-languages=c,c++,ada
--host=x86_64-apple-darwin15
--target=x86_64-apple-darwin15
--build=x86_64-apple-darwin15
--without-isl
--with-build-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
--with-sysroot=
--with-specs='%{!sysroot=*:
--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)}'
--with-build-config=no
--prefix=/opt/gcc-13.1.0
--without-libiconv-prefix
--disable-libmudflap
--disable-libstdcxx-pch
--disable-libsanitizer
--disable-libcc1
--disable-libcilkrts
--disable-multilib
--disable-nls
--enable-languages=c,c++,ada
--host=x86_64-apple-darwin21
--target=x86_64-apple-darwin21
--build=x86_64-apple-darwin21
--without-isl
--with-build-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
--with-sysroot=
--with-specs='%{!sysroot=*:--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)}'
--with-build-config=no
--enable-bootstrap
CFLAGS=-Wno-deprecated-declarations
CXXFLAGS=-Wno-deprecated-declarations
```

[RLE]: http://www.gnu.org/licenses/gcc-exception-faq.html
Expand All @@ -69,13 +71,13 @@ Download the binary `.pkg`. It's not signed, so **don't** double-click on it; in

### Setting PATH ###

`PATH` needs to be set to include `/opt/gcc-12.2.0/bin` at the front:
`PATH` needs to be set to include `/opt/gcc-13.1.0/bin` at the front:

#### `bash` ####

Insert
```
export PATH=/opt/gcc-12.2.0/bin:$PATH
export PATH=/opt/gcc-13.1.0/bin:$PATH
```
in your `~/.bash_profile_common`.

Expand All @@ -89,21 +91,15 @@ See [here][ZSH] for helpful information on moving to `zsh`.

### <a name="installing-gdb">Installing GDB</a> ###

`gdb` has to be 'code-signed' (unless you're willing to run it as root!) and under Sierra and later macOS releases there are additional steps that have to be taken.

For El Capitan, see [here][CS-ELC].

For Sierra, and High Sierra, see [here][CS-SIERRA]; in the case of High Sierra, the 10.12.1 paragraph refers.
`gdb` has to be 'code-signed' (unless you're willing to run it as root!)

For Mojave, Catalina, Big Sur and Monterey, see [here][CS-MOJAVE].

[CS-ELC]: https://gcc.gnu.org/onlinedocs/gnat_ugn/Codesigning-the-Debugger.html
[CS-SIERRA]: http://blog.adacore.com/gnat-on-macos-sierra
[CS-MOJAVE]: https://forward-in-code.blogspot.com/2018/11/mojave-vs-gdb.html

## Notes ##

The software was built using the [building-gcc-macos-native][BUILDING] scripts at Github, tag gcc-12.2.0.
The software was built using the [building-gcc-macos-native][BUILDING] scripts at Github, tag gcc-13.1.0-x86_64.

[BUILDING]:https://github.com/simonjwright/building-gcc-macos-native

Expand All @@ -125,6 +121,6 @@ This compiler has been built so you don't need to take any related action to use

## Distribution ##

The distribution was prepared using the [distributing-gcc project][DIST] at Github, tag gcc-12.2.0-x86_64.
The distribution was prepared using the [distributing-gcc project][DIST] at Github, tag gcc-13.1.0-x86_64.

[DIST]: https://github.com/simonjwright/distributing-gcc

0 comments on commit 6992613

Please sign in to comment.