-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Link error when cross-compiling to ARM with --crate-type dylib: Relocations in generic ELF (EM: 40) #28924
Comments
This also happens when I try to compile an executable. I suspect something is wrong/missing in my environment... Do I need to set environment variables or pass flags to get rustc to use the correct linker for my target? |
I was missing |
For anyone else landing here from a Google search: you can configure the linker in a
|
Alternatively, you can also use |
Actually, for me to work, the file needed to be named |
rustc lib.rs -g --crate-type dylib --target arm-linux-androideabi
fails with the following error, even iflib.rs
is an empty file:This happens with Servo's current Rust snapshot (rustc 1.5.0-dev (168a23e 2015-10-01)) and also with older versions at least as far back as 1.3.0-dev.
The text was updated successfully, but these errors were encountered: