From dfe262419cf735b6d0fe493abfd51614633c8a64 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Mon, 30 Oct 2023 14:54:49 -0400 Subject: [PATCH] chore: unpin python<=3.11, mention Xcode 15 workaround in dev docs (#1415) * new bmipy release is out, compatible with python3.12 * mention linker workaround for Xcode 15 in DEVELOPER.md * update macOS gcc install examples to use latest version (13) --- DEVELOPER.md | 12 ++++++++++-- environment.yml | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index b64594806fa..0bda747bf37 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -97,8 +97,16 @@ GNU Fortran can be installed on all three major platforms. ##### macOS -- [Homebrew](https://brew.sh/): `brew install gcc` -- [MacPorts](https://www.macports.org/): `sudo port install gcc10` +- [Homebrew](https://brew.sh/): `brew install gcc@13` +- [MacPorts](https://www.macports.org/): `sudo port install gcc13` + +**Note:** Xcode 15 includes a new linker implementation which breaks GNU Fortran compatibility. A workaround is to set `LDFLAGS` to use the classic linker, for instance: + +```shell +export LDFLAGS="$LDFLAGS -Wl,-ld_classic" +``` + +See [this ticket](https://github.com/mesonbuild/meson/issues/12282) on the Meson repository for more information. ##### Windows diff --git a/environment.yml b/environment.yml index ec3fc470fea..4cdc3b2dbfb 100644 --- a/environment.yml +++ b/environment.yml @@ -5,7 +5,7 @@ channels: - defaults dependencies: - - python<=3.11 + - python - appdirs - filelock - fprettify