[CP2K-user] CP2K compile error undefined reference
Eleftherios Lambros
elam... at ucsd.edu
Fri Jan 8 05:03:33 UTC 2021
Hi,
I am compiling CP2K and pretty far into the compilation, I get the error
below: (the full error and my arch file are attached)
/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp/exts/dbcsr/libdbcsr.a(dbcsr_machine_internal.o):
In function `dbcsr_machine_internal_mp_m_getlog_':
/p/work1/elambros/cp2k/exts/dbcsr/src/base/dbcsr_machine_posix.f90:318:
undefined reference to `for_getenv_err'
/p/work1/elambros/cp2k/exts/dbcsr/src/base/dbcsr_machine_posix.f90:321:
undefined reference to `for_getenv_err'
/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp/exts/dbcsr/libdbcsr.a(dbcsr_machine_internal.o):
In function `dbcsr_machine_internal_mp_m_getarg_':
/p/work1/elambros/cp2k/exts/dbcsr/src/base/dbcsr_machine_posix.f90:363:
undefined reference to `for_getcmd_arg_err'
make[3]: ***
[/p/work1/elambros/cp2k/exe/Linux-x86-64-intel-minimal/cp2k.psmp] Error 1
make[2]: *** [all] Error 2
make[1]: *** [psmp] Error 2
make: *** [all] Error 2
I think this may be related to the "get_environment_variable" and
"GET_COMMAND_ARGUMENT" calls in
exts/dbcsr/src/base/dbcsr_machine_posix.f90, but I haven't been able to
find anything about the "for_getenv_err" and "for_getcmd_arg_err" variables
online. I'm not sure if I'm missing a library, or if I've made a silly
mistake, but any advice would be appreciated.
My fortran compiler is mpiifort, and my c and c++ compilers are mpiicc and
mpiicpc.
Thanks,
Teri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20210107/0e595634/attachment.htm>
-------------- next part --------------
Discovering programs ...
Removing stale archives for psmp ...
Resolving dependencies for psmp ...
make -C /p/work1/elambros/cp2k/exts/dbcsr -f .cp2k/Makefile \
INCLUDEMAKE=/p/work1/elambros/cp2k/arch/Linux-x86-64-intel-minimal.psmp \
LIBDIR=/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp/exts/dbcsr \
OBJDIR=/p/work1/elambros/cp2k/obj/Linux-x86-64-intel-minimal/psmp/exts/dbcsr \
ACC="" \
ACCFLAGS=""
Removing stale archives ...
Resolving dependencies ...
echo git:9b830ad > "/p/work1/elambros/cp2k/obj/git-ref.tmp"
mpiifort -O2 -g -qopenmp -traceback -xHost -I/usr/include -I/p/home/elambros/anaconda3/include -I/p/app/unsupported/fftw/3.3.6d/inlcude -I/p/app/unsupported/COST/fftw3-mpi/3.3.5/intel/intelmpi/include -D__FFTW3 -D__MAX_CONTR=4 -D__MKL -D__MPI_VERSION=3 -D__parallel -D__SCALAPACK -D__LIBINT -D__LIBXC -D__INTEL -D__HAS_smm_dnn -D__GSL -D__HDF5 -fbacktrace -ffree-form -fimplicit-none -std=f2008 -Werror=aliasing -Werror=ampersand -Werror=c-binding-type -Werror=intrinsic-shadow -Werror=intrinsics-std -Werror=line-truncation -Werror=tabs -Werror=target-lifetime -Werror=underflow -Werror=unused-but-set-variable -Werror=unused-variable -Werror=unused-dummy-argument -Werror=conversion -Werror=zerotrip -Wno-maybe-uninitialized -Wuninitialized -Wuse-without-only -diag-disable=8291 -diag-disable=8293 -fpp -fp-model precise -free -funroll-loops -I/p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/include -I/p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/include/fftw -I/usr/include -I/p/work1/elambros/libint-v2.6.0-cp2k-lmax-6/install/include -I/p/work1/elambros/libxc-4.3.4/install/include -I/p/home/elambros/anaconda3/include -I/p/app/unsupported/fftw/3.3.6d/inlcude -I/p/app/unsupported/COST/fftw3-mpi/3.3.5/intel/intelmpi/include -D__COMPILE_ARCH="\"Linux-x86-64-intel-minimal\"" -D__COMPILE_DATE="\"Thu Jan 7 23:26:53 EST 2021\"" -D__COMPILE_HOST="\"centennial07\"" -D__COMPILE_REVISION="\"git:9b830ad\"" -D__DATA_DIR="\"/p/work1/elambros/cp2k/data\"" -static-intel -static_mpi -Wl,--enable-new-dtags -L'/p/app/intel-stripe1/parallel_studio_xe_2018_update1/impi/2018.1.163/intel64/lib' -L/p/work1/elambros/libint-v2.6.0-cp2k-lmax-6/install/lib -lint2 -L/p/work1/elambros/libxc-4.3.4/install/lib -lxcf03 -lxc -L/p/home/elambros/anaconda3/lib -L/p/work1/elambros/cp2k/tools/toolchain/install/libsmm/lib -L/p/app/unsupported/COST/fftw3/3.3.5/intel/lib -L/p/app/unsupported/COST/fftw3-mpi/3.3.5/intel/intelmpi/lib -L/p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64 -L'/p/app/unsupported/COST/gsl/2.3/intel/lib' -L'/p/app/unsupported/COST/scalapack/2.0.2/intel/intelmpi/lib' -L'/p/app/unsupported/COST/hdf5/1.8.15/intel/lib' -L/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp -o /p/work1/elambros/cp2k/exe/Linux-x86-64-intel-minimal/cp2k.psmp cp2k.o -lcp2kstart -lcp2kmc -lcp2kswarm -lcp2kmotion -lcp2kthermostat -lcp2kemd -lcp2ktmc -lcp2kmain -lcp2kgrid -lcp2kgridhybrid -lcp2kgridcpu -lcp2kgridref -lcp2kgridcommon -ldbcsrarnoldi -ldbcsrx -lcp2kshg_int -lcp2keri_mme -lcp2kminimax -lcp2khfxbase -lcp2ksubsys -lcp2kxc -lcp2kao -lcp2kpw_env -lcp2kinput -lcp2kpw -lcp2kfft -lcp2kfpga -lcp2kfm -lcp2kcommon -lcp2kmpiwrap -lcp2kbase -L/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp/exts/dbcsr -ldbcsr -lsymspg -lhdf5 -lhdf5_hl -ldl -lm -lstdc++ -lpthread -lgsl -lgslcblas -lscalapack -lxcf03 -lxc -lint2 -lmpi -lmpicxx -lxsmmf -lxsmm -lsmm_dnn -lfftw3_mpi -lfftw3 -lfftw3_omp /p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_scalapack_lp64.a -L'/p/work1/elambros/cp2k/tools/toolchain/install/libsmm/lib' -Wl,-rpath='/p/work1/elambros/cp2k/tools/toolchain/install/libsmm/lib' -Wl,--start-group /p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_intel_lp64.a /p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_sequential.a /p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_core.a /p/app/intel/parallel_studio_xe_2018_update1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group -lpthread /p/work1/elambros/libint-v2.6.0-cp2k-lmax-6/install/lib/libint2.a /p/work1/elambros/libxc-4.3.4/install/lib/libxcf03.a /p/work1/elambros/libxc-4.3.4/install/lib/libxc.a
ifort: command line warning #10006: ignoring unknown option '-fbacktrace'
ifort: command line warning #10006: ignoring unknown option '-ffree-form'
ifort: command line warning #10006: ignoring unknown option '-fimplicit-none'
ifort: command line warning #10006: ignoring unknown option '-std=f2008'
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp/exts/dbcsr/libdbcsr.a(dbcsr_machine_internal.o): In function `dbcsr_machine_internal_mp_m_getlog_':
/p/work1/elambros/cp2k/exts/dbcsr/src/base/dbcsr_machine_posix.f90:318: undefined reference to `for_getenv_err'
/p/work1/elambros/cp2k/exts/dbcsr/src/base/dbcsr_machine_posix.f90:321: undefined reference to `for_getenv_err'
/p/work1/elambros/cp2k/lib/Linux-x86-64-intel-minimal/psmp/exts/dbcsr/libdbcsr.a(dbcsr_machine_internal.o): In function `dbcsr_machine_internal_mp_m_getarg_':
/p/work1/elambros/cp2k/exts/dbcsr/src/base/dbcsr_machine_posix.f90:363: undefined reference to `for_getcmd_arg_err'
make[3]: *** [/p/work1/elambros/cp2k/exe/Linux-x86-64-intel-minimal/cp2k.psmp] Error 1
make[2]: *** [all] Error 2
make[1]: *** [psmp] Error 2
make: *** [all] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intel.arch
Type: application/octet-stream
Size: 4503 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20210107/0e595634/attachment.obj>
More information about the CP2K-user
mailing list