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

Rebar3 grisp build with nonexisting _grisp dir fails #9

Closed
peerst opened this issue Nov 15, 2017 · 5 comments
Closed

Rebar3 grisp build with nonexisting _grisp dir fails #9

peerst opened this issue Nov 15, 2017 · 5 comments

Comments

@peerst
Copy link
Contributor

peerst commented Nov 15, 2017

 $ rm -rf _grisp _build
 $ rebar3 grisp build
===> Fetching rebar3_grisp ({pkg,<<"rebar3_grisp">>,<<"0.1.0">>})
===> Downloaded package, caching at /Users/peer/.cache/rebar3/hex/default/packages/rebar3_grisp-0.1.0.tar
===> Compiling rebar3_grisp
===> Verifying dependencies...
===> Fetching grisp ({pkg,<<"grisp">>,<<"0.1.1">>})
===> Downloaded package, caching at /Users/peer/.cache/rebar3/hex/default/packages/grisp-0.1.1.tar
===> Fetching rebar3_eqc ({pkg,<<"rebar3_eqc">>,<<"0.0.10">>})
===> Downloaded package, caching at /Users/peer/.cache/rebar3/hex/default/packages/rebar3_eqc-0.0.10.tar
===> Fetching cf ({pkg,<<"cf">>,<<"0.1.2">>})
===> Downloaded package, caching at /Users/peer/.cache/rebar3/hex/default/packages/cf-0.1.2.tar
===> Compiling cf
===> Compiling rebar3_eqc
===> Fetching mapz ({pkg,<<"mapz">>,<<"0.3.0">>})
===> Downloaded package, caching at /Users/peer/.cache/rebar3/hex/default/packages/mapz-0.3.0.tar
===> Checking out Erlang/OTP 19.3.6
* Cloning...  (this may take a while)
===> Preparing GRiSP code
* Copying C code...
* Patching OTP...
===> Building
* Running autoconf...
* Running configure...  (this may take a while)
* Building...  (this may take a while)
* Installing...
spawn: Could not cd to /Users/peer/projects/grisp/grisp_sd/_grisp/otp/19.3.6/install
===> sh(rm -rf /Users/peer/projects/grisp/grisp_sd/_grisp/otp/19.3.6/install/*)
failed with return code 2 and the following output:

The directory install doesn't exist.

Workaraound: after it failed create the missing dir and retry

$ mkdir _grisp/otp/19.3.6/install
$ rebar3 grisp build
===> Verifying dependencies...
===> Checking out Erlang/OTP 19.3.6
* Using existing checkout
===> Preparing GRiSP code
* Copying C code...
* Patching OTP...
===> Building
* Running autoconf...
* Running configure...  (this may take a while)
* Building...  (this may take a while)
* Installing...
===> Done
@peerst peerst added this to the 1.0 milestone Nov 15, 2017
@peerst peerst added the bug label Nov 15, 2017
@holzingk
Copy link
Contributor

The new config advises users to run rebar3 compile before. But that's just a workaround.

@peerst
Copy link
Contributor Author

peerst commented Nov 15, 2017

That workaround didn’t work for me

@peerst
Copy link
Contributor Author

peerst commented Nov 16, 2017

Retried with the latest version: calling rebar3 compile doesn't create the missing directory nor does it fix the problem otherwise.

The only workaround that works for me is calling mkdir _grisp/otp/19.3.6/install after the first failed build. Or probably calling mkdir -p _grisp/otp/19.3.6/install before rebar3 grisp build

@peerst
Copy link
Contributor Author

peerst commented Nov 16, 2017

Now that I have the most current rebar3_grisp plugin (had a old one installed globaly) the workaround with rebar3 compile works for me too

@peerst
Copy link
Contributor Author

peerst commented Nov 16, 2017

Ok all, this was caused by old global rebar3_grisp plugins installed.

Caveat: updating global rebar3 plugins doesn't work with rebar3 plugins upgrade

@peerst peerst closed this as completed Nov 16, 2017
@eproxus eproxus added the invalid label Dec 5, 2017
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

3 participants