erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

"Compiling src/rlx_topo.erl failed" on Windows 7 #581

Closed oboudry closed 7 years ago

oboudry commented 7 years ago

The problem I have is very similar to #558 but unfortunately in my case, version 3.22.2 or 3.22.3 do not solve the problem.

When I try to compile relx, I'm getting the following error: ===> Compiling src/rlx_topo.erl failed include/relx.hrl:19: can't find include lib "providers/include/providers.hrl"

See full sequence below, this was run just after a fresh uninstall/reinstall of both Erlang OTP 19.3 (x64) and Elixir 1.4.2. I was previously using Erlang OTP 18.2.1. I thought getting up to date might help but both version have the same problem.

`C:\Windows\System32>cd C:\Users\obou\Dropbox\Code\Elixir\stack

C:\Users\obou\Dropbox\Code\Elixir\stack>mix do deps.get, deps.compile Running dependency resolution...

src/rlx_topo.erl:124: undefined macro 'PRV_ERROR/1'

src/rlx_topo.erl:72: function iterate/3 undefined src/rlx_topo.erl:117: spec for undefined function iterate/3

src/rlx_topo.erl:144: function subtract/2 is unused src/rlx_topo.erl:149: function remove_duplicates/1 is unused src/rlx_topo.erl:166: function remove_pairs/2 is unused

* (Mix) Could not compile dependency :relx, "escript.exe "c:/Users/obou/.mix/re bar3" bare compile --paths "c:/Users/obou/Dropbox/Code/Elixir/stack/_build/dev/l ib//ebin"" command failed. You can recompile this dependency with "mix deps.com pile relx", update it with "mix deps.update relx" or clean it with "mix deps.cle an relx" ` Not sure if it's a bug, seems similar to #558, but might also be some dependency constraint that I don't know about. I'm new to Elixir and Erlang, also not new to programming.

Thanks in advance for your answer.

Olivier.

oboudry commented 7 years ago

I think this was self inflicted, I had added the erlware_commons package to my dependency list in the attempt to solve the build as it was mentioning a missing dependency that was in that package. I forgot to remove it. Building 3.22.0 or 3.22.3 works, I'll close this issue.