[mpich-discuss] mpich2 compilation with intel only
Dave Goodell
goodell at mcs.anl.gov
Tue Jun 26 15:48:19 CDT 2012
Looks like your intel compiler is broken somehow when compiling under "-no-gcc". The "icc" compiler is finding the system-installed, gcc-specific stdarg.h which is blowing up with a "__MWERKS_" error message. My guess is that it won't complain if you drop "-no-gcc" because this will cause icc to #define "__GNUC__" and similar symbols that will make the system header happier.
Are you *sure* that the "-no-gcc" option is what you want? Will it compile simple C programs that "#include <stdarg.h>" without any involvement with MPICH2?
-Dave
On Jun 25, 2012, at 4:50 PM MDT, David Riethmiller wrote:
> Hi -
>
> I'm having trouble compiling mpich2 version 1.4.1p1 on a Mac OSX 10.5 system, using only the Intel compilers. I specifically want to avoid the GNU compilers, in order to match the software available on a supercomputer to which I will port later.
>
> When running my configure script, I hit the following error:
>
> ...
> checking for size of Fortran type integer... configure: WARNING: Unable to compile the C routine for finding the size of a integer
>
> checking for size of Fortran type real... configure: WARNING: Unable to compile the C routine for finding the size of a real
>
> checking for size of Fortran type double precision... configure: WARNING: Unable to compile the C routine for finding the size of a double precision
>
> checking whether integer*1 is supported... yes
> checking whether integer*2 is supported... yes
> checking whether integer*4 is supported... yes
> checking whether integer*8 is supported... yes
> checking whether integer*16 is supported... no
> checking whether real*4 is supported... yes
> checking whether real*8 is supported... yes
> checking whether real*16 is supported... yes
> configure: error: Unable to configure with Fortran support because configure could not determine the size of a Fortran INTEGER. Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes of a Fortran INTEGER
>
>
>
>
> I've saved my configure command as a shell script:
>
> #! bin/sh
>
> CDIR=/opt/intel/
> FDIR=/opt/intel/fc/10.1.008/
>
> sh ${CDIR}/bin/iccvars.sh ia32
> sh ${CDIR}/bin/compilervars.sh ia32
> sh ${FDIR}/bin/ifortvars.sh
>
> ./configure \
> --prefix=/Volumes/SecondHD/rieth/mpich2_intel \
> CC=icc \
> CFLAGS="-m32 -no-gcc -I${CDIR}/include -L${DYLD_LIBRARY_PATH}" \
> LDFLAGS="-L${CDIR}/lib -L${FDIR}/lib -L${DYLD_LIBRARY_PATH}" \
> F77=ifort \
> FFLAGS="-m32 -no-gfortran -I${FDIR}/include -L${DYLD_LIBRARY_PATH}" \
> CXX=icpc \
> CXXFLAGS="-m32 -no-gcc -I${CDIR}/include -L${DYLD_LIBRARY_PATH}" \
> LDFLAGS="-L${CDIR}/lib -L${FDIR}/lib -L${DYLD_LIBRARY_PATH}" \
> 2>&1 | tee c.txt
>
>
> I'm attaching the output files. Can anyone see what I'm doing wrong?
>
> Thanks very much,
> Dave
>
>
>
> <c.txt><config.log><config.system>
>
>
> -------------------------------------------------
> David A. Riethmiller
> Ph.D. Candidate, Astrophysical Institute
> Ohio University
>
> Clippinger Labs 338
> http://www.phy.ohiou.edu/~rieth/
>
>
>
>
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list