{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/6486","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/6486/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/6486/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/6486/events","html_url":"https://github.com/scipy/scipy/issues/6486","id":170822871,"number":6486,"title":"scipy compilation issues with openblas on mac os x","user":{"login":"climberpi","id":3295326,"avatar_url":"https://avatars.githubusercontent.com/u/3295326?v=3","gravatar_id":"","url":"https://api.github.com/users/climberpi","html_url":"https://github.com/climberpi","followers_url":"https://api.github.com/users/climberpi/followers","following_url":"https://api.github.com/users/climberpi/following{/other_user}","gists_url":"https://api.github.com/users/climberpi/gists{/gist_id}","starred_url":"https://api.github.com/users/climberpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/climberpi/subscriptions","organizations_url":"https://api.github.com/users/climberpi/orgs","repos_url":"https://api.github.com/users/climberpi/repos","events_url":"https://api.github.com/users/climberpi/events{/privacy}","received_events_url":"https://api.github.com/users/climberpi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/Build%20issues","name":"Build issues","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T08:30:09Z","updated_at":"2016-08-13T17:51:20Z","closed_at":"2016-08-12T09:36:16Z","body":"Hi guys. I try to compile numpy and scipy with OpenBLAS on Mac OS X, and I changed the site.cfg file. It works for numpy, but for scipy it doesn't work. Errors are as below. \r\n\r\n>     /usr/local/bin/gfortran -Wall -g -arch x86_64 -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-10.6-intel-3.5/scipy/integrate/_quadpackmodule.o -L/opt/OpenBLAS/lib -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin14/5.1.0 -Lbuild/temp.macosx-10.6-intel-3.5 -Wl,-rpath=\"/opt/OpenBLAS/lib\" -lquadpack -lmach -lopenblas -lopenblas -lgfortran -o build/lib.macosx-10.6-intel-3.5/scipy/integrate/_quadpack.cpython-35m-darwin.so\r\n    ld: unknown option: -rpath=/opt/OpenBLAS/lib\r\n    collect2: error: ld returned 1 exit status\r\n    ld: unknown option: -rpath=/opt/OpenBLAS/lib\r\n    collect2: error: ld returned 1 exit status\r\n    error: Command \"/usr/local/bin/gfortran -Wall -g -arch x86_64 -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-10.6-intel-3.5/scipy/integrate/_quadpackmodule.o -L/opt/OpenBLAS/lib -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin14/5.1.0 -Lbuild/temp.macosx-10.6-intel-3.5 -Wl,-rpath=\"/opt/OpenBLAS/lib\" -lquadpack -lmach -lopenblas -lopenblas -lgfortran -o build/lib.macosx-10.6-intel-3.5/scipy/integrate/_quadpack.cpython-35m-darwin.so\" failed with exit status 1\r\n\r\nIt seems that this issue caused by the difference of rpath option between OS X and linux, but how to change something and make this thing work?\r\nhttp://stackoverflow.com/questions/26472590/ld-unknown-option-rpath-libs-linking-error-while-building-openframework\r\n"},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/239633155","html_url":"https://github.com/scipy/scipy/issues/6486#issuecomment-239633155","issue_url":"https://api.github.com/repos/scipy/scipy/issues/6486","id":239633155,"user":{"login":"climberpi","id":3295326,"avatar_url":"https://avatars.githubusercontent.com/u/3295326?v=3","gravatar_id":"","url":"https://api.github.com/users/climberpi","html_url":"https://github.com/climberpi","followers_url":"https://api.github.com/users/climberpi/followers","following_url":"https://api.github.com/users/climberpi/following{/other_user}","gists_url":"https://api.github.com/users/climberpi/gists{/gist_id}","starred_url":"https://api.github.com/users/climberpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/climberpi/subscriptions","organizations_url":"https://api.github.com/users/climberpi/orgs","repos_url":"https://api.github.com/users/climberpi/repos","events_url":"https://api.github.com/users/climberpi/events{/privacy}","received_events_url":"https://api.github.com/users/climberpi/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T17:51:20Z","updated_at":"2016-08-13T17:51:20Z","body":"@rgommers Thanks for reply. Actually it is almost irrelevant with site.cfg, this issue just caused by the **rpath** option during the compiling process. For Linux, it should be **rpath=somepath**; and for OS X, it should be **rpath,somepath**, as [the StackOverflow question ](http://stackoverflow.com/questions/26472590/ld-unknown-option-rpath-libs-linking-error-while-building-openframework)I mentioned above. \r\nNumpy's distutils generate these things, and maybe you can add some codes in numpy/distutils/fcompiler/gnu.py, and make it generates these things depend on operating systems."}}
{"actor":{"display_login":"climberpi"}}