[Users] Compilation failure with xlc compiler

Wolfgang Kastaun kastaun at sissa.it
Fri Feb 18 12:33:11 CST 2011

I am trying to compile the Chandrasekhar release of the Einstein Toolkit
on an AIX cluster (CINECA) using the native xlc compiler. It fails with
the following message:

"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 46.8: 1506-1108 (I) The use of keyword '__inline__' is non-portable.
"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 946.1: 1506-343 (S) Redeclaration of lc_statmap_init differs from previous declaration on line 513 of "/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c".
"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 946.1: 1506-376 (I) Redeclaration of lc_statmap_init has a different number of fixed parameters than the previous declaration.
"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 946.1: 1506-377 (I) The type "char*" of parameter 3 differs from the previous type "const char* restrict const".
"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 957.1: 1506-343 (S) Redeclaration of lc_control_init differs from previous declaration on line 546 of "/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c".
"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 957.1: 1506-377 (I) The type "const int* restrict const" of parameter 3 differs from the previous type "const int".
"/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c", line 977.1: 1506-334 (S) Identifier lc_control_finish has already been defined on line 801 of "/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/build/LoopControl/loopcontrol.c".
gmake[3]: *** [loopcontrol.c.o] Error 1
gmake[2]: *** [make.checked] Error 2
gmake[1]: ***
[/sp6/usersissa/sists082/sim_build/pizza_dev/configs/pizza_dev/lib/libthorn_LoopControl.a] Error 2
gmake: *** [pizza_dev] Error 2


my option file looks like this:

CC  = xlc_r
CXX = xlC_r
F90 = xlf90_r
F77 = xlf_r
CPP = cpp
FPP = /opt/freeware/bin/cpp

CFLAGS   = -qspill=100000 -qsuppress=1501-245 -qlanglvl=stdc99
CXXFLAGS = -qspill=100000 -qsuppress=1501-245 -qrtti=all
F77FLAGS = -qspill=100000 -qsuppress=1501-245
F90FLAGS = -qspill=100000 -qsuppress=1501-245

DEBUG = no

OPTIMISE           = yes
C_OPTIMISE_FLAGS   = -O2 -qmaxmem=-1 -qarch=pwr6 -qtune=pwr6
CXX_OPTIMISE_FLAGS = -O2 -qmaxmem=-1 -qarch=pwr6 -qtune=pwr6
F77_OPTIMISE_FLAGS = -O2 -qmaxmem=-1 -qarch=pwr6 -qtune=pwr6
F90_OPTIMISE_FLAGS = -O2 -qmaxmem=-1 -qarch=pwr6 -qtune=pwr6

WARN = yes

HDF5 = yes
HDF5_DIR = /cineca/prod/libraries/hdf5/1.8.4_ser/xl--10.1/
LIBSZ_DIR = /cineca/prod/libraries/szlib/2.1/xl--10.1/
GSL  = yes
GSL_DIR = /cineca/prod/libraries/gsl/1.9/xl--10.1/


The compiler versions are:

IBM XL C/C++ for AIX, V10.1
Version: 10.01.0000.0008

IBM XL Fortran for AIX, V12.1
Version: 12.01.0000.0009


The same code compiled just fine on Ubuntu 10.10 using the gnu compiler.
Any ideas ?


More information about the Users mailing list