Bug 2168622
| Summary: | rustc 1.67.0 on LLVM 14 crashes when compiling certain crates with LTO | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fabio Valentini <decathorpe> |
| Component: | rust | Assignee: | Josh Stone <jistone> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | amulhern, igor.raits, jistone, rust-sig, TicoTimo |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rust-1.67.1-1.fc36 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-02-19 02:11:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Fabio Valentini
2023-02-09 15:09:15 UTC
I reproduced this with LLVM assertions enabled, getting this failure: rustc: [...]/llvm/include/llvm/IR/Instructions.h:962: static llvm::GetElementPtrInst* llvm::GetElementPtrInst::Create(llvm::Type*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&, llvm::Instruction*): Assertion `cast<PointerType>(Ptr->getType()->getScalarType()) ->isOpaqueOrPointeeTypeMatches(PointeeType)' failed. error: could not compile `reqwest` Bisecting Rust 1.66 to 1.67 with this LLVM brought me to rust#104321, and comments there pointed me to a followup fix in rust#105082. Backporting that to 1.67 does fix it in my reproducer -- I'm testing a full rpm build in mock now. FEDORA-2023-31013e77ca has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-31013e77ca FEDORA-2023-31013e77ca has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-31013e77ca` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-31013e77ca See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-31013e77ca has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. |