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

Bug 583210

Summary: cross-*/binutils: QA notice invalid self-reference install_name/reference to
Product: Gentoo/Alt Reporter: Michael Weiser <michael>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Silence QA warnings on OS X

Description Michael Weiser 2016-05-16 16:54:12 UTC
When compiling binutils as cross-toolchain on OS X I get QA notices such as:

 * QA Notice: invalid self-reference install_name /usr/local/gentoo/usr/x86_64-apple-darwin15/armv5tejl-softfloat-linux-gnueabi/lib/libopcodes-2.24.51.0.2.20131213.dylib in /usr/local/gentoo/usr/lib/binutils/armv5tejl-softfloat-linux-gnueabi/2.24.51.0.2/libopcodes-2.24.51.0.2.20131213.dylib
 * QA Notice: invalid reference to /usr/local/gentoo/usr/x86_64-apple-darwin15/armv5tejl-softfloat-linux-gnueabi/lib/libbfd-2.24.51.0.2.20131213.dylib in /usr/local/gentoo/usr/lib/binutils/armv5tejl-softfloat-linux-gnueabi/2.24.51.0.2/libopcodes-2.24.51.0.2.20131213.dylib
 * QA Notice: invalid reference to /usr/local/gentoo/usr/x86_64-apple-darwin15/armv5tejl-softfloat-linux-gnueabi/lib/libbfd-2.24.51.0.2.20131213.dylib in /usr/local/gentoo/usr/x86_64-apple-darwin15/armv5tejl-softfloat-linux-gnueabi/binutils-bin/2.24.51.0.2/addr2line

The attached patch for mangling install names and ids fixes that problem for me. I'm not sure if and how this would hit "native" binutils for OS X as well. But since when last I checked they didn't support mach-o and OS X I guess that point is moot.

Reproducible: Always
Comment 1 Michael Weiser 2016-05-16 16:54:59 UTC
Created attachment 434448 [details, diff]
Silence QA warnings on OS X
Comment 2 Michael Weiser 2017-12-29 10:45:31 UTC
Gone with current ebuilds.