androidpdn
Hi,
I’m following the Bumblebee Llama livebook to try the Llama 2 model on my old Intel Macbook
However the Mix.install failed:
13:53:32.406 [warning] The on_load function for module Elixir.EXLA.NIF returned:
{:error,
{:load_failed,
~c"Failed to load NIF library: 'dlopen(/Users/me1/Library/Caches/mix/installs/elixir-1.15.7-erts-14.1.1/2b7a348373d05835d9cd119931789c36/_build/dev/lib/exla/priv/libexla.so, 2): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv\n Referenced from: /Users/me1/Library/Caches/mix/installs/elixir-1.15.7-erts-14.1.1/2b7a348373d05835d9cd119931789c36/_build/dev/lib/exla/priv/xla_extension/lib/libxla_extension.so (which was built for Mac OS X 13.1)\n Expected in: /usr/lib/libc++.1.dylib\n'"}}
I investigated a little bit, and found that while doing the Mix.install, it has the following traces:
Unpacking /Users/me1/Library/Caches/xla/0.5.1/cache/download/xla_extension-x86_64-darwin-cpu.tar.gz into /Users/me1/Library/Caches/mix/installs/elixir-1.15.7-erts-14.1.1/e3dd0250dbf080b97b38b403511c7f5b/deps/exla/cache
c++ -fPIC -I/Applications/Livebook.app/Contents/Resources/rel/vendor/otp/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
install_name_tool -change bazel-out/darwin_arm64-opt/bin/xla/extension/libxla_extension.so @loader_path/xla_extension/lib/libxla_extension.so -change bazel-out/darwin-opt/bin/xla/extension/libxla_extension.so @loader_path/xla_extension/lib/libxla_extension.so cache/libexla.so
Caching libexla.so at /Users/me1/Library/Caches/xla/exla/elixir-1.15.7-erts-14.1.1-xla-0.5.1-exla-0.6.0-vowh7yabhpsxubaescx6xex7my/libexla.so
The trace line:
install_name_tool -change bazel-out/darwin_arm64-opt/bin/xla/extension/libxla_extension.so
refers to darwin_arm64-opt which is for ARM CPU, instead of darwin-opt
It is might be the root cause of my Mix.install issue.
Could some one please help me on this? Thanks
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security









