Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following guide creates error #408

Open
StephanMeijer opened this issue Oct 20, 2017 · 10 comments
Open

Following guide creates error #408

StephanMeijer opened this issue Oct 20, 2017 · 10 comments

Comments

@StephanMeijer
Copy link

Versions

Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.5.2

Error

mix deps.compile

== Compilation error in file lib/ex_admin/gettext.ex ==
** (CompileError) Elixir.ExAdmin.Gettext: function lgettext/4+1688:
  Internal consistency check failed - please report this bug.
  Instruction: {test,bs_match_string,{f,561},[{x,6},48,{string,"rofile"}]}
  Error:       {no_bsm_context,{x,6}}:

    (stdlib) lists.erl:1338: :lists.foreach/2
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:121: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1
could not compile dependency :ex_admin, "mix compile" failed. You can recompile this dependency with "mix deps.compile ex_admin", update it with "mix deps.update ex_admin" or clean it with "mix deps.clean ex_admin"
@soarpatriot
Copy link

Same issue with my compile phase

@soarpatriot
Copy link

Help!!!

@soarpatriot
Copy link

@StephanMeijer I made some test. In my opinion, it's not a ex_admin bug, I switched the erlang version to 19.3.6 and this bug disappear. I also tested Erlang/OTP 20 [erts-9.1.2] and it works fine. However it does not work on Erlang/OTP 20 [erts-9.1]

Erlang/OTP 19 [erts-8.3.5] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.3.5 (abort with ^G)

@sublimecoder
Copy link

So whats the solution to this? Just downgrade Erlang and wait for next version of otp?

@sublimecoder
Copy link

Confirmed it is an OTP bug and has been reported. It’s fixed in Erlang 20.1.3

@benrom
Copy link
Contributor

benrom commented Nov 17, 2017

There's no official Debian release containing the fix (latest is erts-9.1), how can I get the latest version on Debian ?

@sublimecoder
Copy link

Use a version manager like asdf that allows you to pull from the GitHub repo. Not sure if asdf supports vanilla Debian, it supports Ubuntu. You can also download the tagged version of the code and use the compile and install from source instructions on Erlangs site to manually install it.

@StephanMeijer
Copy link
Author

asdf surely supports debian.

@arhyth
Copy link

arhyth commented Jan 24, 2018

did anyone manage to compile their own updated asdf-erlang (>=20.1.3) plugin to get around this bug? :) would appreciate some pointers, or better yet a link. :)

@sublimecoder
Copy link

Add this line to your .tools-version file

erlang ref:OTP-20.1.3

Then run asdf install.

It’ll install the tagged version of Erlang. They may have already released the bug fix so 20.1.4 or 20.2 might be out which might be a better option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants