[CP2K-user] Error in SuperLu_dist while compiling

Carlos Bornes cbor... at gmail.com
Thu Aug 29 09:00:29 UTC 2019


Dear all

I'm trying to compile CP2K in at my university's cluster and I'm getting an 
error related to the SuperLu_dist package using the Toolchain script.
For installation, I've run --install-all --with-make=system 
--with-gcc=system --with-mkl=system
I'm attaching the make.log file availabe at 
~/toolchain/build/SuperLU_DIST_5.1.2

Best regards,
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20190829/ced92fc8/attachment.htm>
-------------- next part --------------
( cd INSTALL; make )
make[1]: Entering directory `/mnt/porao/HOMERMT/cbornes/cp2k-6.1.0/tools/toolchain/build/SuperLU_DIST_5.1.2/INSTALL'
mpicc -c ../SRC/dmach_dist.c
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -c dmachtst.c
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -o testdmach dmach_dist.o dmachtst.o
mpicc -c ../SRC/smach_dist.c
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -c smachtst.c
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -o testsmach smach_dist.o smachtst.o
mpicc -c ../SRC/superlu_timer.c
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -c timertst.c
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -o testtimer superlu_timer.o timertst.o
make[1]: Leaving directory `/mnt/porao/HOMERMT/cbornes/cp2k-6.1.0/tools/toolchain/build/SuperLU_DIST_5.1.2/INSTALL'
( cd SRC; make )
make[1]: Entering directory `/mnt/porao/HOMERMT/cbornes/cp2k-6.1.0/tools/toolchain/build/SuperLU_DIST_5.1.2/SRC'
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dlangs_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dgsequ_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dlaqgs_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dutil_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dmemory_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dmyblas2_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dsp_blas2_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dsp_blas3_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdgssvx.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdgssvx_ABglobal.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dreadhb.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dreadrb.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dreadtriple.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dreadMM.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdgsequ.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdlaqgs.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c dldperm_dist.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdlangs.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdutil.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdsymbfact_distdata.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c ddistribute.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pddistribute.c 
mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -ffast-math -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include' -I'/home/cbornes/cp2k-6.1.0/tools/toolchain/install/parmetis-4.0.3/include'  -DAdd_  -c pdgstrf.c 
pdgstrf.c: In function ‘pdgstrf’:
pdgstrf.c:708:14: error: redeclaration of ‘i’ with no linkage
     for (int i = 0; i < nsupers; ++i) {
              ^
pdgstrf.c:260:16: note: previous declaration of ‘i’ was here
     int_t fnz, i, ib, ijb, ilst, it, iukp, jb, jj, klst, knsupc,
                ^
pdgstrf.c:708:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < nsupers; ++i) {
     ^
pdgstrf.c:708:5: note: use option -std=c99 or -std=gnu99 to compile your code
In file included from pdgstrf.c:1574:0:
dSchCompUdt-2Ddynamic.c:49:6: error: ‘for’ loop initial declarations are only allowed in C99 mode
      for (int i = 0; i < nlb; ++i) {
      ^
dSchCompUdt-2Ddynamic.c:54:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (int j = k0+1; j < SUPERLU_MIN (k0 + num_look_aheads+2, nsupers ); ++j)
   ^
dSchCompUdt-2Ddynamic.c:109:15: error: redefinition of ‘i’
      for (int i = 0; i < lookAheadBlk; ++i) {
               ^
dSchCompUdt-2Ddynamic.c:49:15: note: previous definition of ‘i’ was here
      for (int i = 0; i < nlb; ++i) {
               ^
dSchCompUdt-2Ddynamic.c:109:6: error: ‘for’ loop initial declarations are only allowed in C99 mode
      for (int i = 0; i < lookAheadBlk; ++i) {
      ^
dSchCompUdt-2Ddynamic.c:123:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (int j = 0; j < knsupc; ++j) {
   ^
dSchCompUdt-2Ddynamic.c:136:15: error: redefinition of ‘i’
      for (int i = 0; i < RemainBlk; ++i) {
               ^
dSchCompUdt-2Ddynamic.c:109:15: note: previous definition of ‘i’ was here
      for (int i = 0; i < lookAheadBlk; ++i) {
               ^
dSchCompUdt-2Ddynamic.c:136:6: error: ‘for’ loop initial declarations are only allowed in C99 mode
      for (int i = 0; i < RemainBlk; ++i) {
      ^
dSchCompUdt-2Ddynamic.c:150:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (int j = 0; j < knsupc; ++j) {
   ^
dSchCompUdt-2Ddynamic.c:311:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int ij = 0; ij < lookAheadBlk*(nub-jj0); ++ij) {
         ^
dSchCompUdt-2Ddynamic.c:420:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int ij = 0; ij < RemainBlk*(jj_cpu-jj0); ++ij) { /* jj_cpu := nub */
     ^
make[1]: *** [pdgstrf.o] Error 1
make[1]: Leaving directory `/mnt/porao/HOMERMT/cbornes/cp2k-6.1.0/tools/toolchain/build/SuperLU_DIST_5.1.2/SRC'
make: *** [superlulib] Error 2


More information about the CP2K-user mailing list