https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lang/mercury-extras-22.01.1 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 789404 [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: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0x130): undefined reference to `<unification predicate for type 'align_right.params'/0 mode 0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0x138): undefined reference to `<compare/3 predicate for type 'align_right.params'/0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0x190): undefined reference to `<unification predicate for type 'align_right.option'/0 mode 0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0x198): undefined reference to `<compare/3 predicate for type 'align_right.option'/0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0x70): undefined reference to `<unification predicate for type 'align_right.squeeze'/0 mode 0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0x78): undefined reference to `<compare/3 predicate for type 'align_right.squeeze'/0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0xd0): undefined reference to `<unification predicate for type 'align_right.pat_line'/0 mode 0>' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/mercury-extras-22.01.1/temp/cciI5oC6.ltrans0.ltrans.o:(.data.rel.ro+0xd8): undefined reference to `<compare/3 predicate for type 'align_right.pat_line'/0>' <artificial>:(.text+0x52f): undefined reference to `<predicate 'main'/2 mode 0>' collect2: error: ld returned 1 exit status