-
Notifications
You must be signed in to change notification settings - Fork 122
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
undefined symbol: dgemm_ #609
Comments
Th "-L" options should only include the _directory_ that the libraries are in. The "-l" (lower case ell) options should include the library name _without_ the leading "lib" or the trailing ".a" or ".so" or anything else, so definitely "-llapack -lblas", assuming that's what those libraries are actually named on your system.
|
Also often the |
MATH_LINKOPTS= -L/usr/lib/x86_64-linux-gnu -llapack -lblas this is my final result. it's my .bashrc info and I checked nm what can I do another trier ? |
First, make sure that you cleaned up and recompiled after you changed those options. Can you upload the full output of the compilation and python install? Also, what's the output of |
Sorry for my late answer. and here's my compile log kyg@kyg-H510:~/QUIP$ make test Making libAtoms rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Making Potentials rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Making Utils rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Making Programs rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Making FilePot_drivers rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Making Structure_processors rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Making quippy rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile Installing quippy rm -f /home/kyg/QUIP/build/linux_x86_64_gfortran/Makefile |
Umm - this line
lists a file. Does that file actually not exist? |
kyg@kyg-H510:~/.local/lib/python3.10/site-packages/quippy$ ls I changed _quippy.cpython-310-x86_64-linux-gnu.so > quippy.cpython-310-x86_64-linux-gnu.so |
First, please use code blocks (three back quotes) when pasting command output, otherwise the spacing gets messed up. Second, don't blindly rename files in automatically installed directories - that's essentially never a good idea. I'm not sure why the filename has an extra underscore, but please paste the output of
|
Thx for ur advice.
|
I'm at a loss. The filename starting with underscore is true on my installation too, so I guess that's normal. Do you get the error if you do
(or Also, is there a specific reason you're not just using the pip installation? |
i don't understand I'm not using the pip installation, |
For quip/quippy - |
u mean, i have to proceed but i think i already got this
|
I've got the error code during "make test"
ImportError: /home/kyg/.local/lib/python3.10/site-packages/quippy/quippy.cpython-310-x86_64-linux-gnu.so: undefined symbol: dgemm
I searched and figured out my MATH_LINKOPTS can be a key to solve this problem, but I don't know how to fix it
my setting is like this
MATH_LINKOPTS= -llapack.so -lblas.so -L/usr/lib/x86_64-linux-gnu/libblas.so -L/usr/lib/x86_64-linux-gnu/liblapack.so
I tried
-llapck -lblas
-llapack.so -lblas.so
and I appended "export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu" at my .bashrc
Plz help me
The text was updated successfully, but these errors were encountered: