makerdao / dss-deploy-scripts

GNU Affero General Public License v3.0
49 stars 59 forks source link

`nix-shell --pure` build failure at `ethsign-0.16.0.drv` #114

Open ziyincody opened 2 years ago

ziyincody commented 2 years ago

Hi Maker team, I'm trying to build the deploy script but it always fails at building ethsign-0.16.0. However on my machine it's able to run ethsign 0.16.1 with no problem. I wonder if anyone can help take a look at this? Here are the logs:

  /nix/store/s3w8s6f9rk59cs1z7gqb8d51kzg1s2rd-utillinux-1003.1-2008.drv
  /nix/store/mnnfkggvnrqn05c907vmdl0j5jsjxjvz-dapp2nix-2.1.7.drv
building '/nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv'...
unpacking sources
unpacking source archive /nix/store/a2j0995a4zpn888i4lx9yrd11k98i1r1-ethsign
source root is ethsign
patching sources
configuring
building
Building subPackage .
go: downloading github.com/ethereum/go-ethereum v1.9.10
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading gopkg.in/urfave/cli.v1 v1.20.0
go: downloading golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7
go: downloading github.com/golang/protobuf v1.3.2-0.20190517061210-b285ee9cfc6c
go: downloading github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222
go: downloading github.com/rjeczalik/notify v0.9.1
go: downloading github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356
go: downloading github.com/go-stack/stack v1.8.0
go: downloading github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570
go: downloading github.com/VictoriaMetrics/fastcache v1.5.3
go: downloading github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847
go: downloading github.com/elastic/gosigar v0.8.1-0.20180330100440-37f05ff46ffa
go: downloading github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea
go: downloading github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
github.com/ethereum/go-ethereum/common/hexutil
golang.org/x/crypto/sha3
github.com/ethereum/go-ethereum/common
github.com/ethereum/go-ethereum/common/math
runtime/cgo
# runtime/cgo
ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
github.com/ethereum/go-ethereum/rlp
github.com/cespare/xxhash/v2
github.com/golang/snappy
github.com/VictoriaMetrics/fastcache
github.com/aristanetworks/goarista/monotime
github.com/ethereum/go-ethereum/common/mclock
github.com/ethereum/go-ethereum/common/prque
github.com/ethereum/go-ethereum/ethdb
github.com/go-stack/stack
golang.org/x/sys/unix
github.com/steakknife/hamming
github.com/steakknife/bloomfilter
github.com/ethereum/go-ethereum/event
github.com/deckarep/golang-set
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/scrypt
github.com/golang/protobuf/proto
github.com/golang/protobuf/protoc-gen-go/descriptor
github.com/ethereum/go-ethereum/accounts/usbwallet/trezor
golang.org/x/crypto/ssh/terminal
gopkg.in/urfave/cli.v1
error: builder for '/nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv' failed with exit code 1;
       last 10 log lines:
       > github.com/steakknife/bloomfilter
       > github.com/ethereum/go-ethereum/event
       > github.com/deckarep/golang-set
       > golang.org/x/crypto/pbkdf2
       > golang.org/x/crypto/scrypt
       > github.com/golang/protobuf/proto
       > github.com/golang/protobuf/protoc-gen-go/descriptor
       > github.com/ethereum/go-ethereum/accounts/usbwallet/trezor
       > golang.org/x/crypto/ssh/terminal
       > gopkg.in/urfave/cli.v1
       For full logs, run 'nix log /nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv'.
error: build of '/nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv', '/nix/store/ja6hi5qj3cbbvbwr92f37x504bmpy9yr-seth-0.9.4.drv', '/nix/store/jidx2wr3c1g9k53dc9avyhlxv0vp928v-dapp-0.31.1.drv', '/nix/store/la4r8a3wjyjjczzjcndfajbbm2j6j961-dss-deploy-scripts.drv', '/nix/store/mnnfkggvnrqn05c907vmdl0j5jsjxjvz-dapp2nix-2.1.7.drv', '/nix/store/pi1hdlwcr9wp4bna4j39fhm3vaw4ysld-solc-0.6.7.drv' failed
ziyincody commented 2 years ago

I also tried with updating makerpkg to the latest SHA, but it fails with error

