elixir-lang / elixir

Elixir is a dynamic, functional language for building scalable and maintainable applications
https://elixir-lang.org/
Apache License 2.0
24.51k stars 3.38k forks source link

Building Elixir from master fails #6659

Closed enilsen16 closed 7 years ago

enilsen16 commented 7 years ago

ref: https://github.com/asdf-vm/asdf-elixir/issues/36

Precheck

Environment

  1) test compile gets correct line number for UndefinedFunctionError (Kernel.ParallelCompilerTest)
     test/elixir/kernel/parallel_compiler_test.exs:119
     ** (File.Error) could not write to file "/Users/erik/Projects/elixir/lib/elixir/tmp/undef_error.ex": no such file or directory
     code: File.write!(file, """
     stacktrace:
       (elixir) lib/file.ex:830: File.write!/3
       test/elixir/kernel/parallel_compiler_test.exs:121: (test)
.......
  2) test compile does not use incorrect line number when error originates in another file (Kernel.ParallelCompilerTest)
     test/elixir/kernel/parallel_compiler_test.exs:94
     ** (File.Error) could not write to file "/Users/erik/Projects/elixir/lib/elixir/tmp/error_line_a.ex": no such file or directory
     code: File.write!(file_a, """
     stacktrace:
       (elixir) lib/file.ex:830: File.write!/3
       test/elixir/kernel/parallel_compiler_test.exs:96: (test)
josevalim commented 7 years ago

The build on travis is green: https://travis-ci.org/elixir-lang/elixir

Can you please check try it on Erlang 20.0 and let us know if it is related to the Erlang version by any chance?

gmile commented 7 years ago

I've noticed this locally too, I'm on:

erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 9.1.1

Running make clean and then make compile again fixed the compilation for me.

gmile commented 7 years ago

I was able to compile successfully (wanted to run formatter code), but now if I run make test, I see the above test failures consistently.