-
Notifications
You must be signed in to change notification settings - Fork 165
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 "ycnrm2" #817
Comments
@chemsh Did you set the environmental variable |
Hi Edo, @edoapra no, we didn't set the variable However, I just tried forcing not to define the preprocessor by passing in a Fortran compile flag This ld linking issue is not seen when the standalone executable nwchem is created on the same machine, but only in Py-ChemShell. Many thanks! Kind regards, You |
Hi @edoapra, Just to add to You's report, we've seen a few more linking errors on the same platform that arise outside of gwmol. These are Best wishes, Tom |
Please submit all the detail to reproduce these problems since I am not able to see them otherwise. |
For example, the log of the compilation |
Have you defined the environment variable
|
Hi Edo, thank you for the advice. Unfortunately it's not easy to reproduce the error because it's not seen unless we compile Py-ChemShell with directly linked-in NWChem 7.2 on a specific HPC machine (the UK's ARCHER2) where only GNU and Cray-MPI is available. We did not set
The above reported linking error only happens when ld links against libnwchem.so (a shared lib of ChemShell containing the NWChem static libs) due to gwmol and libga.so (GA as shared library for ChemShell) due to PeiGS (needed by GA). The above pasted Bash script doesn't result in any issue for generating nwchem the executable, even without the In any case, we are afraid that the cause is that none of Thanks a lot! |
I believe the root cause of the problem is that ChemShell, by linking NWChem as a library, uses objects that NWChem does not link since they are not referenced. |
Hi Edo, @edoapra many thanks again for your prompt response! I can confirm that with the latest hotfix release 7.2.0 compiles in Py-ChemShell without any more linking issue. The problem is gone! Thank you so much! I'm closing the current Issue. |
Many thanks for your help @edoapra ! Tom |
Dear NWChem authors,
we find a minor bug in NWChem 7.2 the hotfix version
https://github.com/nwchemgit/nwchem/archive/refs/heads/hotfix/release-7-2-0.zip
The source file src/gwmol/cs_minres_qlp.F requires BLAS function
ycnrm2
which is converted fromdznrm2
by the 64to32 configure. However this 32-bit function is not in the folder 64to32blas (if I understand the 64to32 mechanism correctly). It causes a linking issue when NWChem 7.2 is compiled with GNU compilers as a shared library directly-linked against Py-ChemShell. We never had this issue before (of course GW is new in 7.2), nor is it seen when compiling with Intel. Replacing allycnrm2
withdznrm2
in src/gwmol/cs_minres_qlp.F can eliminate the issue. However, we think it may be a bug? Thank you very much.Kind regards,
You
The text was updated successfully, but these errors were encountered: