pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/rust build fails when converters/libiconv installed on darwin pkgsrc-2023Q4



> rust-1.73.0 wouldn't build for me on darwin unless I pkg_delete'd
> libiconv first.  The command line args are very long, hopefully I've
> attached enough info.  It seemed to fail when linking "cargo".
> 
> I believe I'm updated to the most current mac os and Xcode:
> Darwin juju.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64
> 
> [snipped...]
>  = note: ld: warning: ignoring duplicate libraries: '-liconv'
>          ld: warning: no platform load command found in '/private/var/folders/7d/8z1hkqq546v3jf7cksxnk4tw0000z8/T/rustcbgadfi/symbols.o', assuming: macOS
>          ld: Undefined symbols:
>            _iconv, referenced from:
>                _git_fs_path_iconv in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>            _iconv_close, referenced from:
>                _git_fs_path_direach in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>                _git_fs_path_iconv_clear in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>                _git_fs_path_diriter_free in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>                _git_fs_path_dirload in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>            _iconv_open, referenced from:
>                _git_fs_path_direach in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>                _git_fs_path_iconv_init_precompose in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>                _git_fs_path_diriter_init in liblibgit2_sys-a7b6993e52e59182.rlib[114](fs_path.o)
>          clang: error: linker command failed with exit code 1 (use -v to see invocation)

My guess, you've got iconv from pkgsrc. If so, try using native iconv. It might require rebuilding a lot of packages.

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index