EXLA compile fails while running "iex -S mix" - WIndows 10 - 64 bit

could not compile dependency :exla, “mix compile” failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile exla”, update it with “mix deps.update exla” or clean it with “mix deps.clean exla”
** (MatchError) no match of right hand side value: {“x86_64”, “windows”}
(xla 0.4.3) lib/xla.ex:111: XLA.target/0
(xla 0.4.3) lib/xla.ex:107: XLA.archive_filename_with_target/0
(xla 0.4.3) lib/xla.ex:145: XLA.archive_path_for_matching_download/0
(xla 0.4.3) lib/xla.ex:32: XLA.archive_path!/0
/deps/exla/mix.exs:105: EXLA.MixProject.compile/1
(mix 1.14.2) lib/mix/task.ex:492: Mix.Task.run_alias/6
(mix 1.14.2) lib/mix/tasks/compile.all.ex:92: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.14.2) lib/mix/tasks/compile.all.ex:72: Mix.Tasks.Compile.All.compile/4

Appreciate response here what could be wrong here? @josevalim

here is the dependency list:
defp deps do
{:phoenix, “~> 1.6.15”},
{:phoenix_html, “~> 3.0”},
{:phoenix_live_reload, “~> 1.2”, only: :dev},
{:phoenix_live_view, “~> 0.17.5”},
{:floki, “>= 0.30.0”, only: :test},
{:phoenix_live_dashboard, “~> 0.6”},
{:esbuild, “~> 0.4”, runtime: Mix.env() == :dev},
{:swoosh, “~> 1.3”},
{:telemetry_metrics, “~> 0.6”},
{:telemetry_poller, “~> 1.0”},
{:gettext, “~> 0.18”},
{:jason, “~> 1.2”},
{:plug_cowboy, “~> 2.5”},
{:tailwind, “~> 0.1.8”, runtime: Mix.env() == :dev},
{:axon, “~> 0.3.0”, github: “elixir-nx/axon”},
{:exla, “~> 0.1.0-dev”, github: “elixir-nx/nx”, sparse: “exla”},
{:nx, “~> 0.4.1”, github: “elixir-nx/nx”, sparse: “nx”, override: true},
{:scidata, “~> 0.1.5”}


I believe that EXLA does not have precompiled binaries for Windows. This is because the most recent release of XLA does not include any Windows binaries. However, you can find the instructions for compiling from source on Windows yourself in the project readme.

Do note that the older version 0.1.1 release of the XLA package includes binaries for Windows, but given that it is over a year old and how quickly the technology has developed in this space, your success may vary.


1 Like

Thanks for the response… i will take it from here…