+++ This bug was initially created as a clone of Bug #1410950 +++
Description of problem:
Attempts to bootstrap Rust on s390x failed with an LLVM ERROR on f24 and f25. The same srpm on f26 (with LLVM 3.9) is fine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpmbuild --rebuild rust-1.14.0-1.fc25.src.rpm
(or try again on s390.koji)
LLVM ERROR: Cannot select: 0x3ff793b6d90: ch = AtomicFence 0x3ff70818a70, Constant:i64<4>, Constant:i64<1>
0x3ff728d89c0: i64 = Constant<4>
0x3ff793b7120: i64 = Constant<1>
In function: _ZN33_$LT$alloc..arc..Arc$LT$T$GT$$GT$9drop_slow17h19a3f415d8721b31E
no compiler errors :)
A similar problem was reported upstream for compiling v8 with Clang 3.8, then closed when it was found to work with 3.9. That's probably a simpler reproducer.
Also, the rawhide builds of Rust with LLVM 3.9 were fine:
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Because there is now llvm 3.9 in F-25 for some time it should be possible to get Rust built there too. I'll try some tricks :-)
I've rebuilt the "old" portion of the rust stack with llvm 3.9 instead of llvm 3.8 and all went well till the latest rust and cargo.