compile issue, broken compiler?

Submitted by andrew.downs on Tue, 09/27/2016 - 11:23

Forums 

Installation

I had a thread here about issues in my arch.mk file, which I think I've managed to fix...mostly. Here's my new one, based loosely on the nersc edison machine for intel.

I have loaded cray-hdf5-parallel, fftw and cray-libsci

# arch.mk for BerkeleyGW codes
#
# suitable for Edison at NERSC
#
# JRD
# 2016, NERSC
#
# Run the following command before compiling:
# module load cray-hdf5-parallel

# Precompiler options

COMPFLAG = -DINTEL
PARAFLAG = -DMPI -DOMP
MATHFLAG = -DUSESCALAPACK -DUNPACKED -DUSEFFTW3 -DHDF5
# Only uncomment DEBUGFLAG if you need to develop/debug BerkeleyGW.
# The output will be much more verbose, and the code will slow down by ~20%.
#DEBUGFLAG = -DDEBUG

FCPP = /usr/bin/cpp -ansi
F90free = ftn -free -qopenmp
LINK = ftn -qopenmp
FOPTS = -O3 -xAVX -g
FNOOPTS = $(FOPTS)
MOD_OPT = -module
INCFLAG = -I

C_PARAFLAG = -DPARA -DMPICH_IGNORE_CXX_SEEK
CC_COMP = CC
C_COMP = cc
C_LINK = CC
C_OPTS = -O3 -xAVX -qopenmp
C_DEBUGFLAG =

REMOVE = /bin/rm -f

# Math Libraries
#
FFTWPATH = /opt/cray/fftw/3.3.4.4/x86_64
# link line for FFTW2 library. Sometimes needs to be -ldfftw
# Note: To use FFTW3 from MKL, do not link the fftw3xf interfaces.
FFTWLIB = -L$(FFTWPATH)/lib {-lfftw3_omp} -lfftw3
# FFTW3 requires include file fftw3.f03 instead.
FFTWINCLUDE = $(FFTWPATH)/include

HDF5_DIR = /opt/cray/hdf5-parallel/1.8.14/INTEL/14.0
HDF5_LDIR = $(HDF5_DIR)/lib
HDF5LIB = $(HDF5_LDIR)/libhdf5hl_fortran.a \
$(HDF5_LDIR)/libhdf5_hl.a \
$(HDF5_LDIR)/libhdf5_fortran.a \
$(HDF5_LDIR)/libhdf5.a -lz -ldl
HDF5INCLUDE = $(HDF5_DIR)/include

PERFORMANCE =

#LAPACKLIB = ${FFTWLIB}

TESTSCRIPT = qsub edison.scr

My compile error:

ftn -free -qopenmp -I ./Common -I /opt/cray/fftw/3.3.4.4/x86_64/include -I /opt/cray/hdf5-parallel/1.8.14/INTEL/14.0/include -c -O3 -xAVX -g Common/random.p.f -o Common/random.o -module Common/
Common/hdf5_io.p.f: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.
compilation aborted for Common/hdf5_io.p.f (code 1)
make[2]: *** [Common/hdf5_io_m.mod] Error 1
make[2]: *** Waiting for unfinished jobs....
ifort: command line warning #10121: overriding '-xCORE-AVX2' with '-xAVX'
make[2]: Leaving directory `/p/home/adowns/useraide/GW/BerkeleyGW-1.2.0'
make[1]: *** [pre] Error 2
make[1]: Leaving directory `/p/home/adowns/useraide/GW/BerkeleyGW-1.2.0'
make: *** [all] Error 2

This appears to be an issue with the compiler itself, but I also have a high likelihood that I've done something wrong. Thoughts?

Submitted by andrew.downs on Tue, 09/27/2016 - 12:14

This seemingly can't be built with Intel 16. We switched back to 15 and got much further with our compile (which still erroring out, nothing compiler related)