Summary: | dev-lang/rust-1.74.1[lto] fails to compile on x86: error: could not compile `rustc_driver` (lib) (thread 'fatal runtime error: Rust cannot catch foreign exceptions coordinator' panicked) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Gentoo Rust Project <rust> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matoro_gentoo, navi, randy, sam, x86 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
See Also: |
https://github.com/rust-lang/rust/issues/120701 https://bugs.gentoo.org/show_bug.cgi?id=924301 https://bugs.gentoo.org/show_bug.cgi?id=924396 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550, 920441 | ||
Attachments: | build.log and emerge --info |
Description
matoro
![]() Created attachment 883568 [details]
build.log and emerge --info
I haven't yet been able to find anything at all about this upstream... It's got to be related to https://github.com/rust-lang/rust/issues/120701. I don't see anything in recent lock_api or memoffset commits.. It looks like memoffset got removed too: https://github.com/rust-lang/rust/commit/28e60de4879786a02c215f83f8ba96f474bcbcaa, which is why 1.75.0 may be fine. matoro do newer versions work? In your log, there's also: ``` thread 'fatal runtime error: Rust cannot catch foreign exceptions coordinator' panicked at compiler/rustc_middle/src/util/bug.rs:36:26: /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/compiler/rustc_codegen_ssa/src/back/write.rs:1594:29: worker thread panicked stack backtrace: rustc exited with signal: 6 (SIGABRT) (core dumped) error: could not compile `rustc_driver` (lib) Caused by: Did not run successfully: signal: 6 (SIGABRT) (core dumped) ``` ... Ah, USE=lto. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e79b4fdb86877d73cbd33ae19dc4eb1be6a1ea5 commit 3e79b4fdb86877d73cbd33ae19dc4eb1be6a1ea5 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-04 06:51:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-04 06:51:20 +0000 profiles/arch/x86: mask >=dev-lang/rust-1.74.1[lto] Miscompiles rust and fails to bootstrap. Closes: https://bugs.gentoo.org/923278 Signed-off-by: Sam James <sam@gentoo.org> profiles/arch/x86/package.use.mask | 4 ++++ 1 file changed, 4 insertions(+) |