Created attachment 653849 [details] emerge --info '=dev-lang/rust-1.45.2::gentoo' I am installing a Hardened profile on amd64, and there is what appears to be a CFLAGS issue with the included LLVM. This issue does not occur when building clang or llvm as ebuilds, so it appears to be related to the bundled LLVM not inheriting custom CFLAGS correctly. I am suspecting a CFLAGS issue because it's almost precisely the kind of compiler error I saw when CFLAGS and CXXFLAGS had mismatching -march settings on a previous Gentoo install.
Created attachment 653851 [details] build log
Note that segfaults are common on certain earlier(ish) Ryzens. Could you verify your BIOS/firmware is up to date, and you're applying the latest microcode?
does it always fail at the same file/step? or is it random?
Created attachment 653857 [details] Firefox build log
Applying a BIOS patch fixed the Rust compiler errors, but now there still may be something wrong with the resulting binary since Firefox is failing to build. See attachment.
you are welcome. nothing wrong with the binary > 814:15.75 error: options `-C embed-bitcode=no` and `-C lto` are incompatible something passes both and it errors out. it's a know issue compiling with 1.45 but supposed to be fixed. re-assigning to firefox maintainers. do you define any RUSTFLAGS manually btw?
I have not manually assigned any RUSTFLAGS.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01a6b7121c7492e614d7615221b4d30bd640e2c4 commit 01a6b7121c7492e614d7615221b4d30bd640e2c4 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-08-10 07:54:12 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-08-10 07:59:54 +0000 www-client/firefox: backport rust fix to v79 Closes: https://bugs.gentoo.org/736463 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/Manifest | 2 +- www-client/firefox/firefox-79.0-r2.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
I really don't understand at this point why *you* need this patch and others don't but...