Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 855656

Summary: dev-util/omake-0.10.3-r1 fails to compile (lto): undefined reference to getaddrinfo.c.b219a08e
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WORKSFORME    
Severity: normal CC: eschwartz93
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2022-07-02 07:21:37 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-02 07:21:40 UTC
Created attachment 789422 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Eli Schwartz 2024-03-03 20:48:38 UTC
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...