[vsc43020@node3509 vasp.6.4.3]$ gcc --version
gcc (GCC) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[vsc43020@node3509 vasp.6.4.3]$ mpirun --version
mpirun (Open MPI) 4.1.6
Report bugs to
http://www.open-mpi.org/community/help/
[vsc43020@node3509 vasp.6.4.3]$ sha256sum ../vtstcode-203.tgz
471346810d5d7bf45834a26802aca69db38a52e37b15b9c1b8719dfaf4c314b3 ../vtstcode-203.tgz
[vsc43020@node3509 vasp.6.4.3]$ cat vtst.install
cp -v src/main.F src/main.F_vtst_backup
sed -z 's/ LATT_CUR%A,LATT_CUR%B,IO%IU6)/ TSIF,LATT_CUR%A,LATT_CUR%B,IO%IU6)/' -i src/main.F
sed -e 's/IF (LCHAIN) CALL chain_init( T_INFO, IO)/CALL chain_init( T_INFO, IO)/' -i src/main.F
mv -v src/chain.F src/chain.F_vtst_backup
cp -v ../vtstcode-*/vtstcode6.4.3/*.F src/.
cp -vr ../vtstcode-*/vtstcode6.4.3/pyamff_fortran/ src/.
sed -e 's# chain.o# bfgs.o dynmat.o instanton.o lbfgs.o sd.o cg.o dimer.o bbm.o fire.o lanczos.o neb.o qm.o ml_pyamff.o pyamff_fortran/fptype.o pyamff_fortran/atoms.o pyamff_fortran/neighborlist.o pyamff_fortran/behlerParrinello.o pyamff_fortran/nntype.o pyamff_fortran/trainType.o pyamff_fortran/normalization.o pyamff_fortran/mtfort90.o pyamff_fortran/fingerprints.o pyamff_fortran/neuralnetwork.o pyamff_fortran/nnmodule.o pyamff_fortran/pyamffType.o pyamff_fortran/lossgrad.o pyamff_fortran/adam.o pyamff_fortran/lbfgs_ml.o pyamff_fortran/rprop.o pyamff_fortran/opts.o pyamff_fortran/training.o pyamff_fortran/model.o opt.o chain.o#' -i src/.objects
sed -e 's/LIB=lib parser/LIB=lib parser pyamff_fortran/' -i src/makefile
[vsc43020@node3509 vasp.6.4.3]$ cat build/std/chain.F | grep -i chain.stress
SUBROUTINE chain_stress( stress )
END SUBROUTINE chain_stress
[vsc43020@node3509 vasp.6.4.3]$ nm build/std/chain.o | grep -i stress
0000000000000068 B __chain_MOD_pstress_local
[vsc43020@node3509 vasp.6.4.3]$ tail -9 make_std.out
/apps/gent/RHEL8/zen2-ib/software/binutils/2.40-GCCcore-13.2.0/bin/ld: main.o: in function `MAIN__':
main.f90:(.text+0x23cfa): undefined reference to `chain_stress_'
collect2: error: ld returned 1 exit status
make[2]: *** [makefile:134: vasp] Error 1
make[2]: Leaving directory '/tmp/tst/vasp.6.4.3/build/std'
cp: cannot stat 'vasp': No such file or directory
make[1]: *** [makefile:131: all] Error 1
make[1]: Leaving directory '/tmp/tst/vasp.6.4.3/build/std'
make: *** [makefile:17: std] Error 2