-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cannot build an (even the simplest) app on ARMv6 #94
Comments
Using
|
It's caused by a wrong linker. You can make it by setting the right one. [target.aarch64-unknown-linux-musl]
linker = "aarch64-openwrt-linux-musl-gcc" |
No, it does not change anything, beside the compilation target is arm here and not aarch64. For reference, it does not work if the arm linker as well : [target.arm-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld" |
|
Adding linking with libatomic fixes the build, I'll prepare a PR with conditional linking for arm-unknown-linux-musleabihf diff --git a/libmimalloc-sys/build.rs b/libmimalloc-sys/build.rs
index fc1743e..ee72de8 100644
--- a/libmimalloc-sys/build.rs
+++ b/libmimalloc-sys/build.rs
@@ -53,4 +53,5 @@ fn main() {
}
build.compile("mimalloc");
+ println!("cargo:rustc-link-lib=dylib=atomic");
} |
Hello,
Using that Dockerfile :
Works for building the Mimalloc Rust crate directly, but not when building the simplest example application with :
The error is then :
There is another issue on mimalloc related : microsoft/mimalloc#719 .
The text was updated successfully, but these errors were encountered: