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

build fails on Mac with MacPorts, because of libgit2 #134

Open
RJVB opened this issue Apr 30, 2023 · 1 comment
Open

build fails on Mac with MacPorts, because of libgit2 #134

RJVB opened this issue Apr 30, 2023 · 1 comment

Comments

@RJVB
Copy link

RJVB commented Apr 30, 2023

The libgit2-sys package is written to use iconv on Mac, but assumes only the system version is available. When using MacPorts there will also an up-to-date libiconv installed which causes a build failure:

:info:build   = note: Undefined symbols for architecture x86_64:
:info:build             "_iconv", referenced from:
:info:build                 _git_fs_path_iconv in liblibgit2_sys-0e14e63160044187.rlib(fs_path.o)
:info:build                (maybe you meant: _git_fs_path_iconv_init_precompose, _git_fs_path_iconv , _git_fs_path_iconv_clear )
:info:build             "_iconv_open", referenced from:
:info:build                 _git_fs_path_direach in liblibgit2_sys-0e14e63160044187.rlib(fs_path.o)
:info:build             "_iconv_close", referenced from:
:info:build                 _git_fs_path_direach in liblibgit2_sys-0e14e63160044187.rlib(fs_path.o)
:info:build           ld: symbol(s) not found for architecture x86_64
:info:build           clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build
:info:build error: could not compile `cargo-cache` due to previous error

I am not that interested in the git gc functionality, which is too costly for the potential gain it can give. Maybe it's possible to make this an optional feature?

@triscuitcircuit
Copy link

Same issue here

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

2 participants