Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Can't build neither master nor v1.0.3 with nix #4080

Closed
utgarda opened this issue Feb 16, 2019 · 2 comments
Closed

Can't build neither master nor v1.0.3 with nix #4080

utgarda opened this issue Feb 16, 2019 · 2 comments

Comments

@utgarda
Copy link

utgarda commented Feb 16, 2019

Tried to follow this manual: https://github.com/input-output-hk/cardano-sl/blob/master/docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md
didn't go past running nix-build, let me know if I can get you more info.

$ uname -a
Linux jotunheim 4.20.8-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019 x86_64 GNU/Linux
$  ~ nix --version
nix (Nix) 2.2.1
$  ~ nix-build --version
nix-build (Nix) 2.2.1

$ git status
On branch master
Your branch is up to date with 'origin/master'.
$ git rev-parse HEAD
c6a50c2a736d72da6be93072b9d627407e4d957e

$ nix-build -A cardano-sl-node-static --out-link master
...
error: while setting up the build environment: getting attributes of path '': No such file or directory

nix_build_master_cadano-sl-node-static.log

Same for 1.0.3:

$ git checkout v1.0.3
HEAD is now at e4b77ed9d Merge pull request #1842 from input-output-hk/gromak/set-cabal-versions-1.0.3
$ git rev-parse HEAD
e4b77ed9d8502a181fb1584b9f48984ba1399598
$ nix-build -A cardano-sl-node-static --out-link v103 &> ./nix_build_v1.0.3_cadano-sl-node-static.log

nix_build_v1.0.3_cadano-sl-node-static.log

@rvl
Copy link
Contributor

rvl commented Feb 27, 2019

Hello @utgarda,

v1.0.3 will never build with Nix 2.x.

I am able to build cardano-sl master with Nix 2.2pre6600_85488a93.

I have not seen that error before, but it looks like someone else has recently: NixOS/nix#2673

Try running nix doctor to see whether it reports any problems.

I notice that you have not configured the IOHK binary cache. Without it, your build will take a really long time. There are instructions here: https://github.com/input-output-hk/cardano-sl/blob/master/docs/nix.md
Enable the IOHK binary cache (and restart nix-daemon) before doing anything else.

@vhulchenko-iohk
Copy link

There has been no feedback on this issue from the requesters for almost a year, so I'm closing it.

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

No branches or pull requests

3 participants