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

Bug 530928

Summary: >=net-dns/unbound-1.5.0: does not respect CFLAGS (injects -flto)
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: [OLD] UnspecifiedAssignee: Proxy Maintainers <proxy-maint>
Status: RESOLVED FIXED    
Severity: QA CC: jer, nabeken
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506, 532000    
Attachments: Build log

Description Mike Gilbert gentoo-dev 2014-11-28 03:38:59 UTC
* QA Notice: Files built without respecting CFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib64/libunbound.so.2.3.3
 * /usr/lib/libunbound.so.2.3.3
Comment 1 Mike Gilbert gentoo-dev 2014-11-28 03:46:46 UTC
Created attachment 390442 [details]
Build log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-01 20:07:03 UTC
lto1: out of memory allocating 16711417868 bytes after a total of 274432 bytes
lto-wrapper: /usr/powerpc64-unknown-linux-gnu/gcc-bin/4.8.4/powerpc64-unknown-linux-gnu-gcc returned 1 exit status
/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.8.4/../../../../powerpc64-unknown-linux-gnu/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

That's a lot of bytes.
Comment 3 Mike Gilbert gentoo-dev 2015-05-04 00:10:18 UTC
The problem persists in 1.5.2.
Comment 4 Mike Gilbert gentoo-dev 2015-05-05 20:48:37 UTC
(In reply to Jeroen Roovers from comment #2)

Thanks for the hint on -flto. Disabling that resolves the CFLAGS issue; I believe LTO strips the flags information from the final objects.

+  05 May 2015; Mike Gilbert <floppym@gentoo.org> unbound-1.5.1-r2.ebuild,
+  unbound-1.5.2.ebuild, unbound-1.5.3.ebuild:
+  Disable -flto via configure, bug 530928.