Allow LLVM compilers to be used on MacOS? #1373
Replies: 2 comments 1 reply
-
@natalie-perlin sorry you are having issues with the Mac. Unfortunately, you are venturing into unknown territory with llvm-clang. I don't think we have even tried to do this in the past - although @climbfuji might have given it a shot. I'm just letting you know because it might be a lot of effort to get llvm-clang working on the Mac, and it might be less effort to try to get apple-clang working instead. The error you reported is coming from a spack bootstrap process that needs to complete before concretize will run, and the bootstrap depends on SPACK_PYTHON being able to import and use the clingo python module. The issue might be that your SPACK_PYTHON does not have the clingo module installed, or it might be that the clingo installation is corrupt. I recently ran into the latter problem and had to completely wipe out the clingo installation and then reinstall it. I installed clingo using homebrew, and I am using python@3.12.5. You can run |
Beta Was this translation helpful? Give feedback.
-
@srherbener @climbfuji - Thank you for the comments! And just for testing purposes, concretization also worked OK following successfull bootstrap, after adjustment of package versions and dependencies. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Could LLVM compilers be allowed for building spack-stack on MacOS? Testing a build of spack-stack-1.8.0 on x86_64 Monterey.
It looks like only apple-clang compilers are accepted on Darwin platforms. Concretization fails in the very beginning, see below the errors.
I've installed llvm v19.1.3 with clang, clang++, prepared a modulefile that is loaded before building anything in stack. A file compiler.yaml was set as follows:
gcc in the environment points to the system Apple-clang 14.0.0:
The concretization error is as follows:
How to configure the llvm-clang to be used in lieu of apple-clang? Do gcc and/or g++ need to be pointing to llvm-clang to avoid the issue?
Beta Was this translation helpful? Give feedback.
All reactions