You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take a build of rustc for ARM (specifically, gnueabi; gnueabihf is untested and may or may not exhibit this problem). Luqman has one you can use at http://luqman.ca/rust-builds/.
Attempt to compile something, e.g. echo 'fn main(){}' | rustc -.
The binary is created successfully and will run fine (I finally have rust-http running on my Android-with-Ubuntu-inside-it tablet!), but the .o file remains around and rustc also dies with a spurious return code from the linker.
error: linking with `cc` failed with code 1081742352
note: cc arguments: -L/home/chris/opt/rust/lib/rustc/arm-unknown-linux-gnueabi/lib -marm -o /tmp/rust_out /tmp/rust_out.o -L/home/chris/opt/rust/lib/rustc/arm-unknown-linux-gnueabi/lib -lstd-6c65cf4b443341b1-0.9-pre -L/home/chris/opt/rust/lib/rustc/arm-unknown-linux-gnueabi/lib -lrustuv-d4277cd5f62aa99-0.9-pre -lrustrt -lrt -lpthread -L/tmp/.rust -L/tmp -lrt -ldl -lm -lmorestack -lrustrt -Wl,-rpath,$ORIGIN/../home/chris/opt/rust/lib/rustc/arm-unknown-linux-gnueabi/lib -Wl,-rpath,/home/chris/opt/rust/lib/rustc/arm-unknown-linux-gnueabi/lib -Wl,-rpath,/scratch/laden/local/lib/rustc/arm-unknown-linux-gnueabi/lib
note:
error: aborting due to previous error
task '<unnamed>' failed at 'explicit failure', ../src/libsyntax/diagnostic.rs:101
task '<unnamed>' failed at 'explicit failure', ../src/librustc/rustc.r:396
(I typed that out by hand; it's possible that it may not be entirely correct.)
The claimed return code is well outside what I believe to be the valid range for return codes (I think it's supposed to be an unsigned 8-bit value) and is different each time. I presume that it's not retrieving the return value correctly. If one runs cc manually with the specified arguments, the return code is 0, as expected.
The text was updated successfully, but these errors were encountered:
It could be worth doing a small testcase with a small C program + libuv on the same ARM target/host that spawns cc and peeks at the exit status reported. If libuv is reporting a weird exit status to the exit callback, without any of our Rust runtime doing anything funky, then this might be a libuv bug.
Otherwise, #10109 may resolve this once it lands, or at least make it clearer what the issue is.
Steps to reproduce:
echo 'fn main(){}' | rustc -
.The binary is created successfully and will run fine (I finally have rust-http running on my Android-with-Ubuntu-inside-it tablet!), but the
.o
file remains around and rustc also dies with a spurious return code from the linker.(I typed that out by hand; it's possible that it may not be entirely correct.)
The claimed return code is well outside what I believe to be the valid range for return codes (I think it's supposed to be an unsigned 8-bit value) and is different each time. I presume that it's not retrieving the return value correctly. If one runs
cc
manually with the specified arguments, the return code is 0, as expected.The text was updated successfully, but these errors were encountered: