-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Undefined symbols for x86_64 when using resolver="2" #9278
Comments
One issue is that it looks like it is building the dylib multiple times. Cargo is issuing a warning about this:
You can run Alternatively, you can run with the I was able to successfully build that branch using Also, there are some known issues with dylib linking (for example, see rust-lang/rust#82151). In general, dylibs are poorly supported, so using them may have a rough experience. |
Yeah, sadly this is the |
I'm going to close this as a duplicate of #6313 which is tracking the general problem of duplicate artifact naming. Unfortunately dylibs are particularly difficult to handle since they are sensitive to the path and filename, which generally can't contain cargo hashes. Cargo definitely needs to do better here, especially with the error messages. As for the greater issue of having a story for supporting dylibs, I think that's a little bigger than what can be dealt with in a cargo issue. |
I'm not sure I agree with this being a dylib issue so much as it is a |
Problem
I was running into a strange dependency management issue that seemed like it might be solved with the resolver, however when I tried it out, it causes the linker to spit out a huge
Undefined symbols for x86_64
error for symbols fromcore
. I assume it's a bug inresolver="2"
because it compiles when that isn't set.Steps
resolver-error
cargo build
Notes
Output of
cargo version
:cargo 1.52.0-nightly (c68432f1e 2021-03-02)
Error Message
(Gist because it exceed's GitHub's character limit for issues)
The text was updated successfully, but these errors were encountered: