Skip to content
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

cross run --target i686-linux-android doesn't work #143

Closed
japaric opened this issue Nov 4, 2017 · 1 comment · Fixed by #170
Closed

cross run --target i686-linux-android doesn't work #143

japaric opened this issue Nov 4, 2017 · 1 comment · Fixed by #170
Labels
A-qemu Area: qemu runners bug

Comments

@japaric
Copy link
Contributor

japaric commented Nov 4, 2017

STR

$ cargo new --bin hello && cd $_

$ cross run --target i686-linux-android
   Compiling hello v0.1.0 (file:///project)
    Finished dev [unoptimized + debuginfo] target(s) in 0.17 secs
     Running `qemu-i386 /target/i686-linux-android/debug/hello`
libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xf6fe2961 in tid 7 (qemu-i386)
libc: Unable to open connection to debuggerd: Connection refused
Illegal instruction (core dumped)

Meta

$ cross -V
cross 0.1.13-dev (3de557c 2017-10-20)
cargo 0.24.0-nightly (859c2305b 2017-10-29)

cc @malbarbo

@malbarbo
Copy link
Contributor

malbarbo commented Nov 8, 2017

Something in rustc changed:

Works:

rustup default nightly-2017-10-29 && cross run --target i686-linux-android

Fails:

rustup default nightly-2017-10-30 && cross run --target i686-linux-android

malbarbo added a commit to malbarbo/cross that referenced this issue Dec 10, 2017
After the ndk update used to build libstd
rust-lang/rust#45580, i686-linux-android
binaries stopped working cross-rs#143.
It's seem that the new toolchain is emitting instructions that the
default qemu-i386 cpu does not support. Using -cpu n270 (common in
android i686 phones), fix the problem.

Fixes cross-rs#143.
japaric pushed a commit that referenced this issue Dec 11, 2017
Use -cpu n270 to run i686-linux-android binaries

After the ndk update used to build libstd rust-lang/rust#45580, i686-linux-android binaries stopped working #143. It's seem that the new toolchain is emitting instructions that the default qemu-i386 cpu does not support. Using -cpu n270 (common in android i686 phones), fix the problem.

Fixes #143.
@Alexhuszagh Alexhuszagh added bug A-qemu Area: qemu runners labels May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-qemu Area: qemu runners bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants