Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linking failed: missing _iconv symbols referenced in libgit2 #6888

Closed
2 tasks done
AE-0h opened this issue Jan 23, 2024 · 10 comments
Closed
2 tasks done

linking failed: missing _iconv symbols referenced in libgit2 #6888

AE-0h opened this issue Jan 23, 2024 · 10 comments
Labels
A-installer Area: installer T-bug Type: bug

Comments

@AE-0h
Copy link

AE-0h commented Jan 23, 2024

Component

Other (please describe)

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (f0199f0 2024-01-23T00:33:52.188583000Z)

What command(s) is the bug in?

cargo build

Operating System

macOS (Intel)

Describe the bug

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.cargo/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustct2ZuhA/symbols.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.19c5yw3hfoe34r1e.rcgu.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.1f987w6fffcproia.rcgu.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.1lyliblr1msd78hu.rcgu.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.2oga8tkz63put0j.rcgu.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.46wgjhsds1mnxa2g.rcgu.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.4say3lh4ry9zn2te.rcgu.o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.4te59dgp7dw9c6bl.rcgu.o" "-L" "/Users/foundry/foundry/target/debug/deps" "-L" "/Users/foundry/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/foundry/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/foundry/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/foundry/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/foundry/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/foundry/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/foundry/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/foundry/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/foundry/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/foundry/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/foundry/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/foundry/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/foundry/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/foundry/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/foundry/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/foundry/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/foundry/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/foundry/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/foundry/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/foundry/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/foundry/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture x86_64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv, _git_fs_path_iconv_clear , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.cargo/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustcxrVFc7/symbols.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.2nkki5que5q7gxc1.rcgu.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.3plln1qen97u8arx.rcgu.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.414fzl5jgjz0qsza.rcgu.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.4vrxyrprlfc4tqfn.rcgu.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.4zzmfj1gvwprqkpm.rcgu.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.8gl4rtj6ho0n2ic.rcgu.o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.8pd7kvodczeqg4o.rcgu.o" "-L" "/Users/foundry/foundry/target/debug/deps" "-L" "/Users/foundry/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/foundry/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/foundry/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/foundry/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/foundry/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/foundry/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/foundry/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/foundry/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/foundry/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/foundry/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/foundry/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/foundry/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/foundry/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/foundry/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/foundry/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/foundry/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/foundry/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/foundry/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/foundry/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/foundry/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/foundry/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture x86_64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv, _git_fs_path_iconv_clear , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.cargo/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustcZoSdKe/symbols.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.12nt7m6ixjb0trkm.rcgu.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.1ey3qx3y00h9si3z.rcgu.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.22wodta4qll1g3qc.rcgu.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.30zjw4xz8u7p4s8z.rcgu.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.3pp1dh1i261i814p.rcgu.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.54m9pqvbm40fjnct.rcgu.o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.usu8kidroxf9m5a.rcgu.o" "-L" "/Users/foundry/foundry/target/debug/deps" "-L" "/Users/foundry/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/foundry/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/foundry/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/foundry/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/foundry/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/foundry/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/foundry/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/foundry/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/foundry/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/foundry/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/foundry/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/foundry/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/foundry/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/foundry/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/foundry/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/foundry/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/foundry/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/foundry/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/foundry/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/foundry/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/foundry/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture x86_64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv, _git_fs_path_iconv_clear , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.cargo/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustc7AzMN1/symbols.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.4b74tko8e5p8krl0.rcgu.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.57tyudk82fbzvlnf.rcgu.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.5dr6kk1w5z6zgkt9.rcgu.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.gm65fvcwh547836.rcgu.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.n8y19vpjxnw5vtk.rcgu.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.ookwam3vahzfet5.rcgu.o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.2y1bpj6xvhx9nmuh.rcgu.o" "-L" "/Users/foundry/foundry/target/debug/deps" "-L" "/Users/foundry/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/foundry/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/foundry/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/foundry/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/foundry/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/foundry/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/foundry/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/foundry/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/foundry/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/foundry/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/foundry/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/foundry/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/foundry/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/foundry/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/foundry/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/foundry/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/foundry/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/foundry/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/foundry/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/foundry/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/foundry/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/foundry/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/foundry/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture x86_64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv, _git_fs_path_iconv_clear , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib(fs_path.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `anvil` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `chisel` (build script) due to previous error
error: could not compile `forge` (build script) due to previous error
error: could not compile `cast` (build script) due to previous error
@AE-0h AE-0h added the T-bug Type: bug label Jan 23, 2024
@mattsse
Copy link
Member

mattsse commented Jan 23, 2024

could you try after brew install libgit2

@AE-0h
Copy link
Author

AE-0h commented Jan 23, 2024

so I ran : brew install libgit2 and got the same error:

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ae0h/.cargo/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustcsscQS3/symbols.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.12nt7m6ixjb0trkm.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.1ey3qx3y00h9si3z.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.22wodta4qll1g3qc.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.30zjw4xz8u7p4s8z.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.3pp1dh1i261i814p.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.54m9pqvbm40fjnct.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794.usu8kidroxf9m5a.rcgu.o" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/deps" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/ae0h/foundry-test/foundry/target/debug/build/chisel-6bdf3300c6901794/build_script_build-6bdf3300c6901794" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: ignoring duplicate libraries: '-liconv'
          ld: Undefined symbols:
            _iconv, referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_close, referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_open, referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ae0h/.cargo/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustcOmNVj7/symbols.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.19c5yw3hfoe34r1e.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.1f987w6fffcproia.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.1lyliblr1msd78hu.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.2oga8tkz63put0j.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.46wgjhsds1mnxa2g.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.4say3lh4ry9zn2te.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951.4te59dgp7dw9c6bl.rcgu.o" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/deps" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/ae0h/foundry-test/foundry/target/debug/build/cast-303b324570e1d951/build_script_build-303b324570e1d951" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: ignoring duplicate libraries: '-liconv'
          ld: Undefined symbols:
            _iconv, referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_close, referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_open, referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ae0h/.cargo/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustczUTVxt/symbols.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.4b74tko8e5p8krl0.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.57tyudk82fbzvlnf.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.5dr6kk1w5z6zgkt9.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.gm65fvcwh547836.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.n8y19vpjxnw5vtk.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.ookwam3vahzfet5.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7.2y1bpj6xvhx9nmuh.rcgu.o" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/deps" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/ae0h/foundry-test/foundry/target/debug/build/anvil-257abb2dd95fadb7/build_script_build-257abb2dd95fadb7" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: ignoring duplicate libraries: '-liconv'
          ld: Undefined symbols:
            _iconv, referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_close, referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_open, referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ae0h/.cargo/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/ae0h/.foundry/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/30/d1rkrvl51qv1g0rk0x_t5gp40000gn/T/rustchHU8cC/symbols.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.2nkki5que5q7gxc1.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.3plln1qen97u8arx.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.414fzl5jgjz0qsza.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.4vrxyrprlfc4tqfn.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.4zzmfj1gvwprqkpm.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.8gl4rtj6ho0n2ic.rcgu.o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80.8pd7kvodczeqg4o.rcgu.o" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/deps" "-L" "/Users/ae0h/foundry-test/foundry/target/debug/build/libgit2-sys-900d2cbcb20ef730/out/build" "-L" "/opt/local/lib" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libvergen-637135f1bdca32a0.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libgit2-f6514ff23a15152f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liburl-d07ae87edf93d714.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libidna-d69286ae28d2b96f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_normalization-891cc5bb216a9aa3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec-d48894ebd46a3682.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtinyvec_macros-b5cc306031c7ae80.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libunicode_bidi-6ec7342fde02176c.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libform_urlencoded-909ebc2f1d37d0a3.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpercent_encoding-e1294957305f6991.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblog-21d2190aff310ed9.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibgit2_sys-1b8fa1c793fe8494.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibz_sys-4cb4f493d08e9b1a.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libbitflags-b4f8da768e671fd5.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libcfg_if-4109c82ff1802b54.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime-d3864e55c924aa32.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libnum_threads-fe11d852ed511a50.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/liblibc-a18b88dbb78ebeaf.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libitoa-873a4eea7f82279f.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libtime_core-a343bc4faf6a62ed.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libderanged-9857a7d4e993e868.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libpowerfmt-a7b68c85dc6605c6.rlib" "/Users/ae0h/foundry-test/foundry/target/debug/deps/libanyhow-f68755c9fc153df4.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-f4038c6a2122598b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-4d5ab9013fdd121e.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-a06a66efc4b44ca6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-5ab035970e797532.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-df34c142418a2ac8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-dbcd4dcfbda6fdbf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-b4a3aace37c012fb.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6b29ce58982babf2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-99d6689a246a8b6b.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3ccc36334290888c.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-e6b42d0c074bdff6.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-a36f9401955835a3.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e88e61505c140ea2.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-56481735f90af261.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-51841927df3cf5b1.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-162d0e2e1ee955d8.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1ec4c76e19c090bf.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-37be1cf71fc9b666.rlib" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-11c3039f74959a20.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lz" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/ae0h/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/ae0h/foundry-test/foundry/target/debug/build/forge-3e749866272f3b80/build_script_build-3e749866272f3b80" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: ignoring duplicate libraries: '-liconv'
          ld: Undefined symbols:
            _iconv, referenced from:
                _git_fs_path_iconv in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_close, referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
            _iconv_open, referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-1b8fa1c793fe8494.rlib[114](fs_path.o)
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `chisel` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `cast` (build script) due to previous error
error: could not compile `forge` (build script) due to previous error
error: could not compile `anvil` (build script) due to previous error

@AE-0h
Copy link
Author

AE-0h commented Jan 23, 2024

Could having Cmake on my computer cause this?

@onbjerg
Copy link
Member

onbjerg commented Jan 24, 2024

Try brew install libiconv as well, seems like that's missing for some reason (or the symbols exported by what you have installed are wrong)

Could having Cmake on my computer cause this?

No, that should not be the issue. It's just unable to find some libraries for some reason

@AE-0h
Copy link
Author

AE-0h commented Jan 24, 2024

Try brew install libiconv as well, seems like that's missing for some reason (or the symbols exported by what you have installed are wrong)

Could having Cmake on my computer cause this?

No, that should not be the issue. It's just unable to find some libraries for some reason

Would nix be the cause of this? I was able to successfully build in a docker container.

@AE-0h
Copy link
Author

AE-0h commented Jan 24, 2024

I have already installed libiconv btw.

@onbjerg
Copy link
Member

onbjerg commented Jan 24, 2024

The only thing I can think of is this: rust-lang/git2-rs#263

And yes, it could be a Nix issue, but I don't really know - I don't use Nix, I just know there's been a lot of issues with it

@AFDudley
Copy link

I have a similar issue running docker build -t foundry . using docker desktop on a MacOS 14 M2 Pro machine.

@DaniPopes DaniPopes changed the title Cargo Build Fails when run on Foundry repo error: could not compile chisel (build script) due to previous error error: could not compile forge (build script) due to previous error error: could not compile cast (build script) due to previous error linking failed: missing _iconv symbols referenced in libgit2 Feb 19, 2024
@DaniPopes
Copy link
Member

@AE-0h Can you please try again? We don't depend on libgit2 anymore. Also please wrap your dumps in code blocks or pastebins to make it easier to navigate the issue :)

@AFDudley How recently have you tried? Can you post the full error log?

@zerosnacks zerosnacks added the A-installer Area: installer label Jun 27, 2024
@zerosnacks
Copy link
Member

Marking as resolved due to us not relying on libgit2 anymore therefore this cannot be an issue anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-installer Area: installer T-bug Type: bug
Projects
No open projects
Status: Todo
Development

No branches or pull requests

6 participants