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
Sorry for the noise…
It’s now working after reinstalling erlang and elixir and I have no clue why
Popular in Questions
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
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
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
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
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
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
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
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
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
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
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
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
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
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
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
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
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
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
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
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







