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

Extras don't install on MacBook M1 using clang and homebrew OMP #145

Open
gitosaurus opened this issue Nov 7, 2024 · 0 comments
Open

Extras don't install on MacBook M1 using clang and homebrew OMP #145

gitosaurus opened this issue Nov 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gitosaurus
Copy link

Describe the bug
cogsworth[extras] doesn't install on MacBook M1, using clang and homebrew OMP.

Example for reproducing

brew install libomp
pip install 'cogsworth[extras]'

      clang++: error: unsupported option '-fopenmp'
      clang++: error: unsupported option '-fopenmp'
      test.cpp:1:10: fatal error: 'omp.h' file not found
          1 | #include <omp.h>
            |          ^~~~~~~
      1 error generated.
      ld: library 'gomp' not found
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      ld: library 'omp' not found
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Expected behavior
Would have expected the build process to find libomp.

This Stack Overflow answer seems to have the fix:

https://stackoverflow.com/questions/25990296/how-to-include-omp-h-in-os-x

brew --prefix libomp will output the directory which is the base for the include and lib directories.

Desktop (please complete the following information):

  • OS: macOS
  • Version: 15.0.1 (Sequoia)
  • Run from: terminal
@gitosaurus gitosaurus added the bug Something isn't working label Nov 7, 2024
@TomWagg TomWagg self-assigned this Nov 7, 2024
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

No branches or pull requests

2 participants