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

mix compile error in web/router.ex #39

Closed
dmitrinesterenko opened this issue Aug 10, 2016 · 2 comments
Closed

mix compile error in web/router.ex #39

dmitrinesterenko opened this issue Aug 10, 2016 · 2 comments

Comments

@dmitrinesterenko
Copy link
Owner

elixir-lang/elixir#4617

== Compilation error on file web/router.ex ==
** (CompileError) web/router.ex: internal error in v3_core;
crash reason: {case_clause,
    {'EXIT',
        {badarg,
            [{erl_anno,anno_info,[-1],[{file,"erl_anno.erl"},{line,360}]},
             {v3_core,record_anno,2,[{file,"v3_core.erl"},{line,2410}]},
             {v3_core,expr,2,[{file,"v3_core.erl"},{line,539}]},
             {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]},
             {v3_core,expr,2,[{file,"v3_core.erl"},{line,528}]},
             {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]},
             {v3_core,'-safe_list/2-anonymous-0-',2,
                 [{file,"v3_core.erl"},{line,1608}]},
             {lists,foldr,3,[{file,"lists.erl"},{line,1276}]}]}}}

  in function  compile:'-select_passes/2-anonymous-2-'/2 (compile.erl, line 530)
  in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 315)
  in call from compile:fold_comp/3 (compile.erl, line 341)
  in call from compile:internal_comp/4 (compile.erl, line 325)
  in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 175)
    (stdlib) lists.erl:1338: :lists.foreach/2
    (phoenix) expanding macro: Phoenix.Router.__before_compile__/1
@dmitrinesterenko
Copy link
Owner Author

This only occurs when I am building on AWS machines, i.e. docker-machine use aws01, make build. mix compile consistently throws the error above.

Locally on Linux 0c4b211195ec 4.2.0-42-generic #49-Ubuntu SMP Tue Jun 28 21:26:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux make build executes without a problem.

@dmitrinesterenko
Copy link
Owner Author

dmitrinesterenko commented Aug 12, 2016

The below upgrade fixes this problem.

-    [{:phoenix, "~> 1.0.0"},
+    [{:phoenix, "~> 1.2.0"},
      {:phoenix_ecto, "~> 3.0.0-rc"},
      {:postgrex, ">= 0.11.0"},
      {:phoenix_live_reload, "~> 1.0"},
-     {:phoenix_html, "~> 2.5"},
+     {:phoenix_html, "~> 2.6"},
      {:cowboy, "~> 1.0"}]

phoenixframework/phoenix#1768

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

No branches or pull requests

1 participant