-
Notifications
You must be signed in to change notification settings - Fork 190
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
Cannot compile exla on Mac #1542
Comments
Can you paste everything that was printed since |
|
So this is the root cause:
Have you installed XCode command line tools? |
I checked System Settings and XCode was not listed in available updates. I'm running the Sonoma update to see if that makes a difference. |
This is weird. It says your computer is missing some fundamental C++ libraries (memory.h is C++ 98 iirc). So something in your machine is missing or your env vars is pointing to a separate C++ installation. For example, I can find |
I found it in |
I don't think PATH is used for library/header files. It uses other keys but I am not sure. This article may have some hints: https://www.maven.de/2020/05/using-clang-on-macos-to-compile-g-libstdc-compatible-binaries/ |
I think for includes you need |
On StackOverflow I found the command
|
Now I have also tried editing the I also re-installed the XCode Command Line Tools. |
When I add
{:exla, "~> 0.9.0"}
as a dependency and runmix compile
I get the following error:gcc
andmake
are available at/usr/bin
, which is on my PATH.I first encountered the error in LiveBook with
Mix.install
, but putting it in a regularmix.exs
file gives the same error.I'm on a 2023 MacBook Pro with Apple M2 Pro chip and running macOS Sonoma 14.6.1
The text was updated successfully, but these errors were encountered: