NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.01k stars 1.47k forks source link

nix-shell error M1 mac - BugSur #5926

Open ysfkel opened 2 years ago

ysfkel commented 2 years ago

Got the below error while running "nix-shell --option system x84_64-darwin" on Mac bigSur M1

--prefix=/nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1 exe:cardano-cli --package-db=clear --package-db=/nix/store/v7clycx0dbkzgznqvii0c866sspqx7p2-cardano-cli-exe-cardano-cli-1.32.1-config/lib/ghc-8.10.5/package.conf.d --flags=-unexpected_thunks --exact-configuration --dependency=cardano-cli=cardano-cli-1.32.1-J4yq6DIOZBcK6Tz0nj2tI9 --dependency=cardano-crypto-class=cardano-crypto-class-2.0.0-ADQh9O30GEZ71x9nsmBaLi --dependency=cardano-prelude=cardano-prelude-0.1.0.0-D5kpjiandd236P1dzzKIGv --dependency=optparse-applicative-fork=optparse-applicative-fork-0.16.1.0-2gcUdp1WICPInVJWsXMN4v --dependency=transformers-except=transformers-except-0.1.2-16nNO0V6NPRGTKZRa913S4 --dependency=rts=rts --dependency=ghc-heap=ghc-heap-8.10.5 --dependency=ghc-prim=ghc-prim-0.6.1 --dependency=integer-gmp=integer-gmp-1.0.3.0 --dependency=base=base-4.14.2.0 --dependency=deepseq=deepseq-1.4.4.0 --dependency=array=array-0.5.4.0 --dependency=ghc-boot-th=ghc-boot-th-8.10.5 --dependency=pretty=pretty-1.1.3.6 --dependency=template-haskell=template-haskell-2.16.0.0 --dependency=ghc-boot=ghc-boot-8.10.5 --dependency=ghc=ghc-8.10.5 --dependency=Cabal=Cabal-3.2.1.0 --dependency=array=array-0.5.4.0 --dependency=binary=binary-0.8.8.0 --dependency=bytestring=bytestring-0.10.12.0 --dependency=containers=containers-0.6.4.1 --dependency=directory=directory-1.3.6.0 --dependency=filepath=filepath-1.4.2.1 --dependency=ghc-boot=ghc-boot-8.10.5 --dependency=ghc-compact=ghc-compact-0.1.0.0 --dependency=ghc-prim=ghc-prim-0.6.1 --dependency=hpc=hpc-0.6.1.0 --dependency=mtl=mtl-2.2.2 --dependency=parsec=parsec-3.1.14.0 --dependency=process=process-1.6.9.0 --dependency=text=text-1.2.4.1 --dependency=time=time-1.9.3 --dependency=transformers=transformers-0.5.6.2 --dependency=unix=unix-2.7.2.2 --dependency=xhtml=xhtml-3000.2.2.1 --dependency=terminfo=terminfo-0.4.1.4 --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ld=ld --with-ar=ar --with-strip=strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-executable-profiling --enable-static --enable-shared --disable-coverage --enable-library-for-ghci --ghc-option=-Werror Configuring executable 'cardano-cli' for cardano-cli-1.32.1.. Warning: The flag --disable-executable-profiling is deprecated. Please use --disable-profiling instead. Warning: The package has an extraneous version range for a dependency on an internal library: cardano-cli -any && ==1.32.1, cardano-cli -any && ==1.32.1, cardano-cli -any && ==1.32.1. This version range includes the current package but isn't needed as the current package's library will always be used. Warning: 'hs-source-dirs: src' directory does not exist. Warning: 'hs-source-dirs: test' directory does not exist. Warning: 'hs-source-dirs: test' directory does not exist. building Preprocessing executable 'cardano-cli' for cardano-cli-1.32.1.. Building executable 'cardano-cli' for cardano-cli-1.32.1.. [1 of 1] Compiling Main ( app/cardano-cli.hs, dist/build/cardano-cli/cardano-cli-tmp/Main.o ) Linking dist/build/cardano-cli/cardano-cli ... installing Installing executable cardano-cli in /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin Warning: The directory /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin is not in the system search path. Setting gitrev of /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin/cardano-cli ... OK "Bundling /nix/store/vv3k4s0gzkvdbirq5iiah15w920z6aql-zlib-1.2.11/lib/libz.dylib in /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin/cardano-cli" error: getting status of /nix/var/nix/daemon-socket/socket: Operation not permitted rewrite-libs: ProcFailed {procCommand = "nix-store", procArguments = ["-r","/nix/store/vv3k4s0gzkvdbirq5iiah15w920z6aql-zlib-1.2.11/lib/libz.dylib"], procExitCode = ExitFailure 1} error: builder for '/nix/store/z0i1gyl2blzxp2naan6wq3dib60r818r-cardano-cli-exe-cardano-cli-1.32.1.drv' failed with exit code 1; last 10 log lines:

