<div dir="ltr">Hello Ben,<div>it looks like you have a problem on the line lenght, which is quite strange since you are using the option -ffree-line-length-none.</div><div>Could you try to open the file:</div><div><br></div><div>src/fm/cp_fm_diag.F<br></div><div><br></div><div>and at the line 976 break it in two, e.g.:</div><div><br></div><div>success = solve_evp_real_2stage(n,neig,m,n_rows,eval,v,n_rows,nblk,&</div><div>                   comm_row,comm_col,group,&<br></div><div><br></div><div>Alfio<br><br>Il giorno martedì 12 gennaio 2016 17:22:06 UTC+1, Ben Fotovich ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Hello,<br><br>I've been trying to compile cp2k, for use on our HPC. I think I have worked through most of the dependency issues, but there is currently 1 in which I'm not sure how to proceed. See below for more information about the compile command, the error output, the contents of Linux-x86-64-gfortran.popt used, and the output of "env" for compiling.<br><br>Thanks for any assistance!<br><br>Ben Fotovich<br><br>***<br><br>When I run "make -j 2 ARCH=Linux-x86-64-gfortran VERSION=popt" the compiles goes fine until this compiler error:<br><br>/usr/local/openmpi-1.8.4/bin/<wbr>mpif90 -c -D__FFTW3 -D__LIBINT -D__ELPA2 -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4 -D__parallel -D__SCALAPACK -O2 -ffast-math -ffree-form -ffree-line-length-none -ftree-vectorize -funroll-loops -mtune=native -I/usr/local/fftw-3.3.4/<wbr>include -I/usr/local/libint-1.1.4/<wbr>include -I/usr/local/elpa-2015.11.001/<wbr>include/elpa/modules -D__COMPILE_ARCH="\"Linux-x86-<wbr>64-gfortran\"" -D__COMPILE_DATE="\"Tue Jan 12 08:58:08 MST 2016\"" -D__COMPILE_HOST="\"du-hpc\"" -D__COMPILE_REVISION="\"svn:<wbr>16458\"" -D__DATA_DIR="\"/root/c/cp2k-<wbr>3.0/data\"" -D__SHORT_FILE__="\"fm/cp_fm_<wbr>diag.F\"" /root/c/cp2k-3.0/src/fm/cp_fm_<wbr>diag.F <br>/root/c/cp2k-3.0/src/fm/cp_fm_<wbr>diag.F:976.14:<br><br>    success = solve_evp_real_2stage(n,neig,<wbr>m,n_rows,eval,v,n_rows,nblk,<wbr>comm_row,comm_col,g<br>              1<br>Error: Missing actual argument for argument 'mpi_comm_all' at (1)<br>make[3]: *** [cp_fm_diag.o] Error 1<br>make[3]: *** Waiting for unfinished jobs....<br>make[2]: *** [all] Error 2<br>make[1]: *** [popt] Error 2<br>make: *** [all] Error 2<br><br>Here is the contents of Linux-x86-64-gfortran.popt as I modified it for compilation:<br><br># Tested with: GFortran 4.9.1, MPICH 3.1, LAPACK 3.5.0, ScaLAPACK 2.0.2<br>CC         = /usr/local/openmpi-1.8.4/bin/<wbr>mpicc<br>CPP        =<br>FC         = /usr/local/openmpi-1.8.4/bin/<wbr>mpif90<br>LD         = /usr/local/openmpi-1.8.4/bin/<wbr>mpif90<br>AR         = /usr/bin/ar -r<br>ELPA_LIB   = /usr/local/elpa-2015.11.001/<wbr>lib<br>ELPA_INC   = /usr/local/elpa-2015.11.001/<wbr>include/elpa/modules<br>FFTW_INC   = /usr/local/fftw-3.3.4/include<br>FFTW_LIB   = /usr/local/fftw-3.3.4/lib<br>LIBINT_INC = /usr/local/libint-1.1.4/<wbr>include<br>LIBINT_LIB = /usr/local/libint-1.1.4/lib<br>MPI_LIBRARY_PATH = /usr/local/scalapack-2.0.2-<wbr>gcc/lib<br>DFLAGS     = -D__FFTW3 -D__LIBINT -D__ELPA2\<br>             -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4\<br>             -D__parallel -D__SCALAPACK<br>CPPFLAGS   =<br>FCFLAGS    = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\<br>             -ftree-vectorize -funroll-loops\<br>             -mtune=native\<br>             -I$(FFTW_INC) -I$(LIBINT_INC) -I$(ELPA_INC)<br>LDFLAGS    = $(FCFLAGS) -L$(LIBINT_PATH) -L${FFTW3_PATH}/lib64<br>LIBS       = $(MPI_LIBRARY_PATH)/<wbr>libscalapack-gnu.a\<br>             $(FFTW_LIB)/libfftw3.a\<br>             $(LIBINT_LIB)/libderiv.a\<br>             $(LIBINT_LIB)/libint.a\<br>             -L$(ELPA_LIB)/libelpa_openmp.a<br><br>Here is the output of "env" when compiling:<br><br>MODULE_VERSION_STACK=3.2.6<br>MANPATH=/usr/local/python/2.7.<wbr>3/share/man:/usr/local/libpng-<wbr>1.4.13/share/man:/usr/local/<wbr>freetype-2.5.3/share/man:/usr/<wbr>local/openmpi-1.8.4/share/man:<wbr>/usr/local/gcc-4.9.2/man:/usr/<wbr>local/gmp-5.0.5/share/info:/<wbr>usr/local/mpfr-3.1.1/share/<wbr>doc/mpfr:/usr/local/mpc-1.0.1/<wbr>share/info:/usr/local/torque/<wbr>share/man:/usr/local/Modules/<wbr>3.2.6/share/man:/usr/local/<wbr>Modules/3.2.6/man<br>HOSTNAME=du-hpc<br>MPICC=/usr/local/openmpi-1.8.<wbr>4/bin/mpicc<br>SHELL=/bin/bash<br>TERM=xterm<br>HISTSIZE=1000<br>QTDIR=/usr/lib64/qt-3.3<br>OLDPWD=/root/c/cp2k-3.0<br>QTINC=/usr/lib64/qt-3.3/<wbr>include<br>F90FLAGS=-I/usr/local/gcc-4.9.<wbr>2/include -L/usr/local/gcc-4.9.2/lib64<br>USER=root<br>LD_LIBRARY_PATH=/usr/local/<wbr>fftw-3.3.4/lib:/usr/local/<wbr>elpa-2015.11.001/lib:/usr/<wbr>local/scalapack-2.0.2-gcc/lib:<wbr>/usr/local/lapack-3.5.0/lib:/<wbr>usr/local/blas-3.5.0/lib:/usr/<wbr>local/libint-1.1.4/lib:/usr/<wbr>local/python/2.7.3/lib:/usr/<wbr>local/libpng-1.4.13/lib:/usr/<wbr>local/freetype-2.5.3/lib:/usr/<wbr>local/openmpi-1.8.4/lib:/usr/<wbr>local/openmpi-1.8.4/lib/<wbr>openmpi:/usr/local/openmpi-1.<wbr>8.4/lib/pkgconfig:/usr/local/<wbr>gcc-4.9.2/lib64:/usr/local/<wbr>gmp-5.0.5/lib:/usr/local/mpfr-<wbr>3.1.1/lib:/usr/local/mpc-1.0.<wbr>1/lib:/usr/local/maui/lib:/<wbr>usr/local/torque/lib<br>LS_COLORS=no=00:fi=00:di=00;<wbr>34:ln=00;36:pi=40;33:so=00;35:<wbr>bd=40;33;01:cd=40;33;01:or=01;<wbr>05;37;41:mi=01;05;37;41:ex=00;<wbr>32:*.cmd=00;32:*.exe=00;32:*.<wbr>com=00;32:*.btm=00;32:*.bat=<wbr>00;32:*.sh=00;32:*.csh=00;32:*<wbr>.tar=00;31:*.tgz=00;31:*.arj=<wbr>00;31:*.taz=00;31:*.lzh=00;31:<wbr>*.zip=00;31:*.z=00;31:*.Z=00;<wbr>31:*.gz=00;31:*.bz2=00;31:*.<wbr>bz=00;31:*.tz=00;31:*.rpm=00;<wbr>31:*.cpio=00;31:*.jpg=00;35:*.<wbr>gif=00;35:*.bmp=00;35:*.xbm=<wbr>00;35:*.xpm=00;35:*.png=00;35:<wbr>*.tif=00;35:<br>CXXFLAGS=-I/usr/local/gcc-4.9.<wbr>2/include -L/usr/local/gcc-4.9.2/lib64<br>CPP=/usr/local/openmpi-1.8.4/<wbr>bin/<br>MODULE_VERSION=3.2.6<br>MAIL=/var/spool/mail/root<br>PATH=/usr/local/elpa-2015.11.<wbr>001/bin:/usr/local/python/2.7.<wbr>3/bin:/usr/local/libpng-1.4.<wbr>13/bin:/usr/local/freetype-2.<wbr>5.3/bin:/usr/local/openmpi-1.<wbr>8.4/bin:/usr/local/gcc-4.9.2/<wbr>bin:/usr/local/maui/bin:/usr/<wbr>local/maui/sbin:/usr/local/<wbr>torque/bin:/usr/local/torque/<wbr>sbin:/usr/local/Modules/3.2.6/<wbr>bin:/usr/lib64/qt-3.3/bin:/<wbr>usr/local/sbin:/usr/local/bin:<wbr>/sbin:/bin:/usr/sbin:/usr/bin:<wbr>/aspendata/sbin:/root/bin<br>LD_RUN_PATH=/usr/local/gcc-4.<wbr>9.2/lib64<br>F90=/usr/local/gcc-4.9.2/bin/<wbr>gfortran<br>PWD=/root/c/cp2k-3.0/makefiles<br>_LMFILES_=/usr/local/Modules/<wbr>modulefiles/null:/usr/local/<wbr>Modules/modulefiles/modules:/<wbr>usr/local/Modules/modulefiles/<wbr>tools/torque-maui:/usr/local/<wbr>Modules/modulefiles/tools/mpc-<wbr>1.0.1:/usr/local/Modules/<wbr>modulefiles/tools/mpfr-3.1.1:/<wbr>usr/local/Modules/modulefiles/<wbr>tools/gmp-5.0.5:/usr/local/<wbr>Modules/modulefiles/<wbr>compilers64/gcc-4.9.2:/usr/<wbr>local/Modules/modulefiles/<wbr>mpi2/openmpi-1.8.4-GCC.64.IB:/<wbr>usr/local/Modules/modulefiles/<wbr>tools/freetype-2.5.3:/usr/<wbr>local/Modules/modulefiles/<wbr>tools/libpng-1.4.13:/usr/<wbr>local/Modules/modulefiles/<wbr>tools/python-2.7.3:/usr/local/<wbr>Modules/modulefiles/tools/<wbr>libint-1.1.4:/usr/local/<wbr>Modules/modulefiles/tools/<wbr>blas-3.5.0:/usr/local/Modules/<wbr>modulefiles/tools/lapack-3.5.<wbr>0:/usr/local/Modules/<wbr>modulefiles/tools/scalapack-2.<wbr>0.2-gcc:/usr/local/Modules/<wbr>modulefiles/tools/elpa-2015.<wbr>11.001:/usr/local/Modules/<wbr>modulefiles/tools/fftw-3.3.4-<wbr>gcc<br>LANG=en_US.UTF-8<br>MODULEPATH=/usr/local/Modules/<wbr>versions:/usr/local/Modules/$<wbr>MODULE_VERSION/modulefiles:/<wbr>usr/local/Modules/modulefiles:<br>LOADEDMODULES=null:modules:<wbr>tools/torque-maui:tools/mpc-1.<wbr>0.1:tools/mpfr-3.1.1:tools/<wbr>gmp-5.0.5:compilers64/gcc-4.9.<wbr>2:mpi2/openmpi-1.8.4-GCC.64.<wbr>IB:tools/freetype-2.5.3:tools/<wbr>libpng-1.4.13:tools/python-2.<wbr>7.3:tools/libint-1.1.4:tools/<wbr>blas-3.5.0:tools/lapack-3.5.0:<wbr>tools/scalapack-2.0.2-gcc:<wbr>tools/elpa-2015.11.001:tools/<wbr>fftw-3.3.4-gcc<br>F77=/usr/local/gcc-4.9.2/bin/<wbr>gfortran<br>F77FLAGS=-I/usr/local/gcc/4.9.<wbr>2-include -L/usr/local/gcc-4.9.2/lib64<br>CXX=/usr/local/openmpi-1.8.4/<wbr>bin/mpic++<br>SSH_ASKPASS=/usr/libexec/<wbr>openssh/gnome-ssh-askpass<br>HISTCONTROL=ignoredups<br>SHLVL=1<br>HOME=/root<br>GCCHOME=/usr/local/gcc-4.9.2<br>CFLAGS=-I/usr/local/gcc-4.9.2/<wbr>include -L/usr/local/gcc-4.9.2/lib64<br>MPIHOME=/usr/local/openmpi-1.<wbr>8.4<br>FC=/usr/local/openmpi-1.8.4/<wbr>bin/mpif90<br>LOGNAME=root<br>QTLIB=/usr/lib64/qt-3.3/lib<br>CVS_RSH=ssh<br>MODULESHOME=/usr/local/<wbr>Modules/3.2.6<br>LESSOPEN=||/usr/bin/lesspipe.<wbr>sh %s<br>CC=/usr/local/openmpi-1.8.4/<wbr>bin/mpicc<br>DISPLAY=localhost:11.0<br>INCLUDE=/usr/local/elpa-2015.<wbr>11.001/include:/usr/local/<wbr>libint-1.1.4/include/libint:/<wbr>usr/local/libint-1.1.4/<wbr>include/libderiv:/usr/local/<wbr>libint-1.1.4/include/libr12:/<wbr>usr/local/python/2.7.3/<wbr>include/python2.7:/usr/local/<wbr>libpng-1.4.13/include:/usr/<wbr>local/freetype-2.5.3/include/<wbr>freetype2:/usr/local/openmpi-<wbr>1.8.4/include:/usr/local/gmp-<wbr>5.0.5/include:/usr/local/mpfr-<wbr>3.1.1/include:/usr/local/mpc-<wbr>1.0.1/include<br>G_BROKEN_FILENAMES=1<br>FFLAGS=-I/usr/local/gcc-4.9.2/<wbr>include -L/usr/local/gcc-4.9.2/lib64<br>XAUTHORITY=/root/.xauthCIgfdr<br>_=/bin/env<br><br></div></blockquote></div></div>