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

Fix build error on aarch64_be linux #539

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Jul 8, 2023

I tried to re-enable the test for aarch64_be-unknown-linux-gnu in my project as a fix for the core_simd bug was released, but ran into the following error.

error: couldn't read /home/runner/work/setup-cross-toolchain-action/setup-cross-toolchain-action/rust-cross-toolchain/target/aarch64_be-unknown-linux-gnu/debug/build/compiler_builtins-3cff6482b464b138/out/outlined_atomics.rs: No such file or directory (os error 2)
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.95/src/aarch64_linux.rs:270:1
    |
270 | include!(concat!(env!("OUT_DIR"), "/outlined_atomics.rs"));
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `compiler_builtins` (lib) due to previous error

(full log)

@taiki-e
Copy link
Member Author

taiki-e commented Jul 8, 2023

It seems CI failure is unrelated as it also occurs in the master branch: https://github.com/rust-lang/compiler-builtins/actions/runs/5484238227

taiki-e added a commit to taiki-e/setup-cross-toolchain-action that referenced this pull request Jul 8, 2023
rust-lang/compiler-builtins#539

```
error: couldn't read /home/runner/work/setup-cross-toolchain-action/setup-cross-toolchain-action/rust-cross-toolchain/target/aarch64_be-unknown-linux-gnu/debug/build/compiler_builtins-3cff6482b464b138/out/outlined_atomics.rs: No such file or directory (os error 2)
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.95/src/aarch64_linux.rs:270:1
    |
270 | include!(concat!(env!("OUT_DIR"), "/outlined_atomics.rs"));
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `compiler_builtins` (lib) due to previous error
```
taiki-e added a commit to taiki-e/atomic-maybe-uninit that referenced this pull request Jul 8, 2023
However, aarch64_be is still broken due to compiler-builtins bug:
rust-lang/compiler-builtins#539
taiki-e added a commit to taiki-e/portable-atomic that referenced this pull request Jul 8, 2023
However, aarch64_be linux is still broken due to compiler-builtins bug:
rust-lang/compiler-builtins#539
@Amanieu Amanieu merged commit 56ba188 into rust-lang:master Jul 17, 2023
21 checks passed
@taiki-e taiki-e deleted the aarch64-be-linux branch July 17, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants