Installation Problem on Intel compiler

Submitted by zwang9505 on Thu, 01/05/2017 - 20:10

Forums 

Installation

Hello all,

I am recently installing the BerkeleyGW 1.2.0 on my cluster. I ran into some errors as listed here during the make all process.

ar ru libtile_qhull.a libtile_qhull.o libtile_qhull_find.o geom2.o geom.o global.o io.o libqhull.o mem.o merge.o poly2.o poly.o qset.o random.o rboxlib.o stat.o user.o usermem.o userprintf.o userprintf_rbox.o
ar: creating libtile_qhull.a
make[3]: Leaving directory `/home/wangzhan/software/BerkeleyGW-1.2.0/Common/qhull'
mpiifort -O3 -o Common/printsvninfo.x Common/printsvninfo.o Common/svninfo.o Common/global.o Common/typedefs.o Common/nrtype.o Common/push_pop.o Common/message.o Common/peinfo.o Common/timing.o Common/intrinsics.o Common/scalapack_aux.o
/opt/intel/composer_xe_2015.1.133/compiler/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-15_0/20141024_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x2a): undefined reference to `MAIN__'
make[2]: *** [Common/printsvninfo.x] Error 1
make[2]: Leaving directory `/home/wangzhan/software/BerkeleyGW-1.2.0'
make[1]: *** [pre] Error 2
make[1]: Leaving directory `/home/wangzhan/software/BerkeleyGW-1.2.0'
make: *** [all] Error 2

My arch.mk file is as follows.

####################
COMPFLAG = -DINTEL
PARAFLAG = -DMPI
MATHFLAG = -DUSESCALAPACK -DUNPACKED

FCPP = icc -P
F90free = mpiifort
LINK = mpiifort
FOPTS = -O3
FNOOPTS = -O2
MOD_OPT =
INCFLAG = -I

C_PARAFLAG = -DPARA
CC_COMP = mpiicc
C_COMP = mpiicc
C_LINK = mpiicc
C_OPTS = -O3

REMOVE = /bin/rm -f

# Math Libraries

FFTWPATH = /opt/intel/mkl/lib/intel64
FFTWLIB = -Wl,--start-group $(MKLPATH)/libmkl_intel_lp64.a $(MKLPATH)/libmkl_sequential.a $(MKLPATH)/libmkl_core.a $(MKLPATH)/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group
FFTWINCLUDE = $(MKLROOT)/include/fftw/

# MKL settings

MKLPATH = /opt/intel/mkl/lib/intel64
LAPACKLIB = -Wl,--start-group $(MKLPATH)/libmkl_intel_lp64.a $(MKLPATH)/libmkl_sequential.a $(MKLPATH)/libmkl_core.a $(MKLPATH)/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group
SCALAPACKLIB = $(MKLPATH)/libmkl_scalapack_lp64.a
####################

Has anybody run into this before? We'll really appreciate your help!

Zhan

Submitted by yunhailiseu on Mon, 01/16/2017 - 05:04

Perhaps it's due to the incompatibilities between FORTRAN/C/C++ compilers. This is likely to happen when compilers from different vendors (e.g. GNU and Intel) are used together, as different compilers may have different naming convention for the symbols which causes linking error.

In my arch.mk CC_COMP and C_LINK is set to the MPI C++ compiler, and it works well. So try CC_COMP = C_LINK = mpiicpc.

Best,
Yunhai