https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lang/mercury-22.01.1 fails to compile. Discovered on: amd64 (internal ref: lto_tinderbox) System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 885219 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: ../scripts/mmc: line 35: /usr/bin/mercury_compile: No such file or directory configure: WARNING: /usr/lib/cgi-bin does not exist. machdeps/x86_64_regs.h:37:25: error: global register variable follows a function definition
global register variables and LTO don't mix.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c316d7e2bbe573c43b1ea26751da5a48f14a0c3c commit c316d7e2bbe573c43b1ea26751da5a48f14a0c3c Author: Eli Schwartz <eschwartz@gentoo.org> AuthorDate: 2024-10-11 05:22:44 +0000 Commit: Eli Schwartz <eschwartz@gentoo.org> CommitDate: 2024-10-14 05:27:11 +0000 dev-lang/mercury: mark as LTO-unsafe It is using global register variables, and there's a GCC bug that makes this not work with lto. Closes: https://bugs.gentoo.org/924767 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> dev-lang/mercury/mercury-22.01.1-r1.ebuild | 5 +++++ 1 file changed, 5 insertions(+)