Linking dist/build/cardano-cli/cardano-cli ... installing Installing executable cardano-cli in /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin Warning: The directory /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin is not in the system search path. Setting gitrev of /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin/cardano-cli ... OK "Bundling /nix/store/vv3k4s0gzkvdbirq5iiah15w920z6aql-zlib-1.2.11/lib/libz.dylib in /nix/store/qxzkl3pvmj1agri8a4k6awd4gsd61in2-cardano-cli-exe-cardano-cli-1.32.1/bin/cardano-cli" error: getting status of /nix/var/nix/daemon-socket/socket: Operation not permitted rewrite-libs: ProcFailed {procCommand = "nix-store", procArguments = ["-r","/nix/store/vv3k4s0gzkvdbirq5iiah15w920z6aql-zlib-1.2.11/lib/libz.dylib"], procExitCode = ExitFailure 1} For full logs, run 'nix log /nix/store/z0i1gyl2blzxp2naan6wq3dib60r818r-cardano-cli-exe-cardano-cli-1.32.1.drv'. error: build of '/nix/store/3rqhwzfn9y3idvmg0cznq87x486zg8r3-pab-nami-demo-server.drv', '/nix/store/87iqpvg6d4bizsgrzg35k8rc5m1x64ch-cardano-node-exe-cardano-node-1.32.1.drv', '/nix/store/anmrbbdiymirc2npqkcnmf3ih3f06jkn-updateMaterialized.drv', '/nix/store/h4xywd2yqdgm4qf7ignnaw7llspwwvhs-plutus-playground-generate-purs.drv', '/nix/store/iy2ydl39a7icviwcl66214933hxzh3jd-pre-commit-config.json.drv', '/nix/store/spc349lqq5mx4j9fwzfpywqzbjxbqgj9-update-client-deps.drv', '/nix/store/wpz2b0xzw3fi84knb9ldnfp7q5175qhi-plutus-playground-server.drv', '/nix/store/z0i1gyl2blzxp2naan6wq3dib60r818r-cardano-cli-exe-cardano-cli-1.32.1.drv', '/nix/store/z6xqdvz6grjpxdkkp3k2g47zyd2hw8hq-python3-3.9.6-env.drv' failed myuser@user-MBP-3 plutus-apps %

MRyderOC commented 2 years ago

Same here with Intel chip:

error: getting status of /nix/var/nix/daemon-socket/socket: Operation not permitted rewrite-libs: ProcFailed {procCommand = "nix-store", procArguments = ["-r","/nix/store/vv3k4s0gzkvdbirq5iiah15w920z6aql-zlib-1.2.11/lib/libz.dylib"], procExitCode = ExitFailure 1} error: builder for '/nix/store/z0i1gyl2blzxp2naan6wq3dib60r818r-cardano-cli-exe-cardano-cli-1.32.1.drv' failed with exit code 1 error: build of '/nix/store/87iqpvg6d4bizsgrzg35k8rc5m1x64ch-cardano-node-exe-cardano-node-1.32.1.drv', '/nix/store/anmrbbdiymirc2npqkcnmf3ih3f06jkn-updateMaterialized.drv', '/nix/store/iy2ydl39a7icviwcl66214933hxzh3jd-pre-commit-config.json.drv', '/nix/store/spc349lqq5mx4j9fwzfpywqzbjxbqgj9-update-client-deps.drv', '/nix/store/z0i1gyl2blzxp2naan6wq3dib60r818r-cardano-cli-exe-cardano-cli-1.32.1.drv', '/nix/store/z6xqdvz6grjpxdkkp3k2g47zyd2hw8hq-python3-3.9.6-env.drv' failed