chrisguida / smaug

`smaug` watches your bitcoin treasury with a meticulous eye
MIT License
14 stars 3 forks source link

fix nix build on macos #35

Open chrisguida opened 11 months ago

chrisguida commented 11 months ago

currently errors with:

$ cargo build
warning: skipping duplicate package `bdk_tmp_plan` found at `/Users/cguida/.cargo/git/checkouts/bdk-bbcd84aeefa047ed/8f38e96/nursery/tmp_plan/bdk_tmp_plan`
   Compiling secp256k1-sys v0.6.1
   Compiling ring v0.16.20
   Compiling serde_json v1.0.104
   Compiling bitcoin_hashes v0.11.0
   Compiling tokio-util v0.7.8
   Compiling bitcoin-private v0.1.0
   Compiling secp256k1-sys v0.8.1
   Compiling thiserror v1.0.44
   Compiling crc32fast v1.3.2
   Compiling lazy_static v1.4.0
   Compiling try-lock v0.2.4
   Compiling native-tls v0.2.11
   Compiling want v0.3.1
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/bin:/nix/store/037jis73nzmp6g1y1ngddxdkf0kjsrzx-clang-wrapper-11.1.0/bin:/nix/store/mk342jj556ad5x464srgj7qi4gczf3d9-clang-11.1.0/bin:/nix/store/g21y6im5yk72wprb6nj4vh3czi8d51zy-coreutils-9.3/bin:/nix/store/ay4wbiaqkqzf4qa8yg2niaqc91aaqzbg-cctools-binutils-darwin-wrapper-11.1.0-973.0.1/bin:/nix/store/ydg8riv7r2w2vfxfs57797bga3vl3svq-cctools-binutils-darwin-11.1.0-973.0.1/bin:/nix/store/wbpbgy7a09bicknf1yl397mqyyfs0kv7-bash-5.2-p15/bin:/nix/store/6awb6zp7ykf16n2lagcjvx7ia2ibmbcc-cargo-1.71.1/bin:/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/bin:/nix/store/layljc9fvfgqdzlpzlwzigaqjxcbj9cr-rustfmt-1.71.1/bin:/nix/store/38ghkibdvs2n5ylm2r101ymmyg08wahv-pre-commit-3.3.3/bin:/nix/store/l43bcnh5v4d4m9hwnixrap57q4x8bhg4-clippy-1.71.1/bin:/nix/store/cjbwsjmj9wgmybk0g5i7wvbw3gr1i9sh-pkg-config-wrapper-0.29.2/bin:/nix/store/8abrnqfqg767nk92bd6yjzbrj1635jv9-openssl-3.0.10-bin/bin:/nix/store/yjap7ifjdvd564vssb6l87lgl7n4sc3q-bitcoin-25.0/bin:/nix/store/iq2wc0qj0gv5jz4ln6w6kdrayw0666y2-clightning-23.03.2/bin:/nix/store/g21y6im5yk72wprb6nj4vh3czi8d51zy-coreutils-9.3/bin:/nix/store/a7ix7cqfww10jrllpllizyirn5z8511f-findutils-4.9.0/bin:/nix/store/zd2zlbck3nja015ca9cnq79f4vksyj58-diffutils-3.10/bin:/nix/store/j32d7lrsacdl3z579lq1rxjs1ih9jf7l-gnused-4.9/bin:/nix/store/0v0cahlxvw5l4h802nmsihhyml66rg6l-gnugrep-3.11/bin:/nix/store/nchxr1yfvpvgibfgixw2b7famkdhcd0y-gawk-5.2.2/bin:/nix/store/5lywn7xi9fd50b5bq7x45kqqfqgls17z-gnutar-1.35/bin:/nix/store/2pw777f6bdzq0n2cl3rf1gawwvhsckjs-gzip-1.12/bin:/nix/store/cf3lc5850cxiyk9qn0dbmzamsjx9sz5f-bzip2-1.0.8-bin/bin:/nix/store/1xva7c4pqsazi7q13mhs36n1c42g9xhi-gnumake-4.4.1/bin:/nix/store/wbpbgy7a09bicknf1yl397mqyyfs0kv7-bash-5.2-p15/bin:/nix/store/pqgyjcg04v9dm9x40d144d4pq76zx38l-patch-2.7.6/bin:/nix/store/7zsf295d6x0krvwz8cjk8as5087jp4ly-xz-5.4.4-bin/bin:/nix/store/036cm6vzv85v635cxs41i1js10hipi5c-file-5.44/bin:/Users/cguida/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/bin:/Users/cguida/.deno/bin:/Users/cguida/.cargo/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/cguida/Library/Python/3.8/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/tmp/nix-shell.0fc7XQ/rustcRL0X0g/symbols.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.0.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.1.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.10.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.2.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.3.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.4.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.5.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.6.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.7.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.8.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.build_script_build.4f4e03b1a286adf6-cgu.9.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae.1nrh602xg3pv6xgb.rcgu.o" "-L" "/Users/cguida/work/smaug/target/debug/deps" "-L" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib" "/Users/cguida/work/smaug/target/debug/deps/libcc-b48b951435f0b8fd.rlib" "/Users/cguida/work/smaug/target/debug/deps/liblibc-338c1a647396075e.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libstd-7c7b4ff9d0b924a4.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-19feb4217b57a0d7.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libobject-5b457b806b58751a.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-35eba52e14bb7e6b.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-20e2087711539743.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libgimli-5a6ab3182344c802.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-33acca4dd262b982.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-35068887c5a47b02.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-0d8764be046fbdec.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-6bfbf6e688cec30e.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-3c0d9106ae52e1bd.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libadler-3b0c4462d0da444c.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libunwind-01cd0c8011b21b47.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-436de2f74df1305f.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/liblibc-5c4d55824d694163.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/liballoc-4c213e8258e31872.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-77feb8ddf900b67c.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcore-30054abb9a91d770.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-2225296528489e23.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-6d69f835c7cfb8ae/build_script_build-6d69f835c7cfb8ae" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: library not found for -liconv
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/bin:/nix/store/037jis73nzmp6g1y1ngddxdkf0kjsrzx-clang-wrapper-11.1.0/bin:/nix/store/mk342jj556ad5x464srgj7qi4gczf3d9-clang-11.1.0/bin:/nix/store/g21y6im5yk72wprb6nj4vh3czi8d51zy-coreutils-9.3/bin:/nix/store/ay4wbiaqkqzf4qa8yg2niaqc91aaqzbg-cctools-binutils-darwin-wrapper-11.1.0-973.0.1/bin:/nix/store/ydg8riv7r2w2vfxfs57797bga3vl3svq-cctools-binutils-darwin-11.1.0-973.0.1/bin:/nix/store/wbpbgy7a09bicknf1yl397mqyyfs0kv7-bash-5.2-p15/bin:/nix/store/6awb6zp7ykf16n2lagcjvx7ia2ibmbcc-cargo-1.71.1/bin:/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/bin:/nix/store/layljc9fvfgqdzlpzlwzigaqjxcbj9cr-rustfmt-1.71.1/bin:/nix/store/38ghkibdvs2n5ylm2r101ymmyg08wahv-pre-commit-3.3.3/bin:/nix/store/l43bcnh5v4d4m9hwnixrap57q4x8bhg4-clippy-1.71.1/bin:/nix/store/cjbwsjmj9wgmybk0g5i7wvbw3gr1i9sh-pkg-config-wrapper-0.29.2/bin:/nix/store/8abrnqfqg767nk92bd6yjzbrj1635jv9-openssl-3.0.10-bin/bin:/nix/store/yjap7ifjdvd564vssb6l87lgl7n4sc3q-bitcoin-25.0/bin:/nix/store/iq2wc0qj0gv5jz4ln6w6kdrayw0666y2-clightning-23.03.2/bin:/nix/store/g21y6im5yk72wprb6nj4vh3czi8d51zy-coreutils-9.3/bin:/nix/store/a7ix7cqfww10jrllpllizyirn5z8511f-findutils-4.9.0/bin:/nix/store/zd2zlbck3nja015ca9cnq79f4vksyj58-diffutils-3.10/bin:/nix/store/j32d7lrsacdl3z579lq1rxjs1ih9jf7l-gnused-4.9/bin:/nix/store/0v0cahlxvw5l4h802nmsihhyml66rg6l-gnugrep-3.11/bin:/nix/store/nchxr1yfvpvgibfgixw2b7famkdhcd0y-gawk-5.2.2/bin:/nix/store/5lywn7xi9fd50b5bq7x45kqqfqgls17z-gnutar-1.35/bin:/nix/store/2pw777f6bdzq0n2cl3rf1gawwvhsckjs-gzip-1.12/bin:/nix/store/cf3lc5850cxiyk9qn0dbmzamsjx9sz5f-bzip2-1.0.8-bin/bin:/nix/store/1xva7c4pqsazi7q13mhs36n1c42g9xhi-gnumake-4.4.1/bin:/nix/store/wbpbgy7a09bicknf1yl397mqyyfs0kv7-bash-5.2-p15/bin:/nix/store/pqgyjcg04v9dm9x40d144d4pq76zx38l-patch-2.7.6/bin:/nix/store/7zsf295d6x0krvwz8cjk8as5087jp4ly-xz-5.4.4-bin/bin:/nix/store/036cm6vzv85v635cxs41i1js10hipi5c-file-5.44/bin:/Users/cguida/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/bin:/Users/cguida/.deno/bin:/Users/cguida/.cargo/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/cguida/Library/Python/3.8/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/tmp/nix-shell.0fc7XQ/rustcRgudPe/symbols.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.0.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.1.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.10.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.11.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.2.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.3.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.4.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.5.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.6.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.7.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.8.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.build_script_build.7b41ef1fb43a817d-cgu.9.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d.4l6qvldkbka5swuv.rcgu.o" "-L" "/Users/cguida/work/smaug/target/debug/deps" "-L" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib" "/Users/cguida/work/smaug/target/debug/deps/libcc-b48b951435f0b8fd.rlib" "/Users/cguida/work/smaug/target/debug/deps/liblibc-338c1a647396075e.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libstd-7c7b4ff9d0b924a4.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-19feb4217b57a0d7.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libobject-5b457b806b58751a.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-35eba52e14bb7e6b.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-20e2087711539743.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libgimli-5a6ab3182344c802.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-33acca4dd262b982.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-35068887c5a47b02.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-0d8764be046fbdec.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-6bfbf6e688cec30e.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-3c0d9106ae52e1bd.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libadler-3b0c4462d0da444c.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libunwind-01cd0c8011b21b47.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-436de2f74df1305f.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/liblibc-5c4d55824d694163.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/liballoc-4c213e8258e31872.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-77feb8ddf900b67c.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcore-30054abb9a91d770.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-2225296528489e23.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/cguida/work/smaug/target/debug/build/secp256k1-sys-015f2b25a123632d/build_script_build-015f2b25a123632d" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: library not found for -liconv
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/bin:/nix/store/037jis73nzmp6g1y1ngddxdkf0kjsrzx-clang-wrapper-11.1.0/bin:/nix/store/mk342jj556ad5x464srgj7qi4gczf3d9-clang-11.1.0/bin:/nix/store/g21y6im5yk72wprb6nj4vh3czi8d51zy-coreutils-9.3/bin:/nix/store/ay4wbiaqkqzf4qa8yg2niaqc91aaqzbg-cctools-binutils-darwin-wrapper-11.1.0-973.0.1/bin:/nix/store/ydg8riv7r2w2vfxfs57797bga3vl3svq-cctools-binutils-darwin-11.1.0-973.0.1/bin:/nix/store/wbpbgy7a09bicknf1yl397mqyyfs0kv7-bash-5.2-p15/bin:/nix/store/6awb6zp7ykf16n2lagcjvx7ia2ibmbcc-cargo-1.71.1/bin:/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/bin:/nix/store/layljc9fvfgqdzlpzlwzigaqjxcbj9cr-rustfmt-1.71.1/bin:/nix/store/38ghkibdvs2n5ylm2r101ymmyg08wahv-pre-commit-3.3.3/bin:/nix/store/l43bcnh5v4d4m9hwnixrap57q4x8bhg4-clippy-1.71.1/bin:/nix/store/cjbwsjmj9wgmybk0g5i7wvbw3gr1i9sh-pkg-config-wrapper-0.29.2/bin:/nix/store/8abrnqfqg767nk92bd6yjzbrj1635jv9-openssl-3.0.10-bin/bin:/nix/store/yjap7ifjdvd564vssb6l87lgl7n4sc3q-bitcoin-25.0/bin:/nix/store/iq2wc0qj0gv5jz4ln6w6kdrayw0666y2-clightning-23.03.2/bin:/nix/store/g21y6im5yk72wprb6nj4vh3czi8d51zy-coreutils-9.3/bin:/nix/store/a7ix7cqfww10jrllpllizyirn5z8511f-findutils-4.9.0/bin:/nix/store/zd2zlbck3nja015ca9cnq79f4vksyj58-diffutils-3.10/bin:/nix/store/j32d7lrsacdl3z579lq1rxjs1ih9jf7l-gnused-4.9/bin:/nix/store/0v0cahlxvw5l4h802nmsihhyml66rg6l-gnugrep-3.11/bin:/nix/store/nchxr1yfvpvgibfgixw2b7famkdhcd0y-gawk-5.2.2/bin:/nix/store/5lywn7xi9fd50b5bq7x45kqqfqgls17z-gnutar-1.35/bin:/nix/store/2pw777f6bdzq0n2cl3rf1gawwvhsckjs-gzip-1.12/bin:/nix/store/cf3lc5850cxiyk9qn0dbmzamsjx9sz5f-bzip2-1.0.8-bin/bin:/nix/store/1xva7c4pqsazi7q13mhs36n1c42g9xhi-gnumake-4.4.1/bin:/nix/store/wbpbgy7a09bicknf1yl397mqyyfs0kv7-bash-5.2-p15/bin:/nix/store/pqgyjcg04v9dm9x40d144d4pq76zx38l-patch-2.7.6/bin:/nix/store/7zsf295d6x0krvwz8cjk8as5087jp4ly-xz-5.4.4-bin/bin:/nix/store/036cm6vzv85v635cxs41i1js10hipi5c-file-5.44/bin:/Users/cguida/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/bin:/Users/cguida/.deno/bin:/Users/cguida/.cargo/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/cguida/Library/Python/3.8/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/tmp/nix-shell.0fc7XQ/rustc5pZic9/symbols.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.0.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.1.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.10.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.11.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.12.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.13.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.14.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.15.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.2.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.3.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.4.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.5.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.6.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.7.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.8.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.build_script_build.89b5ac8c1867b901-cgu.9.rcgu.o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e.51tqip0sw0bmdb5f.rcgu.o" "-L" "/Users/cguida/work/smaug/target/debug/deps" "-L" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib" "/Users/cguida/work/smaug/target/debug/deps/libcc-b48b951435f0b8fd.rlib" "/Users/cguida/work/smaug/target/debug/deps/liblibc-338c1a647396075e.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libstd-7c7b4ff9d0b924a4.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-19feb4217b57a0d7.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libobject-5b457b806b58751a.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-35eba52e14bb7e6b.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-20e2087711539743.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libgimli-5a6ab3182344c802.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-33acca4dd262b982.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-35068887c5a47b02.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-0d8764be046fbdec.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-6bfbf6e688cec30e.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-3c0d9106ae52e1bd.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libadler-3b0c4462d0da444c.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libunwind-01cd0c8011b21b47.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-436de2f74df1305f.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/liblibc-5c4d55824d694163.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/liballoc-4c213e8258e31872.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-77feb8ddf900b67c.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcore-30054abb9a91d770.rlib" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-2225296528489e23.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/nix/store/jh017n85vhqhqw8z5j6vwa58d48b37g8-rustc-1.71.1/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/cguida/work/smaug/target/debug/build/ring-ad375cb1798cc16e/build_script_build-ad375cb1798cc16e" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: library not found for -liconv
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `secp256k1-sys` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `secp256k1-sys` (build script) due to previous error
error: could not compile `ring` (build script) due to previous error