basho/erlang_js

make fails with undecipherable error on OS X 10.9.3

Opened this issue · 1 comments

I'm not very familiar with Erlang & rebar, but I'd like to play around with erlang_js. I'm trying to compile master (07467d8) and 1.3.0 but I'm getting the same error[0]. I have no idea where to start debugging this and I'd appreciate any hints.

I'm on OS X 10.9.3, using (via homebrew) Erlang 17.0 and I think I have a "GNU-style build system" (whatever that exactly means).

With Ubuntu 12.04 and R16B03-1, make test succeeds and I can run the example described in the README.

[0]

$ make test
./rebar get-deps
Uncaught error in rebar_core: {'EXIT',
                               {badarg,
                                [{re,replace,
                                  [[36,40,114,118,109,95,112,114,111,109,112,
                                    116,41,37,123,37,40,63,46,37,123,37,98,37,
                                    115,37,117,27,91,48,48,109,37,125,46,37,
                                    83,41,37,125,37,123,27,91,51,50,109,37,
                                    125,36,40,103,101,116,95,103,105,116,95,
                                    112,114,111,109,112,116,95,105,110,102,
                                    111,32,37,98,41,37,123,27,91,51,49,109,37,
                                    125,36,40,103,101,116,95,103,105,116,95,
                                    112,114,111,109,112,116,95,105,110,102,
                                    111,32,37,115,41,37,123,37,40,63,46,37,
                                    123,37,98,37,115,37,117,27,91,48,48,109,
                                    37,125,46,37,83,41,37,125,37,123,27,91,51,
                                    55,109,37,125,37,66,37,49,126,37,98,37,
                                    123,37,98,37,115,37,117,27,91,48,48,109,
                                    37,125,32,37,123,37,83,36,102,103,91,36,
                                    90,76,69,95,67,79,76,79,82,93,37,125,37,
                                    123,37,98,37,115,37,117,27,91,48,48,109,
                                    37,125,37,123,27,91,51,52,109,37,125,
                                    10140,37,123,37,98,37,115,37,117,27,91,48,
                                    48,109,37,125,32],
                                   [92,36,40,"PROMPT",40,92,115,124,36,41,124,
                                    123,"PROMPT",125,41],
                                   [[],"\\2"],
                                   [global,{return,list}]],
                                  [{file,"re.erl"},{line,355}]},
                                 {rebar_port_compiler,merge_each_var,2,[]},
                                 {rebar_port_compiler,setup_env,2,[]},
                                 {rebar_core,'-setup_envs/2-fun-0-',2,[]},
                                 {lists,foldl,3,
                                  [{file,"lists.erl"},{line,1261}]},
                                 {rebar_core,process_dir1,6,[]},
                                 {rebar_core,process_commands,2,[]},
                                 {rebar,main,1,[]}]}}
make: *** [deps] Error 1

Okay, I think I solved it by compiling rebar and moving the self-contained rebar executable to my erlang_js working directory. Maybe rebar in this repository is incompatible with Erlang 17?