problems building julia 0.7 on Linux

When I run make testall it fails at the cmdlineargs test. I have uninstalled julia and set FFLAGS=-ff2c but it still fails. My versioninfo() is:

Julia Version 0.7.0-beta.182
Commit feaee9ebbc (2018-07-06 12:39 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)

Just before the test fails I get this warning:

┌ Warning: TerminalMenus: Unable to enter raw mode: ArgumentError("stream is closed or unusable")
└ @ REPL.TerminalMenus util.jl:21
      From worker 2:	
┌ Warning: TerminalMenus: Unable to enter raw mode: ArgumentError("stream is closed or unusable")
└ @ REPL.TerminalMenus util.jl:21

I think this warning has something to do with why the test failed.

The stacktrace of the error is on pastebin

Can I get some advice on this? Its getting to a point where I can’t spend more time debugging this.

That warning is unrelated, happens from time to time. Have you tried to run and investigate julia/cmdlineargs.jl at ae8e95f249732ce4555584e8d0d8e469c4119edb · JuliaLang/julia · GitHub manually? e.g. just starting the REPL and copy-pasting various parts?

I haven’t tried that. Do I just copy and paste from line 417 to 429 in the REPL prompt? If so, line by line or the whole code block?

I also got the same test failure after building 0.7 with MKL. However, starting the REPL and trying the failed portion of the test manually does not fail. Weird…