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

[Bug] Build fails for MacOS in CI pipeline #212

Open
niketagrawal opened this issue May 8, 2024 · 3 comments · Fixed by #213
Open

[Bug] Build fails for MacOS in CI pipeline #212

niketagrawal opened this issue May 8, 2024 · 3 comments · Fixed by #213
Assignees
Labels
bug Something isn't working

Comments

@niketagrawal
Copy link

niketagrawal commented May 8, 2024

Build fails on MacOS in the CI pipeline from the commit 1a9aa2e onwards. The failure is not related to the code changes in the commit.

This failure seems to be due to a dependency incompatibility, for example, a potential upgrade in the version of the boost-cpp conda package that is downloaded and installed as part of the CI workflow.

Error text in CI log points to missing osx compatible boost libraries.

ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_filesystem.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_system.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_regex.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_date_time.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_thread.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_chrono.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_atomic.dylib': found architecture 'x86_64', required architecture 'arm64'
[ 41%] Building CXX object src/simulation/estimation_setup/CMakeFiles/tudat_estimation_setup.dir/createAtmosphericLightTimeCorrection.cpp.o
ld: warning: ignoring file '/Users/runner/miniconda3/envs/tudat/lib/libboost_unit_test_framework.dylib': found architecture 'x86_64', required architecture 'arm64'
@niketagrawal niketagrawal added the bug Something isn't working label May 8, 2024
@niketagrawal
Copy link
Author

niketagrawal commented May 8, 2024

The CI workflow for MacOS starts with the macos-latest runner image and then installs boost-cpp via conda, so I would assume that the boost libraries that are installed are compatible for MacOS. Since the conda environment cache is cleared daily, the case of old x86 boost libraries lingering around in the runner environment is also ruled out.

The version of the conda package boost-cpp hasn't changed between the last successful CI run and the first failure.

Potential root cause

Current CI workflow uses version 2 of the setup-miniconda GitHub action. Latest version is 3.0.4. It includes a bug fix for MacOS. Thanks @yiquintero for spotting this.

@yiquintero
Copy link

Two important system differences are observed between the last successful workflow execution and the first failing one:

  • The macOS-latest runner was updated from v. 2.315.0 (macOS v.12.7.4) to v. 2.316.1 (macOS v. 14.4.1)
    See lines 1-5 of the "Set up Job" section of the log file
  • The C++ compiler was updated from v.14.0.0.14000029 to v.15.0.0.15000040
    See line 51 of the "Configure CMake " section of the log file

@yiquintero
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants