commit:     b3e643353b25028826a85390411a840ed0deecec
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 22:52:00 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 05:27:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3e64335

dev-lang/mercury-extras: mark as LTO-unsafe

It appears to be a fundamental design issue. It is not really C code,
though they do generate it as an intermediate format.

```
ccJwDryZ.ltrans0.ltrans.o:(.data.rel.ro.local+0x330): undefined reference to 
`<unification predicate for type 'align_right.squeeze'/0 mode 0>'
```

Closes: https://bugs.gentoo.org/855638
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-lang/mercury-extras/mercury-extras-22.01.1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-lang/mercury-extras/mercury-extras-22.01.1.ebuild 
b/dev-lang/mercury-extras/mercury-extras-22.01.1.ebuild
index 239c88e3cd60..441311e6c725 100644
--- a/dev-lang/mercury-extras/mercury-extras-22.01.1.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-22.01.1.ebuild
@@ -191,6 +191,12 @@ src_prepare() {
 }
 
 src_compile() {
+       # ccJwDryZ.ltrans0.ltrans.o:(.data.rel.ro.local+0x330): undefined 
reference to `<unification predicate for type 'align_right.squeeze'/0 mode 0>'
+       # https://bugs.gentoo.org/855638
+       #
+       # Custom language-specific compiler infrastructure, the main mercury 
compiler cannot handle LTO either.
+       filter-lto
+
        for mercury_pkg in $(mercury_pkgs); do
                mercury_pkg_compile ${mercury_pkg}
        done

Reply via email to