error: attribute 'dapp2' missing

       at /nix/store/9mvggi800d8mh9vz5lxfgsw8j6iswm6z-source/overlay.nix:27:49:

           26|
           27|   makerpkgs = { dapptoolsOverrides ? {} }: rec {
             |                                                 ^
           28|     inherit dappSources dappPkgsVersions dappPkgs solc-static-versions;

       … while evaluating the attribute 'test-hevm'

       at /Users/codywang/src/dss-deploy-scripts/dapp2.nix:14:5:

           13|     inherit solc;
           14|     test-hevm = dapp2.test-hevm;
             |     ^
           15|     doCheck = true;

       … while evaluating 'optional'

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/lib/lists.nix:254:20:

          253|   */
          254|   optional = cond: elem: if cond then [elem] else [];
             |                    ^
          255|

       … from call site

       at /nix/store/06dc2jk39q8sklg06fsq339mdblcd5vf-dapptools-hevm-0_49_0/nix/solidity-package.nix:32:15:

           31|         buildInputs = [ solc pkgs.jq ]
           32|           ++ (pkgs.lib.optional (test-hevm != null) test-hevm)
             |               ^
           33|           ++ pkgs.lib.optional flatten hevm;

       … while evaluating 'chooseDevOutputs'

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/lib/attrsets.nix:497:22:

          496|   /* Pick the outputs of packages to place in buildInputs */
          497|   chooseDevOutputs = drvs: builtins.map getDev drvs;
             |                      ^
          498|

       … from call site

       … while evaluating anonymous lambda

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/pkgs/stdenv/generic/make-derivation.nix:184:36:

          183|       computedImpureHostDeps =
          184|         lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or [])
             |                                    ^
          185|           (stdenv.extraNativeBuildInputs

       … from call site

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/pkgs/stdenv/generic/make-derivation.nix:184:21:

          183|       computedImpureHostDeps =
          184|         lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or [])
             |                     ^
          185|           (stdenv.extraNativeBuildInputs

       … while evaluating the attribute '__impureHostDeps' of the derivation 'ds-test'

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/pkgs/stdenv/generic/make-derivation.nix:201:11:

          200|         // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          201|           name =
             |           ^
          202|             let

       … while evaluating the attribute 'ds-test'

       at /nix/store/06dc2jk39q8sklg06fsq339mdblcd5vf-dapptools-hevm-0_49_0/nix/solidity-package.nix:14:11:

           13|         (x: {
           14|           "${x.name}" = "${x}/dapp/${x.name}";
             |           ^
           15|          } // x.libPaths)

       … while evaluating anonymous lambda

       at /nix/store/06dc2jk39q8sklg06fsq339mdblcd5vf-dapptools-hevm-0_49_0/nix/solidity-package.nix:46:17:

           45|           pkgs.lib.mapAttrsToList
           46|             (k: v: ''
             |                 ^
           47|               ln -s ${v} lib/${k}

       … from call site

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/lib/attrsets.nix:256:16:

          255|   mapAttrsToList = f: attrs:
          256|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
          257|

       … while evaluating anonymous lambda

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/lib/attrsets.nix:256:10:

          255|   mapAttrsToList = f: attrs:
          256|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
          257|

       … from call site

       … while evaluating the attribute 'LIBSCRIPT' of the derivation 'clipper-mom-optimized'

       at /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/pkgs/stdenv/generic/make-derivation.nix:201:11:

          200|         // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          201|           name =
             |           ^
          202|             let

       … while evaluating the attribute 'paths' of the derivation 'dss-deploy-scripts-solidity-packages'

       at /nix/store/c004bpx8xwylaggb5ga87dy6qkjlk9j7-nixpkgs-src/pkgs/build-support/trivial-builders.nix:7:14:

            6|     stdenv.mkDerivation ({
            7|       inherit name buildCommand;
             |              ^
            8|       passAsFile = [ "buildCommand" ];

       … while evaluating the attribute 'DAPP_LIB' of the derivation 'dss-deploy-scripts'

       at /Users/codywang/src/dss-deploy-scripts/default.nix:59:3:

           58| in makerScriptPackage {
           59|   name = "dss-deploy-scripts";
             |   ^
           60|

       … while evaluating the attribute 'buildInputs' of the derivation 'nix-shell'

       at /nix/store/c004bpx8xwylaggb5ga87dy6qkjlk9j7-nixpkgs-src/pkgs/build-support/mkshell/default.nix:28:3:

           27| stdenv.mkDerivation ({
           28|   name = "nix-shell";
             |   ^
           29|   phases = ["nobuildPhase"];
piesrtasty commented 1 year ago

Hi Maker team, I'm trying to build the deploy script but it always fails at building ethsign-0.16.0. However on my machine it's able to run ethsign 0.16.1 with no problem. I wonder if anyone can help take a look at this? Here are the logs:

  /nix/store/s3w8s6f9rk59cs1z7gqb8d51kzg1s2rd-utillinux-1003.1-2008.drv
  /nix/store/mnnfkggvnrqn05c907vmdl0j5jsjxjvz-dapp2nix-2.1.7.drv
building '/nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv'...
unpacking sources
unpacking source archive /nix/store/a2j0995a4zpn888i4lx9yrd11k98i1r1-ethsign
source root is ethsign
patching sources
configuring
building
Building subPackage .
go: downloading github.com/ethereum/go-ethereum v1.9.10
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading gopkg.in/urfave/cli.v1 v1.20.0
go: downloading golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7
go: downloading github.com/golang/protobuf v1.3.2-0.20190517061210-b285ee9cfc6c
go: downloading github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222
go: downloading github.com/rjeczalik/notify v0.9.1
go: downloading github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356
go: downloading github.com/go-stack/stack v1.8.0
go: downloading github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570
go: downloading github.com/VictoriaMetrics/fastcache v1.5.3
go: downloading github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847
go: downloading github.com/elastic/gosigar v0.8.1-0.20180330100440-37f05ff46ffa
go: downloading github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea
go: downloading github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
github.com/ethereum/go-ethereum/common/hexutil
golang.org/x/crypto/sha3
github.com/ethereum/go-ethereum/common
github.com/ethereum/go-ethereum/common/math
runtime/cgo
# runtime/cgo
ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
github.com/ethereum/go-ethereum/rlp
github.com/cespare/xxhash/v2
github.com/golang/snappy
github.com/VictoriaMetrics/fastcache
github.com/aristanetworks/goarista/monotime
github.com/ethereum/go-ethereum/common/mclock
github.com/ethereum/go-ethereum/common/prque
github.com/ethereum/go-ethereum/ethdb
github.com/go-stack/stack
golang.org/x/sys/unix
github.com/steakknife/hamming
github.com/steakknife/bloomfilter
github.com/ethereum/go-ethereum/event
github.com/deckarep/golang-set
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/scrypt
github.com/golang/protobuf/proto
github.com/golang/protobuf/protoc-gen-go/descriptor
github.com/ethereum/go-ethereum/accounts/usbwallet/trezor
golang.org/x/crypto/ssh/terminal
gopkg.in/urfave/cli.v1
error: builder for '/nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv' failed with exit code 1;
       last 10 log lines:
       > github.com/steakknife/bloomfilter
       > github.com/ethereum/go-ethereum/event
       > github.com/deckarep/golang-set
       > golang.org/x/crypto/pbkdf2
       > golang.org/x/crypto/scrypt
       > github.com/golang/protobuf/proto
       > github.com/golang/protobuf/protoc-gen-go/descriptor
       > github.com/ethereum/go-ethereum/accounts/usbwallet/trezor
       > golang.org/x/crypto/ssh/terminal
       > gopkg.in/urfave/cli.v1
       For full logs, run 'nix log /nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv'.
error: build of '/nix/store/8nncdc6i3hav5i13lnqs1ydim0za0j41-ethsign-0.16.0.drv', '/nix/store/ja6hi5qj3cbbvbwr92f37x504bmpy9yr-seth-0.9.4.drv', '/nix/store/jidx2wr3c1g9k53dc9avyhlxv0vp928v-dapp-0.31.1.drv', '/nix/store/la4r8a3wjyjjczzjcndfajbbm2j6j961-dss-deploy-scripts.drv', '/nix/store/mnnfkggvnrqn05c907vmdl0j5jsjxjvz-dapp2nix-2.1.7.drv', '/nix/store/pi1hdlwcr9wp4bna4j39fhm3vaw4ysld-solc-0.6.7.drv' failed

Did you resolve this? I am running into it as well.