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

Bug 608266

Summary: sci-libs/lapack-reference-3.7.0: invalid install_name
Product: Gentoo/Alt Reporter: * <rfc469>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
ebuild patch

Description * 2017-02-05 07:21:54 UTC
My system is OS X El Capitan (10.11.6).
When I try emerging sci-libs/lapack-reference (pulled in by numpy) there is the following error during install:

 * ERROR: sci-libs/lapack-reference-3.7.0::gentoo_prefix failed:
 *   invalid install_name found, your application or library will crash at runtime

Not sure if this is related to Bug 605214, where I was getting the same error.

I worked around it using FEATURES="allow_broken_install_names" emerge ...
But shortly after that emerging cblas-reference fails. Not sure if it's related (I'll enter a different bug for that).

Reproducible: Always
Comment 1 * 2017-02-05 07:22:50 UTC
Created attachment 462470 [details]
emerge --info
Comment 2 * 2017-02-05 07:24:01 UTC
Created attachment 462472 [details]
build.log
Comment 3 Fabian Groffen gentoo-dev 2017-02-05 09:16:52 UTC
Please don't use allow_broken_installnames, the error is genuine and cascades into other problems, so please don't.

I'm sure the solution here is similar to the fix for cblas-reference: they move the dynamic libraries, but on Darwin this needs to be recorded in the libraries too (the install_names).
Comment 4 * 2017-02-05 17:55:46 UTC
Created attachment 462560 [details, diff]
ebuild patch
Comment 5 * 2017-02-05 17:56:47 UTC
Thanks, I copied from the blas-reference change and that fixed the problem.
Comment 6 Fabian Groffen gentoo-dev 2017-02-06 19:23:44 UTC
thanks