deepmodeling / deepmd-kit

A deep learning package for many-body potential energy representation and molecular dynamics
https://docs.deepmodeling.com/projects/deepmd/
GNU Lesser General Public License v3.0
1.48k stars 508 forks source link

Error installing lammps from USER-DEEPMD #4086

Closed mayankaditya closed 3 weeks ago

mayankaditya commented 2 months ago

Summary

Hi, I am trying to install the lammps with USER-DEEPMD. I followed the procedure as described in the webpage. However I am getting the following error: /home/mayank/SOFTWARE/lammps/bin/../lib/gcc/x86_64-conda-linux-gnu/11.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/mayank/SOFTWARE/lammps/lib/libdeepmd_c.so: undefined reference to `memcpy@GLIBC_2.14'

Please advise.

Thanks, Mayank

DeePMD-kit Version

2.2.11

Backend and its version

TensorFlow v2.15.0

Python Version, CUDA Version, GCC Version, LAMMPS Version, etc

No response

Details

Hi, I am trying to install the lammps with USER-DEEPMD. I followed the procedure as described in the webpage. However I am getting the following error: /home/mayank/SOFTWARE/lammps/bin/../lib/gcc/x86_64-conda-linux-gnu/11.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/mayank/SOFTWARE/lammps/lib/libdeepmd_c.so: undefined reference to `memcpy@GLIBC_2.14'

Please advise.

Thanks, Mayank

njzjz commented 2 months ago

/home/mayank/SOFTWARE/lammps/bin/../lib/gcc/x86_64-conda-linux-gnu/11.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/mayank/SOFTWARE/lammps/lib/libdeepmd_c.so: undefined reference to `memcpy@GLIBC_2.14'

It looks to me like you compiled libdeepmd_c.so with a higher GLIBC version and then used ld with a lower GLIBC version.

njzjz commented 3 weeks ago

I close this issue as there is no active task for developers.