Skip to content

compile error on android target #92250

Open
@bigdogs

Description

@bigdogs

Code

Just build a simple project, with command cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort. It works for ios, but failed for android target.

seems panic on here in source code.

image

Meta

rustc --version --verbose:

<version>

Error output

aaa@n248-156-096 /t/gcm> cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target armv7-linux-androideabi --release
Downloaded cc v1.0.69
Downloaded rustc-demangle v0.1.21
Downloaded compiler_builtins v0.1.66
Downloaded libc v0.2.108
Downloaded hashbrown v0.11.0
Downloaded 5 crates (890.7 KB) in 1.88s
Compiling compiler_builtins v0.1.66
Compiling core v0.0.0 (/data00/home/aaa/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Compiling libc v0.2.108
Compiling cc v1.0.69
Compiling std v0.0.0 (/data00/home/aaa/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
Compiling typenum v1.14.0
Compiling version_check v0.9.3
Compiling generic-array v0.14.4
Compiling unwind v0.0.0 (/data00/home/aaa/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
error: failed to run custom build command for unwind v0.0.0 (/data00/home/aaa/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)

Caused by:
process didn't exit successfully: /tmp/gcm/target/release/build/unwind-90d4283eec0c74b6/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-changed=build.rs
TARGET = Some("armv7-linux-androideabi")
HOST = Some("x86_64-unknown-linux-gnu")
CC_armv7-linux-androideabi = None
CC_armv7_linux_androideabi = None
TARGET_CC = None
CC = None
CFLAGS_armv7-linux-androideabi = None
CFLAGS_armv7_linux_androideabi = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None

--- stderr
thread 'main' panicked at 'Unable to invoke compiler: Error { kind: IOError, message: "No such file or directory (os error 2)" }', /data00/home/aaa/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind/build.rs:13:62
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-androidOperating system: AndroidS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions