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

MacOS iconv linkage misdetection (also deprecation warnings) #830

Open
nabijaczleweli opened this issue Apr 13, 2022 · 7 comments
Open

MacOS iconv linkage misdetection (also deprecation warnings) #830

nabijaczleweli opened this issue Apr 13, 2022 · 7 comments

Comments

@nabijaczleweli
Copy link

nabijaczleweli commented Apr 13, 2022

Forwarding nabijaczleweli/cargo-update#176 and nabijaczleweli/cargo-update#186 – MacOS/M1 and previous ports:

Cargo-update has

git2 = "0.11"

set, and a user got

  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_path_iconv in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
               (maybe you meant: _git_path_iconv_init_precompose, _git_path_iconv , _git_path_iconv_clear )
            "_iconv_open", referenced from:
                _git_path_direach in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
                _git_path_iconv_init_precompose in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
                _git_path_diriter_init in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
            "_iconv_close", referenced from:
                _git_path_direach in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
                _git_path_iconv_clear in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
                _git_path_diriter_free in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
                _git_path_dirload in liblibgit2_sys-c72467cf4143557b.rlib(path.o)
          ld: symbol(s) not found for architecture arm64
@nabijaczleweli
Copy link
Author

On trunk, the same user got

$ git clone https://github.com/rust-lang/git2-rs; cd git2-rs; cargo test
Cloning into 'git2-rs'...
remote: Enumerating objects: 7284, done.
remote: Counting objects: 100% (389/389), done.
remote: Compressing objects: 100% (244/244), done.
remote: Total 7284 (delta 225), reused 251 (delta 142), pack-reused 6895
Receiving objects: 100% (7284/7284), 3.39 MiB | 2.04 MiB/s, done.
Resolving deltas: 100% (5104/5104), done.
    Updating crates.io index
  Downloaded openssl-sys v0.9.72
  Downloaded quote v1.0.18
  Downloaded unicode-segmentation v1.9.0
  Downloaded paste v1.0.7
  Downloaded libc v0.2.123
  Downloaded 5 crates (774.4 KB) in 1.17s
   Compiling libc v0.2.123
   Compiling pkg-config v0.3.25
   Compiling proc-macro2 v1.0.37
   Compiling autocfg v1.1.0
   Compiling version_check v0.9.4
   Compiling unicode-xid v0.2.2
   Compiling tinyvec_macros v0.1.0
   Compiling syn v1.0.91
   Compiling matches v0.1.9
   Compiling bitflags v1.3.2
   Compiling unicode-segmentation v1.9.0
   Compiling unicode-bidi v0.3.7
   Compiling cfg-if v1.0.0
   Compiling log v0.4.16
   Compiling unicode-width v0.1.9
   Compiling percent-encoding v2.1.0
   Compiling vec_map v0.8.2
   Compiling ansi_term v0.12.1
   Compiling strsim v0.8.0
   Compiling remove_dir_all v0.5.3
   Compiling fastrand v1.7.0
   Compiling lazy_static v1.4.0
   Compiling paste v1.0.7
   Compiling tinyvec v1.5.1
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling heck v0.3.3
   Compiling textwrap v0.11.0
   Compiling form_urlencoded v1.0.1
   Compiling unicode-normalization v0.1.19
   Compiling idna v0.2.3
   Compiling url v2.2.2
   Compiling jobserver v0.1.24
   Compiling atty v0.2.14
   Compiling time v0.1.44
   Compiling tempfile v3.3.0
   Compiling clap v2.34.0
   Compiling cc v1.0.73
   Compiling quote v1.0.18
   Compiling openssl-sys v0.9.72
   Compiling libz-sys v1.1.5
   Compiling libssh2-sys v0.2.23
   Compiling libgit2-sys v0.13.2+1.4.2 (/Users/florian/tmp/git2-rs/libgit2-sys)
   Compiling structopt-derive v0.4.18
   Compiling structopt v0.3.26
    Building [==================>        ] 63/86: libgit2-sys(build)
warning: libgit2/src/libgit2/streams/stransport.c:63:8: warning: 'SSLHandshake' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         ret = SSLHandshake(st->ctx);
warning:               ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1641:1: note: 'SSLHandshake' has been explicitly marked deprecated here
warning: SSLHandshake                            (SSLContextRef          context)
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:69:13: warning: 'SSLCopyPeerTrust' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         if ((ret = SSLCopyPeerTrust(st->ctx, &trust)) != noErr)
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1261:1: note: 'SSLCopyPeerTrust' has been explicitly marked deprecated here
warning: SSLCopyPeerTrust                        (SSLContextRef          context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:75:13: warning: 'SecTrustEvaluate' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
warning:         if ((ret = SecTrustEvaluate(trust, &sec_res)) != noErr)
warning:                    ^~~~~~~~~~~~~~~~
warning:                    SecTrustEvaluateWithError
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:359:10: note: 'SecTrustEvaluate' has been explicitly marked deprecated here
warning: OSStatus SecTrustEvaluate(SecTrustRef trust, SecTrustResultType *result)
warning:          ^
warning: libgit2/src/libgit2/streams/stransport.c:107:13: warning: 'SSLCopyPeerTrust' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         if ((ret = SSLCopyPeerTrust(st->ctx, &trust)) != noErr)
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1261:1: note: 'SSLCopyPeerTrust' has been explicitly marked deprecated here
warning: SSLCopyPeerTrust                        (SSLContextRef          context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:110:13: warning: 'SecTrustGetCertificateAtIndex' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
warning:         sec_cert = SecTrustGetCertificateAtIndex(trust, 0);
warning:                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning:                    SecTrustCopyCertificateChain
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:518:19: note: 'SecTrustGetCertificateAtIndex' has been explicitly marked deprecated here
warning: SecCertificateRef SecTrustGetCertificateAtIndex(SecTrustRef trust, CFIndex ix)
warning:                   ^
warning: libgit2/src/libgit2/streams/stransport.c:167:13: warning: 'SSLWrite' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         if ((ret = SSLWrite(st->ctx, data, data_len, &processed)) != noErr)
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1670:1: note: 'SSLWrite' has been explicitly marked deprecated here
warning: SSLWrite                                        (SSLContextRef          context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:214:13: warning: 'SSLRead' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         if ((ret = SSLRead(st->ctx, data, len, &processed)) != noErr)
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1689:1: note: 'SSLRead' has been explicitly marked deprecated here
warning: SSLRead                                         (SSLContextRef          context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:225:8: warning: 'SSLClose' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         ret = SSLClose(st->ctx);
warning:               ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1731:1: note: 'SSLClose' has been explicitly marked deprecated here
warning: SSLClose                                        (SSLContextRef          context)
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:264:12: warning: 'SSLCreateContext' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         st->ctx = SSLCreateContext(NULL, kSSLClientSide, kSSLStreamType);
warning:                   ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:316:1: note: 'SSLCreateContext' has been explicitly marked deprecated here
warning: SSLCreateContext(CFAllocatorRef __nullable alloc, SSLProtocolSide protocolSide, SSLConnectionType connectionType)
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:264:35: warning: 'kSSLClientSide' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
warning:         st->ctx = SSLCreateContext(NULL, kSSLClientSide, kSSLStreamType);
warning:                                          ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:218:5: note: 'kSSLClientSide' has been explicitly marked deprecated here
warning:     kSSLClientSide CF_ENUM_DEPRECATED(10_2, 10_15, 2_0, 13_0)
warning:     ^
warning: libgit2/src/libgit2/streams/stransport.c:264:51: warning: 'kSSLStreamType' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
warning:         st->ctx = SSLCreateContext(NULL, kSSLClientSide, kSSLStreamType);
warning:                                                          ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:223:5: note: 'kSSLStreamType' has been explicitly marked deprecated here
warning:     kSSLStreamType CF_ENUM_DEPRECATED(10_2, 10_15, 2_0, 13_0),
warning:     ^
warning: libgit2/src/libgit2/streams/stransport.c:271:13: warning: 'SSLSetIOFuncs' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:         if ((ret = SSLSetIOFuncs(st->ctx, read_cb, write_cb)) != noErr ||
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:418:1: note: 'SSLSetIOFuncs' has been explicitly marked deprecated here
warning: SSLSetIOFuncs                           (SSLContextRef          context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:272:13: warning: 'SSLSetConnection' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:             (ret = SSLSetConnection(st->ctx, st->io)) != noErr ||
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:657:1: note: 'SSLSetConnection' has been explicitly marked deprecated here
warning: SSLSetConnection                        (SSLContextRef                  context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:273:13: warning: 'SSLSetSessionOption' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:             (ret = SSLSetSessionOption(st->ctx, kSSLSessionOptionBreakOnServerAuth, true)) != noErr ||
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:384:1: note: 'SSLSetSessionOption' has been explicitly marked deprecated here
warning: SSLSetSessionOption                     (SSLContextRef          context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:273:42: warning: 'kSSLSessionOptionBreakOnServerAuth' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
warning:             (ret = SSLSetSessionOption(st->ctx, kSSLSessionOptionBreakOnServerAuth, true)) != noErr ||
warning:                                                 ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:99:2: note: 'kSSLSessionOptionBreakOnServerAuth' has been explicitly marked deprecated here
warning:         kSSLSessionOptionBreakOnServerAuth CF_ENUM_DEPRECATED(10_2, 10_15, 2_0, 13_0) = 0,
warning:         ^
warning: libgit2/src/libgit2/streams/stransport.c:274:13: warning: 'SSLSetProtocolVersionMin' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:             (ret = SSLSetProtocolVersionMin(st->ctx, kTLSProtocol1)) != noErr ||
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:458:1: note: 'SSLSetProtocolVersionMin' has been explicitly marked deprecated here
warning: SSLSetProtocolVersionMin  (SSLContextRef      context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:274:47: warning: 'kTLSProtocol1' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
warning:             (ret = SSLSetProtocolVersionMin(st->ctx, kTLSProtocol1)) != noErr ||
warning:                                                      ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h:157:5: note: 'kTLSProtocol1' has been explicitly marked deprecated here
warning:     kTLSProtocol1 CF_ENUM_DEPRECATED(10_2, 10_15, 5_0, 13_0) = 4,
warning:     ^
warning: libgit2/src/libgit2/streams/stransport.c:275:13: warning: 'SSLSetProtocolVersionMax' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:             (ret = SSLSetProtocolVersionMax(st->ctx, kTLSProtocol12)) != noErr ||
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:494:1: note: 'SSLSetProtocolVersionMax' has been explicitly marked deprecated here
warning: SSLSetProtocolVersionMax  (SSLContextRef      context,
warning: ^
warning: libgit2/src/libgit2/streams/stransport.c:275:47: warning: 'kTLSProtocol12' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
warning:             (ret = SSLSetProtocolVersionMax(st->ctx, kTLSProtocol12)) != noErr ||
warning:                                                      ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h:159:5: note: 'kTLSProtocol12' has been explicitly marked deprecated here
warning:     kTLSProtocol12 CF_ENUM_DEPRECATED(10_2, 10_15, 5_0, 13_0) = 8,
warning:     ^
warning: libgit2/src/libgit2/streams/stransport.c:276:13: warning: 'SSLSetPeerDomainName' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Wdeprecated-declarations]
warning:             (ret = SSLSetPeerDomainName(st->ctx, host, strlen(host))) != noErr) {
warning:                    ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:686:1: note: 'SSLSetPeerDomainName' has been explicitly marked deprecated here
warning: SSLSetPeerDomainName            (SSLContextRef          context,
warning: ^
warning: 20 warnings generated.
   Compiling git2 v0.14.2 (/Users/florian/tmp/git2-rs)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.global_state.f1844a36-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7.37qzuvq0epmbr4p3.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-63adf2e20a3db5ef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-52da854bdbce4df3.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-6ebc5b2c32dcec4d.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-0e6785c801b03e82.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/deps/global_state-677d3b848e23d5a7" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_init_precompose, _git_fs_path_iconv , _git_fs_path_iconv_clear )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.add_extensions.d848884d-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55.14wgzs1mpvfyowwo.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-63adf2e20a3db5ef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-52da854bdbce4df3.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-6ebc5b2c32dcec4d.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-0e6785c801b03e82.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/deps/add_extensions-1afe40ff2eb80c55" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_init_precompose, _git_fs_path_iconv , _git_fs_path_iconv_clear )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.clone.8e2eb821-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244.2094ebv6syy3hc6h.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstructopt-28a192e744316633.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblazy_static-13a948b41477a50e.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libclap-a35edb7a0d7540cb.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libvec_map-5414ce4a5fa5e324.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtextwrap-2a750bc79afac664.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_width-30e1c461c8aecf9d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstrsim-fc79daf9751e60e7.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libatty-b159c26766f40cc8.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libansi_term-1a52d61e6e15ad7c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/examples/clone-0b9cba16192a5244" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_clear, _git_fs_path_iconv , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: could not compile `git2` due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.fetch.2c96b79e-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848.32bfohck9mtp4zy2.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstructopt-28a192e744316633.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblazy_static-13a948b41477a50e.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libclap-a35edb7a0d7540cb.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libvec_map-5414ce4a5fa5e324.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtextwrap-2a750bc79afac664.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_width-30e1c461c8aecf9d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstrsim-fc79daf9751e60e7.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libatty-b159c26766f40cc8.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libansi_term-1a52d61e6e15ad7c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/examples/fetch-40d7fd15cb8c3848" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_clear, _git_fs_path_iconv , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.tag.8bcc4fe7-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22.1t4r4mi0yowj0ilf.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstructopt-28a192e744316633.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblazy_static-13a948b41477a50e.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libclap-a35edb7a0d7540cb.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libvec_map-5414ce4a5fa5e324.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtextwrap-2a750bc79afac664.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_width-30e1c461c8aecf9d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstrsim-fc79daf9751e60e7.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libatty-b159c26766f40cc8.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libansi_term-1a52d61e6e15ad7c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/examples/tag-dd50b0d1be75fb22" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_clear, _git_fs_path_iconv , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.pull.21abcc5a-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa.47b3h9ywk507d0bv.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstructopt-28a192e744316633.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblazy_static-13a948b41477a50e.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libclap-a35edb7a0d7540cb.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libvec_map-5414ce4a5fa5e324.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtextwrap-2a750bc79afac664.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_width-30e1c461c8aecf9d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstrsim-fc79daf9751e60e7.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libatty-b159c26766f40cc8.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libansi_term-1a52d61e6e15ad7c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/examples/pull-b26760d33ccb5daa" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_clear, _git_fs_path_iconv , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.status.8d121dc6-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6.nv446gsybt395ed.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstructopt-28a192e744316633.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblazy_static-13a948b41477a50e.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libclap-a35edb7a0d7540cb.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libvec_map-5414ce4a5fa5e324.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtextwrap-2a750bc79afac664.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_width-30e1c461c8aecf9d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libstrsim-fc79daf9751e60e7.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libatty-b159c26766f40cc8.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libansi_term-1a52d61e6e15ad7c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libgit2-cc40bd730d8ca83f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/examples/status-00226898a1f5bbf6" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_clear, _git_fs_path_iconv , _git_fs_path_iconv_init_precompose )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.0.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.1.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.10.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.11.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.12.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.13.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.14.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.15.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.2.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.3.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.4.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.5.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.6.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.7.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.8.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.git2.6334ad45-cgu.9.rcgu.o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb.31x683etzrbohtly.rcgu.o" "-L" "/Users/florian/tmp/git2-rs/target/debug/deps" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libgit2-sys-a136e7b2d9151e72/out/build" "-L" "/Users/florian/tmp/git2-rs/target/debug/build/libssh2-sys-1845efe63bf726f8/out/build" "-L" "/opt/local/lib" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-63adf2e20a3db5ef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-52da854bdbce4df3.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-6ebc5b2c32dcec4d.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-0e6785c801b03e82.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblog-416fdbc52115f563.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liburl-ba2f9df457aa5cc0.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libidna-3b78e0afaa2a4783.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_normalization-096ab5645dfa371d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec-3ce0e6c65ae7070c.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtinyvec_macros-c1ab4aa97a23bcb5.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libunicode_bidi-e28eff9c1e64ce95.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libform_urlencoded-724d4545e0dd6ead.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libpercent_encoding-75703f1d3e91dc69.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libmatches-286efc3d60b80397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libtempfile-faa8164d8c573b56.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libcfg_if-04d7104b9c706b29.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libfastrand-0a25026c2557be59.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libremove_dir_all-43fb0fba386b96f2.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibgit2_sys-5396522fe8c9f19a.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibssh2_sys-029f8cfebd984134.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libopenssl_sys-507589d13ba7d397.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibz_sys-419651a6f132488d.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/liblibc-150ab26df6e56f3f.rlib" "/Users/florian/tmp/git2-rs/target/debug/deps/libbitflags-7f11b60abbc6c0d5.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-eb660d415c354e23.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7de8b29ddb7a4fdf.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-e8c2a79e494852bc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-c89ae08c96207cd8.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-020771383c7b28b2.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-868a41d5005b1b1e.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-86bb526dcb1bbaf0.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-65708c20a659c74c.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ed2eeaa7b42ab93f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-17e21080b73e52ac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6a4b349b118a2bef.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-4a7bfb52e2f3bcac.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0e34d750a2a5ea4f.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-7e50779556d46264.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-91635fcf4ade01cc.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-88566b8a8dea6ac4.rlib" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4d2eba102ddf9fce.rlib" "-liconv" "-framework" "Security" "-framework" "CoreFoundation" "-lssl" "-lcrypto" "-lz" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/florian/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/florian/tmp/git2-rs/target/debug/deps/git2-a8468396a22354fb" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_init_precompose, _git_fs_path_iconv , _git_fs_path_iconv_clear )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-5396522fe8c9f19a.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: build failed

@frivoal
Copy link

frivoal commented May 15, 2022

Found a workaround (though not a solution):

sudo port deactivate libiconv
cargo build
sudo port activate libiconv

The problem is that there are two instances of libiconv on the system, one that ships with macOS, and one that gets installed by mac ports. The one from macports deliberately has different symbols (libiconv_open instead of iconv_open) so that both can be installed and used on the system at the same time. (see https://trac.macports.org/ticket/57821 for rationale)

However, the git2-rs's Cmake system finds the macport version of the library, but doesn't check whether it has the symbols it expects (it doesn't), and tries to use it, which fails. It needs to either switch to using these different symbols when linking against that library, or to check skip it because it doesn't have the expected symbols, keep on searching, and find the system library, which does.

@frivoal
Copy link

frivoal commented May 15, 2022

Reported upstream to CMake: https://gitlab.kitware.com/cmake/cmake/-/issues/23515

@nabijaczleweli nabijaczleweli changed the title MacOS/M1 iconv linkage misdetection (also deprecation warnings) MacOS iconv linkage misdetection (also deprecation warnings) Sep 1, 2022
@chris13524
Copy link

Same issue on macOS 13.1 M2:

  = note: Undefined symbols for architecture arm64:
            "_iconv", referenced from:
                _git_fs_path_iconv in liblibgit2_sys-68f402e93ea1efd4.rlib(fs_path.o)
               (maybe you meant: _git_fs_path_iconv_init_precompose, _git_fs_path_iconv_clear , _git_fs_path_iconv )
            "_iconv_close", referenced from:
                _git_fs_path_iconv_clear in liblibgit2_sys-68f402e93ea1efd4.rlib(fs_path.o)
            "_iconv_open", referenced from:
                _git_fs_path_iconv_init_precompose in liblibgit2_sys-68f402e93ea1efd4.rlib(fs_path.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

This doesn't work for me, because I don't use mac ports, and I get a port: command not found:

sudo port deactivate libiconv

@felipepimsil
Copy link

Did you find any updates about this? Getting the same error.
I have libiconv installed with brew install libiconv, but get Undefined symbols for architecture arm64 for _iconv, _iconv_open, _iconv_close

@eugenehp
Copy link

brew install libiconv

and

// build.rs
fn main() {
    println!(r"cargo:rustc-link-search=/opt/homebrew/opt/libiconv/lib");
}

fixed it for me.

@HenkPoley
Copy link

conda deactivate and then cargo may also fix the issue for someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants