Repository: rust
Issue: compile error on android target
Labels: I-ICE,O-android,T-compiler,C-bug,S-needs-repro

<!--
Thank you for finding an Internal Compiler Error! 🧊  If possible, try to provide
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
how to create smaller examples.

http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/

-->

### 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](https://user-images.githubusercontent.com/20614926/147347168-6d843854-f872-4747-af95-cf1565c6c964.png)


### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`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

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
<backtrace>
```

</p>
</details>