RMGDFT / rmgdft

RMG is an Open Source code for electronic structure calculations and modeling of materials and molecules. It is based on density functional theory and uses a real space basis and pseudopotentials.
GNU General Public License v2.0
47 stars 11 forks source link

No rule to make target libeldyn_mod.so #62

Closed antoscha closed 1 year ago

antoscha commented 4 years ago
Scanning dependencies of target rmg-cpu
[100%] Building CXX object RMG/CMakeFiles/rmg-cpu.dir/Common/Main.cpp.o
make[2]: *** No rule to make target 'TDDFT/ELDYN/libeldyn_mod.so', needed by 'rmg-cpu'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:2195: RMG/CMakeFiles/rmg-cpu.dir/all] Error 2
make: *** [Makefile:182: all] Error 2

CMake configurataion options:

  cmake ../rmgdft-4.0.0 \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_SHARED_LIBS=ON \
        -DBUILD_STATIC_LIBS=OFF \
        -DBoost_USE_MULTITHREADED=ON \
        -DCMAKE_EXE_LINKER_FLAGS="-lscalapack"

External ScaLAPACK is being used.

elbriggs commented 4 years ago

What platform are you trying to build on?

antoscha commented 4 years ago

Arch Linux

antoscha commented 4 years ago

It still presents in 4.1.0:

f95: warning: CMakeFiles/eldyn_mod.dir/initmd.f90.o: linker input file unused because linking not done
f95: warning: CMakeFiles/eldyn_mod.dir/timing.f90.o: linker input file unused because linking not done
f95: warning: CMakeFiles/eldyn_mod.dir/utilmod2.f90.o: linker input file unused because linking not done

followed by:

[100%] Building CXX object RMG/CMakeFiles/rmg-cpu.dir/Common/Main.cpp.o
make[2]: *** No rule to make target 'TDDFT/ELDYN/libeldyn_mod.so', needed by 'rmg-cpu'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:2195: RMG/CMakeFiles/rmg-cpu.dir/all] Error 2
make: *** [Makefile:182: all] Error 2
WenchangLu commented 1 year ago

We have changed eldyn part to c++, .mod fortran file no longer needed