kokolegorille

kokolegorille

Exla mac m1 compilation error

Hello everyone,

After an upgrade to Mac OSX sonoma 14.1.1 I am having some error while compiling exla

I am on Erlang 26.1.2 and Elixir 1.15.7-otp-26

% mix compile              
==> exla
c++ -fPIC -I/Users/sqrt/.asdf/installs/erlang/26.1.2/erts-14.1.1/include -Icache/xla_extension/include -O3 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-comment -shared -std=c++17 -w -DLLVM_VERSION_STRING= c_src/exla/exla.cc c_src/exla/exla_nif_util.cc c_src/exla/exla_client.cc -o cache/libexla.so -Lcache/xla_extension/lib -lxla_extension -flat_namespace -undefined suppress
In file included from c_src/exla/exla.cc:3:
In file included from c_src/exla/exla_nif_util.h:13:
cache/xla_extension/include/xla/types.h:27:10: fatal error: 'Eigen/Core' file not found
#include "Eigen/Core"  // from @eigen_archive
         ^~~~~~~~~~~~
1 error generated.
In file included from c_src/exla/exla_nif_util.cc:1:
In file included from c_src/exla/exla_nif_util.h:13:
cache/xla_extension/include/xla/types.h:27:10: fatal error: 'Eigen/Core' file not found
#include "Eigen/Core"  // from @eigen_archive
         ^~~~~~~~~~~~
1 error generated.
In file included from c_src/exla/exla_client.cc:1:
In file included from c_src/exla/exla_client.h:8:
In file included from c_src/exla/exla_nif_util.h:13:
cache/xla_extension/include/xla/types.h:27:10: fatal error: 'Eigen/Core' file not found
#include "Eigen/Core"  // from @eigen_archive
         ^~~~~~~~~~~~
1 error generated.
make: *** [cache/libexla.so] Error 1
could not compile dependency :exla, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile exla --force", update it with "mix deps.update exla" or clean it with "mix deps.clean exla"

Does anybody has the same issue?

Thanks for taking time

Marked As Solved

kokolegorille

kokolegorille

Sorry for the noise…
It’s now working after reinstalling erlang and elixir and I have no clue why

Where Next?

Popular in Questions Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement