Emerge said to provide the following: emerge --info '=app-misc/tealdeer-1.5.0::guru' http://ix.io/3Lsz emerge -pqv '=app-misc/tealdeer-1.5.0::guru' http://ix.io/3LsA /var/tmp/portage/app-misc/tealdeer-1.5.0/temp/build.log http://ix.io/3LsC I have experienced a similar error in the past when using cargo, it might be a missing dependency
Please attach the relevant logs, pastebins expire. Thanks!
Created attachment 761666 [details] build.log
Created attachment 761667 [details] emerge --info '=app-misc⁄tealdeer-1.5.0::guru'
Created attachment 761668 [details] emerge -pqv '=app-misc⁄tealdeer-1.5.0::guru'
It looks like you overoptimized your system resulting to the failure, try removing the LTO related and O3 flags from CFLAGS and recompiling. The ebuild should automatically remove the flags in question, I'll push out a fix today.
(In reply to Vladislav Dudar from comment #5) > It looks like you overoptimized your system resulting to the failure, try > removing the LTO related and O3 flags from CFLAGS and recompiling. The > ebuild should automatically remove the flags in question, I'll push out a > fix today. I don't think cargo cares about CFLAGS (for rust-only crates). Only RUSTFLAGS which is unset according to emerge --info. I wouldn't remove flags until the reporter can confirm it fixes the issue anyways.
James, the "ring" crate which is causing the issue in question does some obscure stuff while compiling itself. The entirety of the /crypto directory is written in either C or some other ASM-alike language. Also, I think there's been some similar issue in ::gentoo which got fixed by forcing the ebuild to skip LTO flags, plus another Rust based program had a bug report with it bombing the compile when -O3 is used. References: https://github.com/briansmith/ring/tree/main/crypto https://github.com/InBetweenNames/gentooLTO/issues/781 https://github.com/gentoo/gentoo/commit/78e0d4ea5ceacc407f7c3acdec0b0eb2eff08ef0
Fixed in Git but I forgot to mention the bug number in the commit, can someone @ Gentoo dev team close this now? Thanks in advance.
Thanks for the info, you are correct of course. There's also an upstream bug report about it: https://github.com/briansmith/ring/issues/1444 I'll close this once your commit has been merged into master