indygreg / indygreg/PyOxidizer

cargo can't resolve iconv under macports libiconv 1.16

Open
#132 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug compatibility
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

To build pyoxidixer, apparently I need to resolve references from libiconv

The error message under compilation suggests it's using -liconv so it knows to look for this library.

I can't use homebrew on this system. I have libiconv 1.16, which is the latest, from macports

tmp andrew.philpot$ sudo port list libiconv
libiconv @1.16 textproc/libiconv

This appears to have installed into
/opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.a

as well there seems to be a set of libs in
/usr/lib/libiconv.2.4.0.dylib
/usr/lib/libiconv.2.dylib
/usr/lib/libiconv.dylib

For open SSL I was able to set a global but I don't see any way described for this dependency. I'm supposing there is a way to indicate this lib location in one of the build inputs but don't know where to start.

Logically, one might think this is a rust/cargo internals issue, but the backtrace seems to point more directly at pyoxidizer, which is why I am posting here first.

[pyoxidizer-compile.stderr.txt](https://github.com/indygreg/PyOxidizer/files/3627479/pyoxidizer-compile.stderr.txt)

Contributor guide

No contributing guide indexed for this repository

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 reading the attached pyoxidizer-compile.stderr.txt and the issue's description of the Cargo build on macOS with MacPorts libiconv 1.16. Trace where PyOxidizer's build inputs resolve the -liconv reference. Done means the reported configuration can build pyoxidizer using the MacPorts library without requiring Homebrew.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.