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

[homebrew] rust 1.73.0 failed to build on 12-arm #117299

Closed
chenrui333 opened this issue Oct 27, 2023 · 3 comments
Closed

[homebrew] rust 1.73.0 failed to build on 12-arm #117299

chenrui333 opened this issue Oct 27, 2023 · 3 comments
Labels
C-bug Category: This is a bug. O-macos Operating system: macOS T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@chenrui333
Copy link

We've got a weird error while trying to upgrade rust to 1.73.0. The error seems only happened in 12-arm build:

  thread 'main' panicked at 'could not read dir "/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/build/aarch64-apple-darwin/stage0/lib/rustlib/aarch64-apple-darwin/codegen-backends": Os { code: 2, kind: NotFound, message: "No such file or directory" }', lib.rs:1714:25

Some host toolchain:

Clang: 14.0.0 build 1400
macOS: 12.6.3-arm64

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/6660485676/job/18101828627?pr=149754
relates to Homebrew/homebrew-core#149754

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Oct 27, 2023
@workingjubilee workingjubilee added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 28, 2023
@bjorn3 bjorn3 added O-macos Operating system: macOS T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) and removed T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Oct 28, 2023
@saethlin saethlin added 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 Oct 29, 2023
@chenrui333
Copy link
Author

Any takes on this? Thanks!

@Bo98
Copy link

Bo98 commented Nov 16, 2023

This regressed in bb8c497 but it appears to have been fixed in amongst the various bundled fixes of db3e2ba#diff-5a1e05f2688d271039171a547d407d0c8a96715ee64d35562fc76b4c9a874303L595.

It is not clear to me why it only failed on macOS 12 (earlier versions untested), but it does seem to be fixed now.

If possible, it might be worth backporting the small relevant part of that change to beta.

@chenrui333
Copy link
Author

chenrui333 commented Nov 16, 2023

on top of what @Bo98 said, we have incorporated the build patch in Homebrew/homebrew-core#154526

(gonna close this issue now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-macos Operating system: macOS T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants