Description
https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:Factory/rust/p/ppc
Dist RLS stage2 (powerpc-unknown-linux-gnu)
Building stage2 tool clippy-driver (powerpc-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.59s
Building stage2 tool rls (powerpc-unknown-linux-gnu)
Compiling rls v1.35.0 (/home/abuild/rpmbuild/BUILD/rustc-1.35.0-src/src/tools
/rls)
error[E0432]: unresolved import std::sync::atomic::AtomicU64
--> src/tools/rls/rls/src/cmd.rs:10:25
|
10 | use std::sync::atomic::{AtomicU64, Ordering};
| ^^^^^^^^^
| |
| no AtomicU64
in sync::atomic
| help: a similar name exists in the module: AtomicU16
error[E0432]: unresolved import std::sync::atomic::AtomicU64
--> src/tools/rls/rls/src/server/io.rs:10:25
|
10 | use std::sync::atomic::{AtomicU64, Ordering};
| ^^^^^^^^^
| |
| no AtomicU64
in sync::atomic
| help: a similar name exists in the module: AtomicU16
error: aborting due to 2 previous errors
For more information about this error, try rustc --explain E0432
.
error: Could not compile rls
.
To learn more, run the command again with --verbose.
command did not execute successfully: "/home/abuild/rpmbuild/BUILD/rust-1.35.0-powerpc-unknown-linux-gnu/usr/bin/cargo" "build" "--target" "powerpc-unknown-linux-gnu" "-j" "8" "--release" "--frozen" "--manifest-path" "/home/abuild/rpmbuild/BUILD/rustc-1.35.0-src/src/tools/rls/Cargo.toml" "--features" "clippy" "--message-format" "json"
expected success, got: exit code: 101
thread 'main' panicked at 'Unable to build RLS', src/bootstrap/dist.rs:65:9
note: Run with RUST_BACKTRACE=1
environment variable to display a backtrace.
failed to run: /home/abuild/rpmbuild/BUILD/rustc-1.35.0-src/build/bootstrap/debug/bootstrap install
Activity
jonas-schievink commentedon Jul 1, 2019
A PowerPC miscompilation I guess?hellow554 commentedon Jul 1, 2019
@andreas-schwab please put the error output into a region surrounded by three backticks (```)
mati865 commentedon Jul 1, 2019
Enabling RLS tool requires platform to have 64 bit atomics available which isn't true on 32 bit PowerPC.
You can either disable RLS on affected platforms or patch it to work with 32 bit atomics, related RLS PR: rust-lang/rls#910
hellow554 commentedon Jul 1, 2019
https://doc.rust-lang.org/std/sync/atomic/index.html#portability
jonas-schievink commentedon Jul 1, 2019
Okay, closing as an expected build failure then. Please open an issue on the RLS repo if this needs fixing.