Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install fails on macos 14 #202

Closed
jameskermode opened this issue Oct 31, 2023 · 4 comments
Closed

install fails on macos 14 #202

jameskermode opened this issue Oct 31, 2023 · 4 comments

Comments

@jameskermode
Copy link
Owner

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
Copy link
Owner Author

Looks to be related to mesonbuild/meson#12399

@jameskermode
Copy link
Owner Author

jameskermode commented Oct 31, 2023

Also related: mesonbuild/meson#12159

Think we need to wait for a fix in meson.

@jameskermode
Copy link
Owner Author

No GitHub runners for macos-14 available yet: actions/runner-images#7508

@jameskermode
Copy link
Owner Author

Now resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant