input-output-hk / daedalus

The open source cryptocurrency wallet for ada, built to grow with the community
https://daedaluswallet.io/
Apache License 2.0
1.23k stars 296 forks source link

[macOS(Big Sur)] nix:selfnode Error - file not found: libcache.dylib for architecture x86_64 #2314

Closed JasinYip closed 3 years ago

JasinYip commented 3 years ago

I've tried to run Daedalus on my macbook, when I run yarn nix:selfnode for building I got this Error:

ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

How could I fix this issue?

Environment:

Full logs:

➜ yarn nix:selfnode --show-trace
yarn run v1.22.5
$ NETWORK=selfnode nix-shell --argstr nodeImplementation cardano --argstr cluster selfnode --show-trace
copying path '/nix/store/k4d8zryqnx0k40m6pv9gbylad9qkykja-asn1-types-0.3.4' from 'https://cache.nixos.org'...
copying path '/nix/store/c5yzbqvy28j40wil4h2zaf3gl6lrz12n-temporary-1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/s8akscazxzr47fm06y3alrzwv8ih1qa0-uuid-types-1.0.3' from 'https://cache.nixos.org'...
copying path '/nix/store/47q0rklickd3yw0frkx2bf5hcpsq2xa6-silently-1.2.5.1' from 'https://cache.nixos.org'...
copying path '/nix/store/qjh0gdyf30h3cva361c4qj2llzixg4ga-asn1-encoding-0.9.6' from 'https://cache.nixos.org'...
copying path '/nix/store/drq5016d39bs446yvwxmgcnsvlapr1q4-tasty-golden-2.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/msn5j9z0qa085y77s8lm2xka5glj993y-hspec-core-2.7.1' from 'https://cache.nixos.org'...
copying path '/nix/store/23y1m1fs4gain3gdmpn4vy4fk7zlp90d-uuid-1.3.13' from 'https://cache.nixos.org'...
copying path '/nix/store/rl7cb51v2ks0ysmrvdybmdb1jkw48mpf-asn1-parse-0.9.5' from 'https://cache.nixos.org'...
copying path '/nix/store/p42pf42qpxndsr8xvqflg6b6dpqyh05h-vector-binary-instances-0.2.5.1' from 'https://cache.nixos.org'...
copying path '/nix/store/vdrz4h02ss3ajkwhyja18fqwn3imfm82-hspec-2.7.1' from 'https://cache.nixos.org'...
copying path '/nix/store/h3p7q5kgfhbcjvsf00vjkk8n86b44803-x509-1.7.5' from 'https://cache.nixos.org'...
copying path '/nix/store/yrf0bvymnn61jzkivj402z58qzkvddz7-base-compat-batteries-0.10.5' from 'https://cache.nixos.org'...
copying path '/nix/store/jnkbmgbqf9shwqc5fpay9fnxngbbpggw-base-orphans-0.8.2' from 'https://cache.nixos.org'...
copying path '/nix/store/5js3gkhnyy6xkq3rq7s8b6gcwcqgzkxl-dense-linear-algebra-0.1.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/9dgg8kygd29x25sf3sqw3fwrwbgdf74r-generic-deriving-1.12.4' from 'https://cache.nixos.org'...
copying path '/nix/store/nxfpb85qnk9i1gchqhah14qnksa24akj-logging-facade-0.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/c41cs03ajldb69f71fm6pqlwpx58r4qv-reflection-2.1.5' from 'https://cache.nixos.org'...
copying path '/nix/store/vakhvnzr63sw5i1jq139yj0xpw0sc9kk-distributive-0.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/4b0cssffl1xv8nxafk7mjjb7l6lmxrpp-mockery-0.3.5' from 'https://cache.nixos.org'...
copying path '/nix/store/k3ysn09y3yvnw40cd100w5mc3a1qys38-comonad-5.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/3w3mcpkki5mkxv3wjsks4ihrxgkac8ac-resourcet-1.2.2' from 'https://cache.nixos.org'...
copying path '/nix/store/a879lirwm1wv8nw3xnl69mwych8r0wgk-streaming-commons-0.2.1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/c10d22as0k9w4gq8d1k95c8ixiq58zjh-bifunctors-5.5.7' from 'https://cache.nixos.org'...
copying path '/nix/store/jyw04kvrs8l27gn9z1cv9j0ypry9kq6x-tasty-ant-xml-1.1.6' from 'https://cache.nixos.org'...
copying path '/nix/store/xz532xlwsr7qnwb4myp0mc1hgmq7l4hq-text-metrics-0.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/xi8a9gx5jriyih74nl0srsdvw3qm9clz-profunctors-5.3' from 'https://cache.nixos.org'...
copying path '/nix/store/j60xy0dfkiwwc7yn325qw77xsyqq2rcf-scientific-0.3.6.2' from 'https://cache.nixos.org'...
copying path '/nix/store/1gv70r5imswaimha56pgchlkijx8n2gy-infer-license-0.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/p032174q4jxwjnh4ilvzqlmq3cmrh717-invariant-0.5.3' from 'https://cache.nixos.org'...
copying path '/nix/store/dw2f6704n9020277mc3yiafvrbyn55d1-attoparsec-0.13.2.3' from 'https://cache.nixos.org'...
copying path '/nix/store/45nmb92dl1n6mfr057v2glwfr69sf1bq-semigroupoids-5.3.4' from 'https://cache.nixos.org'...
copying path '/nix/store/xajazvfsqyb43cdbxn7gnv719c1qfl0v-th-orphans-0.13.9' from 'https://cache.nixos.org'...
copying path '/nix/store/83anqlff9lyh6s03d111hc0nr98w1x44-time-compat-1.9.2.2' from 'https://cache.nixos.org'...
copying path '/nix/store/vc9lhhwywbfy1hlw736rvklpk30q2nm5-either-5.0.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/a24mgi5d12gw91n770qkbpp0frx1vsf6-haskell-src-meta-0.8.3' from 'https://cache.nixos.org'...
copying path '/nix/store/djsv53p6cqk2vzkidzh3kgqlskil66pn-aeson-1.4.6.0' from 'https://cache.nixos.org'...
copying path '/nix/store/w671rnlw18i39cavgjjakliy03nkh23x-quickcheck-instances-0.3.22' from 'https://cache.nixos.org'...
copying path '/nix/store/2n85hrh3d6wjyc9cr3a2dai43d3c31sd-rebase-1.3.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/ipqylwg0cq9nr87kc5z1c3zgrzkrqizs-http-types-0.12.3' from 'https://cache.nixos.org'...
copying path '/nix/store/br3zj0zynawsdin9c252hn6j95vx2q4f-criterion-measurement-0.1.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/1mbx6cd23g75mbny7r4hqxknl0qq2ssh-hackage-db-2.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/m5wkxz58sw0d0rlsrj8y9pbymi78jgj3-interpolate-0.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/byzy90jrv9c8ad52s05q6fw160813gic-microstache-1.0.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/n4qx8y0y9nczr1bzz0mis31c7i95fly6-rerebase-1.3.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/171b0jjggk68kxsgahy5yik0f03b9vrv-statistics-0.15.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/7a4dh3r8rbrzbngpr0cpbn76ckmcqr0y-text-short-0.1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/qr9vrkd0dwqfdhhd7zp25vzj24v8vhcr-transformers-base-0.4.5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/7ipfsj4zr6n8kh4jyanscd92pvcsgyyp-cassava-0.5.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/a9p4sd1zsj1696jr07aj8qq7xl6170kg-unliftio-0.2.12' from 'https://cache.nixos.org'...
copying path '/nix/store/bafz816lvdya2appmbj46skvmvdy73mn-free-5.1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/lla09lqhvq4rl28s5fg5y1a8saf6sjfg-vector-builder-0.3.8' from 'https://cache.nixos.org'...
copying path '/nix/store/xcaa57p8vrkxcmrjvhampjylxxdn25sw-criterion-1.5.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/k9ilb8irm8vs519bc9m14lan5qm4lg48-adjunctions-4.4' from 'https://cache.nixos.org'...
copying path '/nix/store/8paihjnnfzma34cnr24i97k0p9xvr7qz-foldl-1.4.6' from 'https://cache.nixos.org'...
copying path '/nix/store/6yhcm36zg0ml231xy96zxww7pqci6ph4-kan-extensions-5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/k33gvkfgpzi82a2s8ryc2lrdff61s4wx-mono-traversable-1.0.15.1' from 'https://cache.nixos.org'...
copying path '/nix/store/f3j1wxqwss9lzdcyj4bhdg0jyaqqpy05-network-uri-2.6.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/dvzqqjiy5mg5hvsphp3b7gas8h1drlna-lens-4.17.1' from 'https://cache.nixos.org'...
copying path '/nix/store/i76j4jngh4x75zxnhjzylp47h799n7v0-http-client-0.6.4' from 'https://cache.nixos.org'...
copying path '/nix/store/j0c1r8lhlj1sj3405k5wvfi1cmf17syg-conduit-1.3.1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/2dwaapy9v7vp8l9ym02h3mdb17z28r75-x509-store-1.6.7' from 'https://cache.nixos.org'...
copying path '/nix/store/x71nryc9pfwxnkwvy3jsfmxkrw8r82si-language-nix-2.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/5p1fqwhq887304f8chcjcghqdnnii6ad-libyaml-0.1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/xamg08j6zlkfq4z1mdvzas7r5v2jlazi-x509-system-1.6.6' from 'https://cache.nixos.org'...
copying path '/nix/store/r0lh51g7vs0cfkmvnx4mhxkzrdhk2azj-distribution-nixpkgs-1.3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/n3abibyjyk50svcn9i9al7w8rjrb9iyk-x509-validation-1.6.11' from 'https://cache.nixos.org'...
copying path '/nix/store/5ai5fndkfkrc67svlbf0vbkyln0254a8-yaml-0.11.2.0' from 'https://cache.nixos.org'...
building '/nix/store/h1cngpsl9mrdx7m8bn7ra54wsczci558-python2.7-pynacl-1.3.0.drv'...
copying path '/nix/store/0s97ncj0p6x60f359i2h2vbxakqpfxhq-tls-1.4.1' from 'https://cache.nixos.org'...
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing setuptools-check-hook
unpacking sources
unpacking source archive /nix/store/flyy0dcfzhn0vmljyn4mqj2dbcx960wy-PyNaCl-1.3.0.tar.gz
source root is PyNaCl-1.3.0
setting SOURCE_DATE_EPOCH to timestamp 1537988300 of file PyNaCl-1.3.0/src/PyNaCl.egg-info/top_level.txt
patching sources
configuring
fixing libtool script ./src/libsodium/build-aux/ltmain.sh
fixing libtool script ./src/libsodium/ltmain.sh
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.12-x86_64-2.7
creating build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/signing.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/public.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/encoding.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/hashlib.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/hash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/secret.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/utils.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/exceptions.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
creating build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/argon2i.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/scrypt.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/_argon2.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/argon2id.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying path '/nix/store/m7wha14d0sj532bjj2dagy3il9s8z70n-connection-0.3.1' from 'https://cache.nixos.org'...
creating build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_hash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_generichash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/sodium_core.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/randombytes.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_kx.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_sign.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_secretstream.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_aead.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/utils.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_box.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_secretbox.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_pwhash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_shorthash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
running build_ext
generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_sodium.c'
creating build/temp.macosx-10.12-x86_64-2.7
building '_sodium' extension
creating build/temp.macosx-10.12-x86_64-2.7/build
creating build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7
clang -I/nix/store/lv63r48x1byympm31d5ix3yha3virk41-python-2.7.18/include/python2.7 -c build/temp.macosx-10.12-x86_64-2.7/_sodium.c -o build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7/_sodium.o
copying path '/nix/store/6q8nhmhs6ig99la1pkynalsz7krp7b89-http-client-tls-0.3.5.3' from 'https://cache.nixos.org'...
copying path '/nix/store/vfmgz1jyhpvwffjhwwy6r6hhsp7lkz5m-hpack-0.33.0' from 'https://cache.nixos.org'...
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7/_sodium.o -L/nix/store/lv63r48x1byympm31d5ix3yha3virk41-python-2.7.18/lib -lsodium -o build/lib.macosx-10.12-x86_64-2.7/nacl/_sodium.so
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
builder for '/nix/store/h1cngpsl9mrdx7m8bn7ra54wsczci558-python2.7-pynacl-1.3.0.drv' failed with exit code 1
cannot build derivation '/nix/store/b18qchm2lidv5c1ys37l0gvrickxa3qr-python2.7-paramiko-2.7.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xgnpvwpqsa7nxni832lpf74jprj26k8g-bazaar-2.7.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/dllqhsjaa5810182q7136kn2z2iw2i3s-nix-prefetch-bzr.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hnmj84z9m9jjvkrq1yn8v9kp6z8mnqc4-nix-prefetch-scripts.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a4gs16y7l5kh6yzd1zil0cz3a85bllb3-cabal2nix-2.15.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/njhzpn5v6d6yafdhbnf7grs0kazvadia-cabal2nix-iohk-nix-utils.drv': 1 dependencies couldn't be built
error: while evaluating the attribute 'buildInputs' of the derivation 'daedalus' at /Users/jasinyip/prj/daedalus/shell.nix:82:5:
while evaluating the attribute 'buildCommand' of the derivation 'daedalus-cardano-bridge' at /nix/store/r2jld2inwiljdq8c6klzbsa1kyi2rcr0-nixpkgs-src/pkgs/build-support/trivial-builders.nix:7:7:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'cardano-wallet-2021.1.12' at /nix/store/cm66qm0b0yy4c1cny8j56mapqyvyvl9w-cardano-wallet-src/nix/package-cardano-node.nix:19:3:
while evaluating 'getOutput' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/lib/attrsets.nix:464:23, called from undefined position:
while evaluating anonymous function at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/stdenv/generic/make-derivation.nix:133:17, called from undefined position:
while evaluating the attribute 'package' at /nix/store/ksvd3hjglhqm5s22d2z5cyainsk5kjan-iohk-nix-src/overlays/haskell-nix-extra/utils/default.nix:8:3:
while evaluating 'callCabal2nix' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:216:32, called from /nix/store/ksvd3hjglhqm5s22d2z5cyainsk5kjan-iohk-nix-src/overlays/haskell-nix-extra/utils/default.nix:8:13:
while evaluating 'callCabal2nixWithOptions' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:201:66, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:216:38:
while evaluating 'overrideCabal' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/lib.nix:37:24, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:212:10:
while evaluating 'callPackageKeepDeriver' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:157:33, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:212:25:
while evaluating 'overrideCabal' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/lib.nix:37:24, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:158:5:
while evaluating 'callPackage' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:114:22, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:158:20:
while evaluating 'callPackageWithScope' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:74:37, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:114:28:
while evaluating 'makeOverridable' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/lib/customisation.nix:67:24, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:97:8:
while evaluating 'drvScope' at /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/pkgs/development/haskell-modules/make-package-set.nix:87:18, called from /nix/store/3j1cqs0c9nr0d44h008pw0zafmzvjrbs-nixpkgs-src/lib/customisation.nix:69:16:
build of '/nix/store/njhzpn5v6d6yafdhbnf7grs0kazvadia-cabal2nix-iohk-nix-utils.drv' failed
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nikolaglumac commented 3 years ago

@JasinYip the selfnode setup is currently broken. Still, this error you are getting will most likely impact all other clusters. Can you try running yarn nix:testnet on the most recent develop branch revision?

JasinYip commented 3 years ago

Running yarn nix:testnet showed

clang-7: error: linker command failed with exit code 1

last commit:

commit 092b42b2ea2e0f0b371634da5edd34b4dc693178 (HEAD -> develop, origin/develop, origin/HEAD)
Merge: c79b6776c 6fcec5468
Author: Dominik Guzei <dominik.guzei@gmail.com>
Date:   Mon Jan 25 12:35:02 2021 +0100

    Merge pull request #2305 from input-output-hk/feature/ddw-543-update-bignumber-library

    [DDW-543] Update bignumber.js from v5 to v9

Full log:

➜ yarn nix:testnet
yarn run v1.22.5
$ NETWORK=testnet nix-shell --argstr nodeImplementation cardano --argstr cluster testnet
building '/nix/store/h1cngpsl9mrdx7m8bn7ra54wsczci558-python2.7-pynacl-1.3.0.drv'...
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing setuptools-check-hook
unpacking sources
unpacking source archive /nix/store/flyy0dcfzhn0vmljyn4mqj2dbcx960wy-PyNaCl-1.3.0.tar.gz
source root is PyNaCl-1.3.0
setting SOURCE_DATE_EPOCH to timestamp 1537988300 of file PyNaCl-1.3.0/src/PyNaCl.egg-info/top_level.txt
patching sources
configuring
fixing libtool script ./src/libsodium/build-aux/ltmain.sh
fixing libtool script ./src/libsodium/ltmain.sh
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.12-x86_64-2.7
creating build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/signing.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/public.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/encoding.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/hashlib.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/hash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/secret.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/utils.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
copying src/nacl/exceptions.py -> build/lib.macosx-10.12-x86_64-2.7/nacl
creating build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/argon2i.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/scrypt.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/_argon2.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
copying src/nacl/pwhash/argon2id.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/pwhash
creating build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_hash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_generichash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/sodium_core.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/randombytes.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_kx.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_sign.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_secretstream.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_aead.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/utils.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_box.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_secretbox.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_pwhash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
copying src/nacl/bindings/crypto_shorthash.py -> build/lib.macosx-10.12-x86_64-2.7/nacl/bindings
running build_ext
generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_sodium.c'
creating build/temp.macosx-10.12-x86_64-2.7
building '_sodium' extension
creating build/temp.macosx-10.12-x86_64-2.7/build
creating build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7
clang -I/nix/store/lv63r48x1byympm31d5ix3yha3virk41-python-2.7.18/include/python2.7 -c build/temp.macosx-10.12-x86_64-2.7/_sodium.c -o build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7/_sodium.o
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7/_sodium.o -L/nix/store/lv63r48x1byympm31d5ix3yha3virk41-python-2.7.18/lib -lsodium -o build/lib.macosx-10.12-x86_64-2.7/nacl/_sodium.so
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
builder for '/nix/store/h1cngpsl9mrdx7m8bn7ra54wsczci558-python2.7-pynacl-1.3.0.drv' failed with exit code 1
cannot build derivation '/nix/store/b18qchm2lidv5c1ys37l0gvrickxa3qr-python2.7-paramiko-2.7.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xgnpvwpqsa7nxni832lpf74jprj26k8g-bazaar-2.7.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/dllqhsjaa5810182q7136kn2z2iw2i3s-nix-prefetch-bzr.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hnmj84z9m9jjvkrq1yn8v9kp6z8mnqc4-nix-prefetch-scripts.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a4gs16y7l5kh6yzd1zil0cz3a85bllb3-cabal2nix-2.15.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/njhzpn5v6d6yafdhbnf7grs0kazvadia-cabal2nix-iohk-nix-utils.drv': 1 dependencies couldn't be built
error: build of '/nix/store/njhzpn5v6d6yafdhbnf7grs0kazvadia-cabal2nix-iohk-nix-utils.drv' failed
(use '--show-trace' to show detailed location information)
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nikolaglumac commented 3 years ago

Thanks! We'll look into this!

nikolaglumac commented 3 years ago

@JasinYip may I kindly ask you to try running the latest Daedalus develop branch? Please use yarn nix:testnet command and let us know if it works 🙏 Thanks!

JasinYip commented 3 years ago

@nikolaglumac It works! Thank you for fixing this :)