Skip to content

Instantly share code, notes, and snippets.

@Valian
Created March 13, 2024 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Valian/b01cd3ed6a37b3eec7912019e6f51fff to your computer and use it in GitHub Desktop.
Save Valian/b01cd3ed6a37b3eec7912019e6f51fff to your computer and use it in GitHub Desktop.
First one running on M1 inside docker (failing), another one not (working)
docker run --rm -it elixir:1.16 mix run --no-mix-exs -e 'Mix.install(dockerexec: "~> 2.0")'
* creating /root/.mix/archives/hex-2.0.6
Resolving Hex dependencies...
Resolution completed in 0.01s
New:
dockerexec 2.0.3
* Getting dockerexec (Hex package)
* creating /root/.mix/elixir/1-16/rebar3
===> Fetching rebar3_hex v7.0.7
===> Fetching hex_core v0.8.4
===> Fetching verl v1.1.1
===> Analyzing applications...
===> Compiling hex_core
===> Compiling verl
===> Compiling rebar3_hex
===> Fetching rebar3_ex_doc v0.2.22
===> Analyzing applications...
===> Compiling rebar3_ex_doc
fatal: not a git repository (or any of the parent directories): .git
g++: error: unrecognized command-line option ‘-mavx2’
make: *** [Makefile:127: ei++.o] Error 1
===> Hook for compile failed!
** (Mix) Could not compile dependency :dockerexec, "/root/.mix/elixir/1-16/rebar3 bare compile --paths /root/.cache/mix/installs/elixir-1.16.0-erts-14.2.1/d07997f10a6ae9874ae75044892f01ae/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You may run Mix.install/2 to try again or change the arguments to Mix.install/2 to try another version
mix run --no-mix-exs -e 'Mix.install(dockerexec: "~> 2.0")'
Resolving Hex dependencies...
Resolution completed in 0.011s
New:
dockerexec 2.0.3
* Getting dockerexec (Hex package)
===> Fetching rebar3_hex v7.0.7
===> Fetching hex_core v0.8.4
===> Fetching verl v1.1.1
===> Analyzing applications...
===> Compiling hex_core
===> Compiling verl
===> Compiling rebar3_hex
===> Fetching rebar3_ex_doc v0.2.22
===> Analyzing applications...
===> Compiling rebar3_ex_doc
fatal: not a git repository (or any of the parent directories): .git
===> Analyzing applications...
===> Compiling dockerexec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment