https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-util/omake-0.10.3-r1 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 789422 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Cannot reproduce. No changes have been made to the ebuild since the bug was filed. My build logs do NOT contain -flto, though no filter-lto was used... my guess is that newer ocaml versions are stripping this automatically because, presumably, ocaml knows it is incompatible with LTO. This makes sense since the original errors looked like this: ocamlc -safe-string -g -w -40 -custom -o omake_gen_parse.byte unix.cma omake_gen_parse.cmo lto-wrapper: warning: using serial compilation of 5 LTRANS jobs lto-wrapper: note: see the ‘-flto’ option documentation[https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-flto] for more information /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/omake-0.10.3-r1/temp/ccxaaYHy.ltrans1.ltrans.o:(.debug_info+0x47): undefined reference to `signals.c.1808f637' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/omake-0.10.3-r1/temp/ccxaaYHy.ltrans1.ltrans.o:(.debug_info+0x5e): undefined reference to `backtrace.c.8d3a0b5c' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/omake-0.10.3-r1/temp/ccxaaYHy.ltrans1.ltrans.o:(.debug_info+0x79): undefined reference to `backtrace.c.8d3a0b5c' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/omake-0.10.3-r1/temp/ccxaaYHy.ltrans1.ltrans.o:(.debug_info+0x86): undefined reference to `backtrace.c.8d3a0b5c' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/omake-0.10.3-r1/temp/ccxaaYHy.ltrans1.ltrans.o:(.debug_info+0x9c): undefined reference to `backtrace.c.8d3a0b5c' /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/omake-0.10.3-r1/temp/ccxaaYHy.ltrans1.ltrans.o:(.debug_info+0xab): undefined reference to `backtrace.c.8d3a0b5c' looks like randomly generated ids...