-
Notifications
You must be signed in to change notification settings - Fork 390
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
armv5te-unknown-linux-musleabi with OpenSSL fails with undefined reference to `__sync_sub_and_fetch_4' #367
Comments
Is this related to your issue? #229 |
Nope. I can build a vendored version of OpenSSL just fine with static linking and all. I just cannot resolve the symbol conflicts when I link that OpenSSL lib. There is a set of atomic intrinics defined in the Rust core lib. But OpenSSL doesn't want to use it and says the functions are not defined. But if I define them myself, it shuts OpenSSL up fine, but then Rust complains that there are conflicting definitions. |
I have the same problem. It compiles but it fails to link. Is there a solution to the problem? |
I used this to solve the issue as the functions are not defined in the Rust core lib.
|
Confirmed this is still failing, and due to #485, there's more undefined references to symbols (specifically, the 64-bit time symbols). |
This is still failing after the downgrade to musl 1.1.24, however, all the 64-bit time definitions have been fixed, but |
987: Link to libgcc for `armv5te-unknown-linux-musleabi` target. r=Emilgardis a=Alexhuszagh Fixes missing sync builtins required for libraries such as OpenSSL, specifically, the `__sync_X_and_fetch` builtins. Closes #367. Improves documentation related to #906. Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
I wonder if this has been fixed? I cannot seem to be able to make an ARMv5TE build OpenSSL without tripping on this error...
Apparently
__sync_sub_and_fetch_4
is already supplied by the build target lib, because defining my own version also causes multiple-definition errors. For some reason, the linker just doesn't like to use the library's version.The text was updated successfully, but these errors were encountered: