killercup / killercup/cargo-edit

Mac m1 install failed

Open
#874 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.5k
Forks
166
PR merge metrics
No merged PRs in 30d

Description

cargo-edit v0.12.2
macos v14
rust & cargo 1.73

`cargo install cargo-edit`

```
= note: ld: warning: ignoring duplicate libraries: '-liconv'
ld: warning: no platform load command found in '/private/var/folders/nl/cp7jwlld7nqdl1k46fp2glsm0000gn/T/rustcE575LS/symbols.o', assuming: macOS
ld: Undefined symbols:
_iconv, referenced from:
_git_fs_path_iconv in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_iconv in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_iconv in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_iconv in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_iconv in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_iconv_close, referenced from:
_git_fs_path_direach in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_iconv_clear in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_diriter_free in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_iconv_open, referenced from:
_git_fs_path_direach in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_iconv_init_precompose in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
_git_fs_path_diriter_init in liblibgit2_sys-7857c77508b5aafc.rlib[114](fs_path.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `cargo-edit` (bin "cargo-upgrade") due to previous error
error: failed to compile `cargo-edit v0.12.2`, intermediate artifacts can be found at `/var/folders/nl/cp7jwlld7nqdl1k46fp2glsm0000gn/T/cargo-installNuWyED`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cargo install cargo-edit` on macOS 14 with Rust and Cargo 1.73 on an M1 system. Investigate the linker errors for the missing `_iconv`, `_iconv_close`, and `_iconv_open` symbols referenced by `liblibgit2_sys`; done means cargo-edit v0.12.2 installs successfully in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.