-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: /lib/x86_64-linux-gnu/liblapacke.so.3: undefined symbol: cgesvdq_ #9
Comments
Hi @sheyu921! Sorry to hear you're having trouble. Could you please provide details of:
|
Thanks for your response so quickly, and I am sorry not to supply the details.
Finally, I change the content of "setup.cfg" as below:
Then, using the I used the 'ldd _gsvd.cpython-38-x86_64-linux-gnu.so', and the results show as bellow:
Looks like the shared libs have been linked correctly. However, when I import pygsvd, the errors show as below:
What should I do? Changing the version of python will solve the problem? Thank you!. |
Thanks for the detailed information, that's very helpful. I'm not sure if using WSL changes the story at all, but we can try to debug assuming it does not, acting as if you're working on a vanilla Ubuntu distribution. The underlying issue that your It would be helpful to know if you can compile and link a small example executable successfully against your LAPACK implementation at all. You should be able to build and run the following example without any compilation or linking errors. The example will segfault immediately, so don't worry about that. We're just testing if we can successfully use LAPACK on your system, independent of the extension module. #include "lapacke.h"
int main(int argc, char** argv) {
int ret = LAPACKE_dggsvd3(
LAPACK_ROW_MAJOR, 'N', 'N', 'N', 0, 0, 0, NULL, NULL, NULL, 0, NULL, 0, NULL,
NULL, NULL, 0, NULL, 0, NULL, 0, NULL
);
} Compile and run with |
I am using ubuntu 22.04
|
@3togo Sorry to hear you're having issues. I've not looked at this issue in quite some time now, but I'll try to assist. You're seeing a failure to link the executable. The executable depends on To expand a bit, Also, I'm not entirely clear why this should be needed. If you installed While I'm here, @sheyu921 did you ever get this issue resolved? |
ubuntu 22.10 might be very different. gcc -o example example.c -llapacke => won't work 0x00007fffee7a0193 in mkl_lapack.dggsvd3_ () from /lib/x86_64-linux-gnu/libmkl_intel_lp64.so |
@3togo It would help a great deal if you could provide answers to my questions above. How did you install LAPACK itself on your system? Through
What does "won't work" mean here, exactly?
This segfault should be very easy to track down. Can you locate the invalid pointer that's being dereferenced? That should be some pointer that |
Hi:
I can not import the pygsvd, the errors show as blew:
ImportError Traceback (most recent call last)
in
----> 1 import pygsvd as gsvd
~/miniconda3/lib/python3.8/site-packages/pygsvd.py in
1 import numpy as np
----> 2 import _gsvd
3
4 def gsvd(A, B, full_matrices=False, extras='uv'):
5 '''Compute the generalized singular value decomposition of
ImportError: /lib/x86_64-linux-gnu/liblapacke.so.3: undefined symbol: cgesvdq_
What should I do? Thank you!
The text was updated successfully, but these errors were encountered: