<div dir="ltr"><div>[root@masternode makefiles]# make -j 4 ARCH=Linux-x86-64-gfortran VERSION=popt</div><div>Discovering programs ...</div><div>Removing stale archives for popt ...</div><div>Resolving dependencies for popt ...</div><div>mpif90 -D__FFTW3 -D__parallel -D__SCALAPACK -O2 -ffast-math -ffree-form -ffree-line-length-none -ftree-vectorize -funroll-loops -mtune=native -I/opt/fftw/include  -D__COMPILE_ARCH="\"Linux-<wbr>x86-64-gfortran\"" -D__COMPILE_DATE="\"Fri Nov 11 18:55:22 IST 2016\"" -D__COMPILE_HOST="\"<wbr>masternode\"" -D__COMPILE_REVISION="\"svn:<wbr>17462\"" -D__DATA_DIR="\"/opt/cp2k41/<wbr>data\"" -static-libgfortran  -L/opt/cp2k41/lib/Linux-x86-<wbr>64-gfortran/popt -o /opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_example_1.popt dbcsr_example_1.o  -ldbcsr -ldbcsrarnoldi -ldbcsrvec -ldbcsrmm -ldbcsrops -ldbcsrbblock -ldbcsrbdist -ldbcsrbase -ldbcsrdata -ldbcsrerr -lcp2kmpiwrap -lmicsmm -lclsmm -lcp2kacc -lcp2kaccmic -lcp2kaccopencl -lcp2kbase /opt/scalapack-2.0.2/<wbr>libscalapack.a /opt/fftw/lib/libfftw3.a /opt/etsf/lib/libxcf90.a /opt/etsf/lib/libxc.a /opt/libint-1.1.4/lib/<wbr>libderiv.a /opt/libint-1.1.4/lib/libint.a</div><div>mpif90 -D__FFTW3 -D__parallel -D__SCALAPACK -O2 -ffast-math -ffree-form -ffree-line-length-none -ftree-vectorize -funroll-loops -mtune=native -I/opt/fftw/include  -D__COMPILE_ARCH="\"Linux-<wbr>x86-64-gfortran\"" -D__COMPILE_DATE="\"Fri Nov 11 18:55:22 IST 2016\"" -D__COMPILE_HOST="\"<wbr>masternode\"" -D__COMPILE_REVISION="\"svn:<wbr>17462\"" -D__DATA_DIR="\"/opt/cp2k41/<wbr>data\"" -static-libgfortran  -L/opt/cp2k41/lib/Linux-x86-<wbr>64-gfortran/popt -o /opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_example_2.popt dbcsr_example_2.o  -ldbcsr -ldbcsrarnoldi -ldbcsrvec -ldbcsrmm -ldbcsrops -ldbcsrbblock -ldbcsrbdist -ldbcsrbase -ldbcsrdata -ldbcsrerr -lcp2kmpiwrap -lmicsmm -lclsmm -lcp2kacc -lcp2kaccmic -lcp2kaccopencl -lcp2kbase /opt/scalapack-2.0.2/<wbr>libscalapack.a /opt/fftw/lib/libfftw3.a /opt/etsf/lib/libxcf90.a /opt/etsf/lib/libxc.a /opt/libint-1.1.4/lib/<wbr>libderiv.a /opt/libint-1.1.4/lib/libint.a</div><div>mpif90 -D__FFTW3 -D__parallel -D__SCALAPACK -O2 -ffast-math -ffree-form -ffree-line-length-none -ftree-vectorize -funroll-loops -mtune=native -I/opt/fftw/include  -D__COMPILE_ARCH="\"Linux-<wbr>x86-64-gfortran\"" -D__COMPILE_DATE="\"Fri Nov 11 18:55:22 IST 2016\"" -D__COMPILE_HOST="\"<wbr>masternode\"" -D__COMPILE_REVISION="\"svn:<wbr>17462\"" -D__DATA_DIR="\"/opt/cp2k41/<wbr>data\"" -static-libgfortran  -L/opt/cp2k41/lib/Linux-x86-<wbr>64-gfortran/popt -o /opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_example_3.popt dbcsr_example_3.o  -ldbcsr -ldbcsrarnoldi -ldbcsrvec -ldbcsrmm -ldbcsrops -ldbcsrbblock -ldbcsrbdist -ldbcsrbase -ldbcsrdata -ldbcsrerr -lcp2kmpiwrap -lmicsmm -lclsmm -lcp2kacc -lcp2kaccmic -lcp2kaccopencl -lcp2kbase /opt/scalapack-2.0.2/<wbr>libscalapack.a /opt/fftw/lib/libfftw3.a /opt/etsf/lib/libxcf90.a /opt/etsf/lib/libxc.a /opt/libint-1.1.4/lib/<wbr>libderiv.a /opt/libint-1.1.4/lib/libint.a</div><div>mpif90 -D__FFTW3 -D__parallel -D__SCALAPACK -O2 -ffast-math -ffree-form -ffree-line-length-none -ftree-vectorize -funroll-loops -mtune=native -I/opt/fftw/include  -D__COMPILE_ARCH="\"Linux-<wbr>x86-64-gfortran\"" -D__COMPILE_DATE="\"Fri Nov 11 18:55:22 IST 2016\"" -D__COMPILE_HOST="\"<wbr>masternode\"" -D__COMPILE_REVISION="\"svn:<wbr>17462\"" -D__DATA_DIR="\"/opt/cp2k41/<wbr>data\"" -static-libgfortran  -L/opt/cp2k41/lib/Linux-x86-<wbr>64-gfortran/popt -o /opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_performance_<wbr>driver.popt dbcsr_performance_driver.o  -ldbcsr -ldbcsrarnoldi -ldbcsrvec -ldbcsrmm -ldbcsrops -ldbcsrbblock -ldbcsrbdist -ldbcsrbase -ldbcsrdata -ldbcsrerr -lcp2kmpiwrap -lmicsmm -lclsmm -lcp2kacc -lcp2kaccmic -lcp2kaccopencl -lcp2kbase /opt/scalapack-2.0.2/<wbr>libscalapack.a /opt/fftw/lib/libfftw3.a /opt/etsf/lib/libxcf90.a /opt/etsf/lib/libxc.a /opt/libint-1.1.4/lib/<wbr>libderiv.a /opt/libint-1.1.4/lib/libint.a</div><div>/usr/bin/ld: cannot find/ -lgfortran</div><div>usr/usr/bin/ld: cannot find -lgfortran</div><div>/usr/bin/ld: cannot find -lgfortran/bin</div><div>/ld: cannot find -lgfortran</div><div>/usr/bincollect2: error: ld returned 1 exit status</div><div>/ld: cannot find -lgfortran</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>collect2: error: ld returned 1 exit status</div><div>make[3]: *** [/opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_example_3.popt] Error 1</div><div>make[3]: *** Waiting for unfinished jobs....</div><div>make[3]: *** [/opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_performance_<wbr>driver.popt] Error 1</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>collect2: error: ld returned 1 exit status</div><div>make[3]: *** [/opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_example_1.popt] Error 1</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>/usr/bin/ld: cannot find -lgfortran</div><div>collect2: error: ld returned 1 exit status</div><div>make[3]: *** [/opt/cp2k41/exe/Linux-x86-64-<wbr>gfortran/dbcsr_example_2.popt] Error 1</div><div>make[2]: *** [all] Error 2</div><div>make[1]: *** [popt] Error 2</div><div>make: *** [all] Error 2</div><div><br></div><div><br></div><div><br></div><div><br></div><div>my make file is Linux-x86-64-gfortran.popt</div><div><br></div><div><div><br></div><div># Tested with: GFortran 4.9.2, MPICH 3.1, LAPACK 3.5.0, ScaLAPACK 2.0.2</div><div>CC         = mpicc<br></div><div><div>CPP        =</div><div>FC         = mpif90</div><div>LD         = mpif90</div><div>AR         = ar -r</div><div>#ACML_INC   = $(ACMLPATH)/include</div><div>#ACML_LIB   = $(ACMLPATH)/lib</div><div>FFTW_INC    = /opt/fftw/include</div><div>FFTW_LIB    = /opt/fftw/lib</div><div>LIBINT_INC = /opt/libint-1.1.4/include</div><div>LIBINT_LIB = /opt/libint-1.1.4/lib</div><div>LIBXC_INC  = /opt/etsf/include</div><div>LIBXC_LIB  = /opt/etsf/lib</div><div>DFLAGS     = -D__FFTW3 -D__LIBINT -D__LIBXC2 \</div><div>              -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4\</div><div>             -D__parallel -D__SCALAPACK</div><div>CPPFLAGS   =</div><div>FCFLAGS    = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\</div><div>             -ftree-vectorize -funroll-loops\</div><div>             -mtune=native\</div><div>              -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC)</div><div>LDFLAGS    = $(FCFLAGS) -static-libgfortran</div><div>LIBS       = /opt/scalapack-2.0.2/libscalapack.a\</div><div>             $(FFTW_LIB)/libfftw3.a\</div><div>             $(LIBXC_LIB)/libxcf90.a\</div><div>             $(LIBXC_LIB)/libxc.a\</div><div>             $(LIBINT_LIB)/libderiv.a\</div><div>             $(LIBINT_LIB)/libint.a</div></div><div><br></div><div><br></div><div><br></div></div><div><br></div><div><br></div><div>please help any one getting out of this error.i am using open mpi</div><div><br></div><div><br></div><div><br></div><div><br></div></div>