holochain-open-dev / templates

Templates to build modules and apps in the holochain-open-dev style
14 stars 2 forks source link

Entering nix shell from newly created app fails under macOS #9

Open jost-s opened 7 months ago

jost-s commented 7 months ago

Followed the steps to create a new app, then entered nix develop and got the following error:

$ nix develop
warning: Git tree '/Users/jost/Desktop/holochain/scaffolded-tryorama/peter' is dirty
error: builder for '/nix/store/62jybraay8jbgmz102fsh8xp5bzxxk95-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv' failed with exit code 101;
       last 10 log lines:
       > error: could not compile `test-fuzz-macro` (lib) due to 1 previous error
       > warning: build failed, waiting for other jobs to finish...
       > error: linking with `cc` failed: exit status: 1
       >   |
       >   = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/bin:/nix/store/6xn6wyva2l8srk5r6vwibdixqrvajil2-perl-5.38.2/bin:/nix/store/la56pzwm47qdrnf0yhar2svxslg7bn6k-pkg-config-wrapper-0.29.2/bin:/nix/store/pi4myqk3ssdk2lp6z05h3yywknlr07i5-go-1.22.1/bin:/nix/store/f5hn9yxcpxgkwsav24q5pvzin4wwk5ar-xcodebuild-0.1.2-pre/bin:/nix/store/g9f9yb5lhlr3flzl5423qhav8f71jlvg-Toolchains/XcodeDefault.xctoolchain/bin:/nix/store/0qgy7l673rlmpjsbjr6b6vachshb68pb-libiconv-50/bin:/nix/store/70xn0bcmpkrjqblin5l6ccj1mig49372-cargo-1.76.0/bin:/nix/store/cda43jc1lg9n5m8sldrajdsqva09kmrc-rsync-3.2.7/bin:/nix/store/p6b3wncvxaz2ja4facmwrlqcgzqj5wmq-zstd-1.5.5-bin/bin:/nix/store/2gbsc7gz36ag51si258hxkbxsv884ix4-zstd-1.5.5/bin:/nix/store/s7lwib0lr80bqq0k43vd1ihr63yc6yql-clang-wrapper-16.0.6/bin:/nix/store/ww7lviar1xyd5az6y763yp5wigvwn3m8-clang-16.0.6/bin:/nix/store/x07qawlqzqac7mz7cq0k8q9fks6bkpgc-coreutils-9.4/bin:/nix/store/qz21f7s43wbs4g3xz4f2lhwqnkahja0v-cctools-binutils-darwin-wrapper-16.0.6-973.0.1/bin:/nix/store/jg7372g913h1r8d2jvi7fpbjim8ws0wq-cctools-binutils-darwin-16.0.6-973.0.1/bin:/nix/store/x07qawlqzqac7mz7cq0k8q9fks6bkpgc-coreutils-9.4/bin:/nix/store/a6svx1a2mxil699812p3rpzi18p9zjwg-findutils-4.9.0/bin:/nix/store/j9wgjc9cydqihgkma0ss3g068r9q16x8-diffutils-3.10/bin:/nix/store/pbgsjg2pqpqlik3pvfdrnwn5k362bwi2-gnused-4.9/bin:/nix/store/3xmkcbz15975z0q1nfk45whf95x3fw4w-gnugrep-3.11/bin:/nix/store/w5sfbsjxf3hhkwajqyq62n2mng58ap99-gawk-5.2.2/bin:/nix/store/79jzfdixb8jvl7791y90f8r2ywbk4snq-gnutar-1.35/bin:/nix/store/zwkrys0d42rz7mapym3q43q3j5xx7q00-gzip-1.13/bin:/nix/store/c2k1zn42616gmd0ychchkwrbxybgwdrg-bzip2-1.0.8-bin/bin:/nix/store/b8fn7032mmzhyzw4ykbjwd0qfwxwr2ds-gnumake-4.4.1/bin:/nix/store/crs76r1gifq0ay48v4kvws42fc59gmx5-bash-5.2p26/bin:/nix/store/v7jfrx1adr5c8mr45iw2y623axjac00g-patch-2.7.6/bin:/nix/store/4ii5r8v349adjnmw1ldvp1xd2c33ff87-xz-5.4.6-bin/bin:/nix/store/yzac7wx4aa5wn936w9inbjq7804ckrcb-file-5.45/bin:/nix/store/s8jz0jr2flpmw5ypxjfk42gqbqd53w93-rustc-wrapper-1.76.0/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/rustcBRbswW/symbols.o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a.build_script_build.b6fb40956736769f-cgu.0.rcgu.o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a.build_script_build.b6fb40956736769f-cgu.1.rcgu.o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a.build_script_build.b6fb40956736769f-cgu.2.rcgu.o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a.build_script_build.b6fb40956736769f-cgu.3.rcgu.o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a.build_script_build.b6fb40956736769f-cgu.4.rcgu.o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a.2zoibqqfrq4qfmsl.rcgu.o" "-L" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps" "-L" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libtar-290ea07ee86e46ec.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libxattr-c752f5604457adf2.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/librustix-efb0af50110dd51e.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libbitflags-8fef63bb63086b01.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/liberrno-7cf30978a38d094d.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libfiletime-efc7d5fb9348ce3c.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/liblibc-1600475199c6ab0a.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libpkg_config-297890721006478e.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libminisign_verify-46281e19f2e01412.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/liblibflate-d742f3a0fb640495.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libcrc32fast-6a148be33aaf240a.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libcfg_if-0aa7a72ec47a4614.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libdary_heap-96c7d60dbe7ba6f9.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libadler32-f7a4e51deb292f81.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/liblibflate_lz77-ae55efd9e5982cf4.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/librle_decode_fast-a79c7339c16541ec.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libcore2-e47c15dec952bb98.rlib" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/deps/libcc-9e9e6146d7458507.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libstd-6028e45e9a024429.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-71a7061a148dac09.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libobject-f8df57dadcce1af2.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-e6d1ce0e530e78dd.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-d3801ae106a39452.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libgimli-e995dccbe46e4fc4.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6207df48edf2fcb0.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-a4856153b2f20324.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-0fd4f766b1c38ff2.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-a6eb3291996ea2f5.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-b0f2c598fdae5ecd.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libadler-72fba4ae63735ea8.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6bc43616d5144f3a.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-9d383a1b9a6f4df0.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/liblibc-364a2950fc5ceedd.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/liballoc-e1691210a145868b.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-320279287cfd687e.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libcore-5a5ae12102ad5fd1.rlib" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-d475131a524ae651.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/nix/store/43qif8k96xlyfra17029qs2nxhwv9nw1-rustc-1.76.0/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/private/tmp/nix-build-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv-0/source/target/release/build/libsodium-sys-stable-60d29fb5a286817a/build_script_build-60d29fb5a286817a" "-Wl,-dead_strip" "-nodefaultlibs"
       >   = note: ld: library not found for -liconv
       >           clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
       >           
       >
       > error: could not compile `libsodium-sys-stable` (build script) due to 1 previous error
       For full logs, run 'nix log /nix/store/62jybraay8jbgmz102fsh8xp5bzxxk95-sync_npm_git_dependencies_with_nix-deps-0.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/ambsbzxz8jdz6vi8v5rl8v66x3zf18c4-sync_npm_git_dependencies_with_nix-0.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a4dszq96bwhhap5ryhvvfkqbxssh9jbw-nix-shell-env.drv' failed to build
jost-s commented 7 months ago

When I leave out the pnpm input from the nix flake, it builds.

guillemcordoba commented 7 months ago

This should be fixed now, could you try it out again?

Thanks for the bug reports!