install fails on macos 14
jameskermode opened this issue · 4 comments
jameskermode commented
Meson build fails of f90wrap fails on macos 14.
Also reported in QUIP as libAtoms/QUIP#624
$ pip3 install f90wrap
Collecting f90wrap
Using cached f90wrap-0.2.13.tar.gz (2.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
+ meson setup /private/var/folders/sh/mkb_1f5n7c94fpn3kppj1zm40000gn/T/pip-install-kxuin1y_/f90wrap_2ca59d63880d4fd6a7ee397f3ffd5aee /private/var/folders/sh/mkb_1f5n7c94fpn3kppj1zm40000gn/T/pip-install-kxuin1y_/f90wrap_2ca59d63880d4fd6a7ee397f3ffd5aee/.mesonpy-17bg5i99 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/sh/mkb_1f5n7c94fpn3kppj1zm40000gn/T/pip-install-kxuin1y_/f90wrap_2ca59d63880d4fd6a7ee397f3ffd5aee/.mesonpy-17bg5i99/meson-python-native-file.ini
The Meson build system
Version: 1.2.3
Source dir: /private/var/folders/sh/mkb_1f5n7c94fpn3kppj1zm40000gn/T/pip-install-kxuin1y_/f90wrap_2ca59d63880d4fd6a7ee397f3ffd5aee
Build dir: /private/var/folders/sh/mkb_1f5n7c94fpn3kppj1zm40000gn/T/pip-install-kxuin1y_/f90wrap_2ca59d63880d4fd6a7ee397f3ffd5aee/.mesonpy-17bg5i99
Build type: native build
Project name: f90wrap
Project version: 0.2.13
C compiler for the host machine: cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
C linker for the host machine: cc ld64 1015.7
Host machine cpu family: aarch64
Host machine cpu: aarch64
../meson.build:13:0: ERROR: Unable to detect linker for compiler `gfortran -Wl,--version`
stdout:
stderr: collect2 version 13.2.0
/usr/bin/ld -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/ -dynamic -arch arm64 -platform_version macos 14.0.0 0.0 -o a.out -L/opt/homebrew/Cellar/gcc/13.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin22/13 -L/opt/homebrew/Cellar/gcc/13.2.0/bin/../lib/gcc/current/gcc -L/opt/homebrew/Cellar/gcc/13.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin22/13/../../.. --version -lemutls_w -lgcc -lSystem -lgcc -no_compact_unwind -rpath @loader_path -rpath /opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc/aarch64-apple-darwin22/13 -rpath /opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc -rpath /opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current
ld: unknown options: --version
collect2: error: ld returned 1 exit status
A full log can be found at /private/var/folders/sh/mkb_1f5n7c94fpn3kppj1zm40000gn/T/pip-install-kxuin1y_/f90wrap_2ca59d63880d4fd6a7ee397f3ffd5aee/.mesonpy-17bg5i99/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
jameskermode commented
Looks to be related to mesonbuild/meson#12399
jameskermode commented
Also related: mesonbuild/meson#12159
Think we need to wait for a fix in meson.
jameskermode commented
No GitHub runners for macos-14 available yet: actions/runner-images#7508
jameskermode commented
Now resolved.