libprima / prima

PRIMA is a package for solving general nonlinear optimization problems without using derivatives. It provides the reference implementation for Powell's derivative-free optimization methods, i.e., COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA. PRIMA means Reference Implementation for Powell's methods with Modernization and Amelioration, P for Powell.
http://libprima.net
BSD 3-Clause "New" or "Revised" License
290 stars 35 forks source link

CMake build fails on macOS-13 #158

Closed zaikunzhang closed 4 months ago

zaikunzhang commented 4 months ago

For the moment, the failure is observed only if we use ifort as the Fortran compiler. gfortran works fine (maybe due to gcc?).

See https://github.com/libprima/prima/actions/runs/7894696232/job/21545822585

Note, however, that the following run was successful:

https://github.com/libprima/prima/actions/runs/7894650578/job/21545696890

Checking the runner images (See "Set up job" section of the log), I found the following.

Failure (for https://github.com/libprima/prima/actions/runs/7894696232/job/21545822585):

  Image: macos-13
  Version: 20240204.1
  Included Software: https://github.com/actions/runner-images/blob/macos-13/20240204.1/images/macos/macos-13-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20240204.1

Success (for https://github.com/libprima/prima/actions/runs/7894650578/job/21545696890):

  Image: macos-13
  Version: 20240114.1
  Included Software: https://github.com/actions/runner-images/blob/macos-13/20240114.1/images/macos/macos-13-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20240114.1

We can see that the two runs used different versions of the image. In particular, following the "Included Software" link, I find that the failing run used Clang/LLVM 15.0.0, while the successful one used Clang/LLVM 14.0.3. I am not sure whether this is the reason for the failure (doesn't clang provide ld on macOS-13?).

zaikunzhang commented 4 months ago

I am not sure whether the following issues are related:

https://github.com/llvm/llvm-project/issues/59427

https://github.com/mesonbuild/meson/issues/12288

zaikunzhang commented 4 months ago

This seems to be related to the failure of MEX on macOS-13 with Xcode 15 and LLVM/Clang 15:

https://github.com/matlab-actions/setup-matlab/issues/96

zaikunzhang commented 4 months ago

Maybe it is related to the following:

https://stackoverflow.com/questions/77525544/apple-linker-warning-ld-warning-undefined-error-is-deprecated