You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"undefined symbol" when loading dylib compiled on >1.36.0 #67070
This compiles fine, but fails to load libchild.so when compiled on anything newer than 1.36.0. If the parent library is made non-dylib, it works fine, however this is not a viable solution for my project as it causes libchild.so to contain all the shared code, and my project has many libchild.so-equivalent crates.
...and now my test project does the same thing on 1.36.0.
My real project works fine on 1.36.0, so maybe my test project just has a different bug that happens to give the same error? I have no idea what's going on with this.
The bisection results were with my real project, though, so those should be accurate for the issue I'm actually seeing there.
Possible duplicate of #65610. The linked issue as the fix you can make to the code to make this work again (you need the #[link] annotations on your extern blocks) My bad, this project does not involve extern blocks.
Activity
GinjaNinja32 commentedon Dec 5, 2019
...and now my test project does the same thing on 1.36.0.
My real project works fine on 1.36.0, so maybe my test project just has a different bug that happens to give the same error? I have no idea what's going on with this.
The bisection results were with my real project, though, so those should be accurate for the issue I'm actually seeing there.
jonas-schievink commentedon Dec 5, 2019
Caused by #59752
nagisa commentedon Dec 8, 2019
Possible duplicate of #65610.
The linked issue as the fix you can make to the code to make this work again (you need theMy bad, this project does not involve extern blocks.#[link]annotations on yourexternblocks)GinjaNinja32 commentedon Feb 20, 2020
Rust 1.42 seems to fix this for my real project; the test project I linked above remains broken even on nightly 2020-02-19.
My real project now doesn't even build on 1.37-1.41 (see #69328), but it builds and runs fine on both 1.36 and 1.42.