rust-lang / rust-lang/git2-rs

MacOS iconv linkage misdetection (also deprecation warnings)

Open
#830 7 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.1k
Forks
450
Avg merge
11m
Merged PRs (30d)
1

Description

Forwarding https://github.com/nabijaczleweli/cargo-update/issues/176 and https://github.com/nabijaczleweli/cargo-update/issues/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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the git2 = "0.11" dependency and reproducing the reported macOS/M1 linker failure involving iconv symbols. Compare the forwarded cargo-update reports and determine how iconv linkage is detected; done means the affected macOS build links successfully without the reported deprecation warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.