[erlang-questions] with Erlang R21 rebar3 build fails

Mark Geib mark.geib.44@REDACTED
Wed Jun 20 23:49:35 CEST 2018


Strange problem developed after upgrading to erlang R21 on macOS. When I do a rebar3 build now I get:

geibs-MacBook-Pro:json2splunk geib$ rebar3 release
...
===> Compiling amqp_client
===> Compiling json2splunk
===> Running cuttlefish schema generator
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
          /Users/geib/git/cse.dbsa.download.json2splunk/json2splunk/_build/default/lib
          /Users/geib/git/cse.dbsa.download.json2splunk/json2splunk/apps
          /usr/local/Cellar/erlang/21.0/lib/erlang/lib
===> Resolved json2splunk-1.1.2-1
===> Dev mode enabled, release will be symlinked
===> release successfully created!
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command”`

and rebar3.crashdump is:

geibs-MacBook-Pro:json2splunk geib$ cat rebar3.crashdump
Error: {badmatch,{error,eperm}}
[{rlx_prv_overlay,write_template,3,
                  [{file,"/home/tristan/Devel/rebar3/_build/default/lib/relx/src/rlx_prv_overlay.erl"},
                   {line,498}]},
 {lists,map,2,[{file,"lists.erl"},{line,1239}]},
 {lists,map,2,[{file,"lists.erl"},{line,1239}]},
 {rlx_prv_overlay,do_overlay,3,
                  [{file,"/home/tristan/Devel/rebar3/_build/default/lib/relx/src/rlx_prv_overlay.erl"},
                   {line,292}]},
 {relx,run_provider,2,
       [{file,"/home/tristan/Devel/rebar3/_build/default/lib/relx/src/relx.erl"},
        {line,308}]},
 {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
 {relx,run_providers_for_actions,2,
       [{file,"/home/tristan/Devel/rebar3/_build/default/lib/relx/src/relx.erl"},
        {line,291}]},
 {relx,main,2,
       [{file,"/home/tristan/Devel/rebar3/_build/default/lib/relx/src/relx.erl"},
        {line,65}]}]

Now switching back to erlang R20 I get a successful build

geibs-MacBook-Pro:json2splunk geib$ rebar3 release
...
===> Compiling recon
===> Compiling ranch
===> Compiling ranch_proxy_protocol
===> Compiling goldrush
===> Compiling lager
===> Compiling jsx
===> Compiling rabbit_common
===> Compiling amqp_client
===> Compiling json2splunk
===> Running cuttlefish schema generator
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
          /Users/geib/git/cse.dbsa.download.json2splunk/json2splunk/_build/default/lib
          /Users/geib/git/cse.dbsa.download.json2splunk/json2splunk/apps
          /usr/local/Cellar/erlang@REDACTED/20.3.8/lib/erlang/lib
===> Resolved json2splunk-1.1.2-1
===> Dev mode enabled, release will be symlinked
===> release successfully created!

I assume since rebar3 is the same exec, that this is a potential issue with R21.
Any ideas.???

Thanks,
Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180620/14e74661/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 528 bytes
Desc: Message signed with OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180620/14e74661/attachment.bin>


More information about the erlang-questions mailing list