<div dir="ltr">Hi, I am a new user trying to compile cp2k sopt version by intel compiler. (composer-xe 13.1.3 version)<div><br></div><div>When I first tried that, </div><div>dbcsr_config.F caused build error.</div><div>Referring to the forum, I commented out the 23rd line of  dbcsr_lib/dbcsr_error_handling.F (i.e. PRIVATE)<br></div><div>After I did that, it first looked like going fine but now, there is another error from the source code of the package that</div><div><br></div><div><br></div><div><div><div>/home/kjeong/cp2k/cp2k-2.5.1/makefiles/../src/xc_atom.F(375): error #8289: A private component name is accessible only within the module containing the type definition   [PW_TYPES^CR3D]</div><div>       vxc_pw(ispin)%pw%cr3d => vxc(:,:,ispin:ispin)</div><div>------------------------^</div></div></div><div><div>compilation aborted for /home/kjeong/cp2k/cp2k-2.5.1/makefiles/../src/xc_atom.F (code 1)</div><div>make[1]: *** [xc_atom.o] Error 1</div><div>make[1]: Leaving directory `/home/kjeong/cp2k/cp2k-2.5.1/obj/Linux-x86-64-intel/sopt'</div><div>make: *** [build] Error 2</div></div><div><br></div><div><br></div><div>I attached the full log of compilation below, and here is how my architecture file is written. (/arch/Linux-x86-64-intel.sopt)</div><div><br></div><div><br></div><div><div># by default some intel compilers put temporaries on the stack</div><div># this might lead to segmentation faults is the stack limit is set to low</div><div># stack limits can be increased by sysadmins or e.g with ulimit -s 256000</div><div># furthermore new ifort (10.0?) compilers support the option</div><div># -heap-arrays 64</div><div># add this to the compilation flags is the other options do not work</div><div># The following settings worked for:</div><div># - AMD64 Opteron</div><div># - SUSE Linux Enterprise Server 10.0 (x86_64)</div><div># - Intel(R) Fortran Compiler for Intel(R) EM64T-based applications, Version 10.0</div><div># - AMD acml library version 3.6.0</div><div># - MPICH2-1.0.5p4</div><div># - FFTW 3.1.2</div><div>#</div><div>INTEL_MKL = /opt/intel/composer_xe_2013.5.192/mkl</div><div>INTEL_INC = $(INTEL_MKL)/include/fftw</div><div>INTEL_LIB = $(INTEL_MKL)/lib/intel64</div><div>CC       = cc</div><div>CPP      =</div><div>FC       = ifort</div><div>LD       = ifort</div><div>AR       = xiar -r</div><div>DFLAGS   = -D__INTEL -D__FFTSG -D__FFTW3 -D__FFTMKL</div><div>CPPFLAGS = -C -traditional $(DFLAGS) -I$(INTEL_INC)</div><div>FCFLAGS  = $(DFLAGS) -I$(INTEL_INC) -O2 -xHost -heap-arrays 64 -fpp -free</div><div>FCFLAGS2 = $(DFLAGS) -I$(INTEL_INC) -O1 -xHost -heap-arrays 64 -fpp -free</div><div>LDFLAGS  = $(FCFLAGS)</div><div>LIBS     = -L$(INTEL_LIB) -mkl</div><div><br></div><div>OBJECTS_ARCHITECTURE = machine_intel.o</div><div>graphcon.o: graphcon.F</div><div>        $(FC) -c $(FCFLAGS2) $<</div></div><div><br></div><div><br></div><div><br></div><div>When I just commented out the 375th line of xc_atom.F that causing error, it finally built successfully. </div><div>However, I'm not sure it will really work fine even if I commented out a line of its essential code directly related to calculation.</div><div>What can I do to solve this error from its original source code?</div></div>