Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
-
There is no lmp_mpi in the source directory. Yes I know the object files should be in Obj_mpi. /usr/bin/ld: fix_npt_cauchy.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC |
Beta Was this translation helpful? Give feedback.
-
What version of LAMMPS do you use? I think it's an issue related to LAMMPS itself. DeePMD-kit plugin does nothing to |
Beta Was this translation helpful? Give feedback.
-
Yes, thanks, I know what you mean, it's about LAMMPS, but I was following the instructions on this website to build LAMMPS, (traditonal make), and something is missing. I am installing the March 2020 stable version. I don't know how to "recompile with -fPIC", and have read that it may mean something else, and so I'm stuck again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
New problem for LAMMPS build:
I had errors which said recompile with -fPIC due to a PIE error. After poking around a lot, I added the flag to the build command: make mpi -j4 -no-pie.
It ended with:
-L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o ../lmp_mpi
size ../lmp_mpi
A whole list of object files (*.o) are in the Obj_mpi directory (under the LAMMPS source directory ).
Is this an error? Because I cannot find an lmp_mpi executable.
What to do now? Thanks for any help.
Ubuntu 18.04
Beta Was this translation helpful? Give feedback.
All reactions