{"action":"created","issue":{"url":"https://api.github.com/repos/PythonOptimizers/HSL.py/issues/8","repository_url":"https://api.github.com/repos/PythonOptimizers/HSL.py","labels_url":"https://api.github.com/repos/PythonOptimizers/HSL.py/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/PythonOptimizers/HSL.py/issues/8/comments","events_url":"https://api.github.com/repos/PythonOptimizers/HSL.py/issues/8/events","html_url":"https://github.com/PythonOptimizers/HSL.py/issues/8","id":186091283,"number":8,"title":"Python import errors for MA27 and MA57","user":{"login":"lambe","id":1258419,"avatar_url":"https://avatars.githubusercontent.com/u/1258419?v=3","gravatar_id":"","url":"https://api.github.com/users/lambe","html_url":"https://github.com/lambe","followers_url":"https://api.github.com/users/lambe/followers","following_url":"https://api.github.com/users/lambe/following{/other_user}","gists_url":"https://api.github.com/users/lambe/gists{/gist_id}","starred_url":"https://api.github.com/users/lambe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambe/subscriptions","organizations_url":"https://api.github.com/users/lambe/orgs","repos_url":"https://api.github.com/users/lambe/repos","events_url":"https://api.github.com/users/lambe/events{/privacy}","received_events_url":"https://api.github.com/users/lambe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-29T17:47:10Z","updated_at":"2017-01-29T17:33:44Z","closed_at":null,"body":"(This is the same issue I mentioned to @syarra privately earlier this week.)\n\nThe module compiles with no issues and importing MC21, MC29, and MC60 modules in Python is fine. However importing the solvers MA27 and MA57 gives the following error:\n\n```\nfrom hsl.solvers import _pyma27\nImportError: /home/andrew/anaconda3/envs/nlpy-dev/lib/python2.7/site-packages/hsl-0.1.0.dev0-py2.7-linux-x86_64.egg/hsl/solvers/_pyma27.so: undefined symbol: cblas_idamax\n```\n\nThe symbol in question is identified in cblas.h (both in this repo and different versions on my laptop, such as the one included with OpenBLAS) so I suspect a bad include or link of some kind.\n\nSome diagnostics: I compiling the master branch on Ubuntu 16.04, using python 2.7 through the Anaconda distribution (via a virtual environment). If I test the built *.so modules with `ld` directly, I get\n\n```\nld: warning: cannot find entry symbol _start; not setting start address\n_pyma27.so: undefined reference to `cblas_idamax'\n_pyma27.so: undefined reference to `cblas_dcopy'\n_pyma27.so: undefined reference to `cblas_daxpy'\n```\n\nand \n\n```\nld: warning: cannot find entry symbol _start; not setting start address\n_pyma57.so: undefined reference to `dgemm_'\n_pyma57.so: undefined reference to `dtpsv_'\n_pyma57.so: undefined reference to `cblas_dcopy'\n_pyma57.so: undefined reference to `idamax_'\n_pyma57.so: undefined reference to `dgemv_'\n```\n\nfor _pyma27.so and _pyma57.so respectively. Again, everything seems to point to cblas.h not being correctly handled.\n"},"comment":{"url":"https://api.github.com/repos/PythonOptimizers/HSL.py/issues/comments/275930555","html_url":"https://github.com/PythonOptimizers/HSL.py/issues/8#issuecomment-275930555","issue_url":"https://api.github.com/repos/PythonOptimizers/HSL.py/issues/8","id":275930555,"user":{"login":"dpo","id":38760,"avatar_url":"https://avatars.githubusercontent.com/u/38760?v=3","gravatar_id":"","url":"https://api.github.com/users/dpo","html_url":"https://github.com/dpo","followers_url":"https://api.github.com/users/dpo/followers","following_url":"https://api.github.com/users/dpo/following{/other_user}","gists_url":"https://api.github.com/users/dpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpo/subscriptions","organizations_url":"https://api.github.com/users/dpo/orgs","repos_url":"https://api.github.com/users/dpo/repos","events_url":"https://api.github.com/users/dpo/events{/privacy}","received_events_url":"https://api.github.com/users/dpo/received_events","type":"User","site_admin":false},"created_at":"2017-01-29T17:33:44Z","updated_at":"2017-01-29T17:33:44Z","body":"Should probably add an option in `site.cfg` to specify the BLAS/LAPACK libs that we want."}}
{"actor":{"display_login":"dpo"}}