PyO3 / PyO3/pyo3

Linking error on macOS when using pyo3_special_method_derive

Open
#4,263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
1k
Avg merge
2d 6h
Merged PRs (30d)
66

Description

Hello all and thanks for your great work here!

I am integrating support for pyo3_special_method_derive into mistral.rs, but there is a linking error. The linking error seems to only occur in the derived functions, and I can build on Linux. I have attached a link to the error in Github Actions and would appreciate any pointers to what may be causing this: https://github.com/EricLBuehler/mistral.rs/actions/runs/9553989761/job/26334426110

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 with the linked GitHub Actions job and compare the macOS failure with the successful Linux build. Trace the integration of pyo3_special_method_derive in mistral.rs, focusing on why the linker error appears only in derived functions. Done means identifying the cause and documenting or implementing an actionable fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python, rust
Domain
build-system
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.