Closed huang06 closed 2 weeks ago
Clang 18.1.8 is a very recent release of Clang. Did you install that intentionally?
I would use the default Apple clang for your xcode version (should be 16.0.0) unless you have a reason not to. That is the latest we've tested.
Probably the easiest thing to do is uninstall the latest clang you have. Alternatively you can hard code the compiler path for CMake, see e.g. https://stackoverflow.com/a/17275650/3897655
Clang 18.1.8 is a very recent release of Clang. Did you install that intentionally?
I would use the default Apple clang for your xcode version (should be 16.0.0) unless you have a reason not to. That is the latest we've tested.
Probably the easiest thing to do is uninstall the latest clang you have. Alternatively you can hard code the compiler path for CMake, see e.g. https://stackoverflow.com/a/17275650/3897655
Thanks for the tip! I actually didn’t realize I was using Clang 18. After your suggestion, I unset the CC environment variable (CC=/opt/homebrew/opt/llvm/bin/clang
) to revert to the default Apple Clang, and it worked!
Really appreciate the help! 😄
Describe the bug
I’m encountering a build failure when trying to install the mlx package on Mac M1. The error occurs during the CMake build process when linking libmlx.dylib:
To Reproduce
Include code snippet
Expected behavior
The package should build and install successfully without any linker errors.
Desktop (please complete the following information):