{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/595","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/595/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/595/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/595","id":123204218,"number":595,"title":"openblas 0.2.14-3 links to /usr/local/lib/libgfortran.2.dylib on OS X","user":{"login":"pkgw","id":59598,"avatar_url":"https://avatars.githubusercontent.com/u/59598?v=3","gravatar_id":"","url":"https://api.github.com/users/pkgw","html_url":"https://github.com/pkgw","followers_url":"https://api.github.com/users/pkgw/followers","following_url":"https://api.github.com/users/pkgw/following{/other_user}","gists_url":"https://api.github.com/users/pkgw/gists{/gist_id}","starred_url":"https://api.github.com/users/pkgw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkgw/subscriptions","organizations_url":"https://api.github.com/users/pkgw/orgs","repos_url":"https://api.github.com/users/pkgw/repos","events_url":"https://api.github.com/users/pkgw/events{/privacy}","received_events_url":"https://api.github.com/users/pkgw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"groutr","id":10678620,"avatar_url":"https://avatars.githubusercontent.com/u/10678620?v=3","gravatar_id":"","url":"https://api.github.com/users/groutr","html_url":"https://github.com/groutr","followers_url":"https://api.github.com/users/groutr/followers","following_url":"https://api.github.com/users/groutr/following{/other_user}","gists_url":"https://api.github.com/users/groutr/gists{/gist_id}","starred_url":"https://api.github.com/users/groutr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groutr/subscriptions","organizations_url":"https://api.github.com/users/groutr/orgs","repos_url":"https://api.github.com/users/groutr/repos","events_url":"https://api.github.com/users/groutr/events{/privacy}","received_events_url":"https://api.github.com/users/groutr/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-21T03:29:47Z","updated_at":"2016-01-25T14:50:13Z","closed_at":null,"body":"The shared library distributed in the `openblas` binary package has a dependency on `/usr/local/lib/libgfortran.2.dylib`, at least in version `0.2.14-3` of the package. This effectively means that you have to have a Homebrew installation with the cloned Apple GCC for the library to work. I'm not sure what exactly Anaconda's binary compatibility policies are, but my impression is that these sorts of external dependencies are intended to be avoided.\r\n\r\n```\r\nAnaconda 19:21 info $ otool -L /conda/lib/libopenblasp-r0.2.14.dylib \r\n/conda/lib/libopenblasp-r0.2.14.dylib:\r\n\tlibopenblasp-r0.2.14.dylib (compatibility version 0.0.0, current version 0.0.0)\r\n\t/usr/local/lib/libgfortran.2.dylib (compatibility version 3.0.0, current version 3.0.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)\r\n\t/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n```\r\n\r\nI would investigate patching the build recipe, but [the version posted in conda/conda-recipes](https://github.com/conda/conda-recipes/tree/master/openblas) is for build version 2 of the package, and judging by the file contents, things were heavily revised for version 3.\r\n\r\nSolving this problem is probably a matter of providing a `-static-libgfortran` flag to the appropriate link line.\r\n\r\nI'll also note that the dylib weighs in at 56 megabytes, which seems quite hefty. But maybe that's not unreasonable."},"comment":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/comments/174528894","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/595#issuecomment-174528894","issue_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/595","id":174528894,"user":{"login":"pkgw","id":59598,"avatar_url":"https://avatars.githubusercontent.com/u/59598?v=3","gravatar_id":"","url":"https://api.github.com/users/pkgw","html_url":"https://github.com/pkgw","followers_url":"https://api.github.com/users/pkgw/followers","following_url":"https://api.github.com/users/pkgw/following{/other_user}","gists_url":"https://api.github.com/users/pkgw/gists{/gist_id}","starred_url":"https://api.github.com/users/pkgw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkgw/subscriptions","organizations_url":"https://api.github.com/users/pkgw/orgs","repos_url":"https://api.github.com/users/pkgw/repos","events_url":"https://api.github.com/users/pkgw/events{/privacy}","received_events_url":"https://api.github.com/users/pkgw/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T14:50:13Z","updated_at":"2016-01-25T14:50:13Z","body":"As an update, my interpretation is that this package should be avoided on OS X — the OS comes with BLAS libraries built in. So in the end, I ended up not needing to have openblas as a dependency for my package."}}