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

CI: fix build failure in macOS CI #214

Closed
wants to merge 2 commits into from
Closed

Conversation

kdudka
Copy link
Member

@kdudka kdudka commented Oct 23, 2024

No description provided.

@kdudka kdudka self-assigned this Oct 23, 2024
@lzaoral
Copy link
Member

lzaoral commented Oct 23, 2024

I'm afraid, that this hack will have to stay since the GitHub macOS images are broken by design.

@kdudka kdudka force-pushed the fix-macos-ci branch 4 times, most recently from 9981f3e to 40866b4 Compare October 23, 2024 12:51
It does not seem to be needed any more.

Related: csutils#214
... so that it works with Boost Python and does not fail with:
```
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.86.0/BoostConfig.cmake (found version "1.86.0") found components: filesystem program_options regex system json nowide
-- Found Python3: /opt/homebrew/Frameworks/Python.framework/Versions/3.13/bin/python3 (found version "3.13.0") found components: Development Interpreter Development.Module Development.Embed
CMake Warning (dev) at src/CMakeLists.txt:129 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

Call Stack (most recent call first):
  src/CMakeLists.txt:165 (build_pycsdiff)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /opt/homebrew/lib/cmake/Boost-1.86.0/BoostConfig.cmake:141 (find_package):
  Found package configuration file:

    /opt/homebrew/lib/cmake/boost_python-1.86.0/boost_python-config.cmake

  but it set boost_python_FOUND to FALSE so package "boost_python" is
  considered to be NOT FOUND.  Reason given by package:

  No suitable build variant has been found.

  The following variants have been tried and rejected:

  * libboost_python312-mt.dylib (3.12, Boost_PYTHON_VERSION=3.13)

  * libboost_python312-mt.a (3.12, Boost_PYTHON_VERSION=3.13)

  * libboost_python312.dylib (3.12, Boost_PYTHON_VERSION=3.13)

  * libboost_python312.a (3.12, Boost_PYTHON_VERSION=3.13)

Call Stack (most recent call first):
  /opt/homebrew/lib/cmake/Boost-1.86.0/BoostConfig.cmake:262 (boost_find_component)
  /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindBoost.cmake:610 (find_package)
  src/CMakeLists.txt:129 (find_package)
  src/CMakeLists.txt:165 (build_pycsdiff)

-- Configuring incomplete, errors occurred!
make[1]: *** [all] Error 1
make: *** [distcheck] Error 2
```

Closes: csutils#214
@kdudka kdudka changed the title CI: try to remove an old workaround in macOS CI CI: fix build failure in macOS CI Oct 23, 2024
@kdudka kdudka requested a review from lzaoral October 23, 2024 12:55
@kdudka kdudka marked this pull request as ready for review October 23, 2024 12:55
@lzaoral
Copy link
Member

lzaoral commented Oct 23, 2024

Oh, I see now. This is actually a problem with Homebrew... Default python is 3.13 but boost-python3 still targets Python 3.12. I can reproduce this on my machine.

@kdudka
Copy link
Member Author

kdudka commented Oct 23, 2024

@lzaoral Thanks for review!

@kdudka kdudka closed this in 56ac540 Oct 23, 2024
@kdudka kdudka deleted the fix-macos-ci branch October 23, 2024 14:18
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

Successfully merging this pull request may close these issues.

2 participants