8000 Rust bug: `cargo` replaces `$LD_LIBRARY_PATH` rather than adding to it · Issue #25 · worldcoin/iris-mpc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rust bug: cargo replaces $LD_LIBRARY_PATH rather than adding to it #25

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

Closed
teor2345 opened this issue Jun 20, 2024 · 0 comments · Fixed by #89
Closed

Rust bug: cargo replaces $LD_LIBRARY_PATH rather than adding to it #25

teor2345 opened this issue Jun 20, 2024 · 0 comments · Fixed by #89
Labels
wontfix This will not be worked on

Comments

@teor2345
Copy link
Contributor
teor2345 8000 commented Jun 20, 2024

Just documenting this workaround here, in case anyone else runs into it.

Rust's cargo build tool changes some environmental variables for the binaries and libraries it builds. Unfortunately, it doesn't handle $LD_LIBRARY_PATH correctly.

As a workaround, set $PRE_CARGO_LD_LIBRARY_PATH, and use the build.rs script in this branch to overwrite the value of $LD_LIBRARY_PATH:
https://github.com/worldcoin/gpu-iris-mpc/tree/custom-ld-library-path

There's some more background in the open feature request here:
rust-lang/cargo#4895 (comment)

@teor2345 teor2345 added the wontfix This will not be worked on label Jun 20, 2024
This was referenced Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0