Skip to content

./x check std --target aarch64-apple-ios fails when cross-checking due to missing xcrun #133840

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

Closed
ChrisDenton opened this issue Dec 4, 2024 · 2 comments · Fixed by #140357
Closed
Labels
A-cross Area: Cross compilation A-linkers Area: linkers... you gotta love linkers T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@ChrisDenton
Copy link
Member

ChrisDenton commented Dec 4, 2024

On a non-mac host, checking std for an ios target fails with the following error:

> ./x check std --target aarch64-apple-ios                                                                                                                          
Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.8s


error occurred: Failed to find tool. Is `xcrun` installed? (see https://docs.rs/cc/latest/cc/#compile-time-requirements for help)


Build completed unsuccessfully in 0:00:01

Ideally I should be able to check any target from any host.

@ChrisDenton ChrisDenton added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Dec 4, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 4, 2024
@jieyouxu jieyouxu added O-ios Operating system: iOS A-cross Area: Cross compilation C-bug Category: This is a bug. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Dec 4, 2024
@onur-ozkan
Copy link
Member

Previously, this was resolved in #128871 but then check step had to be excluded due to unexpected rebuild issues (see #130108). Let's keep this issue open until we find a solution that prevents rebuilds and ignores the linker configuration for check step.

@onur-ozkan onur-ozkan added A-linkers Area: linkers... you gotta love linkers and removed O-ios Operating system: iOS C-bug Category: This is a bug. labels Dec 4, 2024
@onur-ozkan
Copy link
Member

Let's keep this issue open until we find a solution that prevents rebuilds and ignores the linker configuration for check step.

I will re-check this with untracked envs.

Zalathar added a commit to Zalathar/rust that referenced this issue May 4, 2025
bypass linker configuration and cross target check on `x check`

I was going to handle this using the untracked env approach, but I realized it somehow doesn't regress rust-lang#130108 anymore...

Anyway, if it works, it works. 😄 No need to dig deeper but my guess is we moved some cache-invalidating env from these functions to others.

Fixes rust-lang#133840
bors added a commit to rust-lang-ci/rust that referenced this issue May 5, 2025
bypass linker configuration and cross target check on `x check`

I was going to handle this using the untracked env approach, but I realized it somehow doesn't regress rust-lang#130108 anymore...

Anyway, if it works, it works. 😄 No need to dig deeper but my guess is we moved some cache-invalidating env from these functions to others.

Fixes rust-lang#133840

try-job: aarch64-apple
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue May 5, 2025
bypass linker configuration and cross target check on `x check`

I was going to handle this using the untracked env approach, but I realized it somehow doesn't regress rust-lang#130108 anymore...

Anyway, if it works, it works. 😄 No need to dig deeper but my guess is we moved some cache-invalidating env from these functions to others.

Fixes rust-lang#133840

try-job: aarch64-apple
@bors bors closed this as completed in 246acdb May 6, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue May 6, 2025
Rollup merge of rust-lang#140357 - onur-ozkan:133840, r=clubby789

bypass linker configuration and cross target check on `x check`

I was going to handle this using the untracked env approach, but I realized it somehow doesn't regress rust-lang#130108 anymore...

Anyway, if it works, it works. 😄 No need to dig deeper but my guess is we moved some cache-invalidating env from these functions to others.

Fixes rust-lang#133840

try-job: aarch64-apple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cross Area: Cross compilation A-linkers Area: linkers... you gotta love linkers T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants