[petsc-users] compile petsc with intel compiler

Satish Balay balay at mcs.anl.gov
Tue Jul 9 15:25:51 CDT 2013


On Tue, 9 Jul 2013, Michael Povolotskyi wrote:

> Dear Petsc users and developers,
> I'm trying to build petsc with Intel compiler.
> 
> The configuration process runs okay (I attach the log here),
> but I get an error when I build it:
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/mpovolot/Code_intel/libs/petsc/build-real/linux
> Scanning dependencies of target petscsys
> [  0%] [  0%] [  0%] Building CXX object
> CMakeFiles/petscsys.dir/src/sys/info/verboseinfo.c.o
> Building Fortran object
> CMakeFiles/petscsys.dir/src/sys/f90-mod/petscsysmod.F.o
> Building CXX object
> CMakeFiles/petscsys.dir/src/sys/totalview/tv_data_display.c.o
> Building CXX object CMakeFiles/petscsys.dir/src/sys/python/pythonsys.c.o
> Building CXX object CMakeFiles/petscsys.dir/src/sys/logging/plog.c.o
> /home/mpovolot/Code_intel/libs/petsc/build-real/src/sys/f90-mod/petscsysmod.F:6.11:
> 
>         use mpi
>            1
> Fatal Error: File 'mpi.mod' opened at (1) is not a GFORTRAN module file
> make[6]: *** [CMakeFiles/petscsys.dir/src/sys/f90-mod/petscsysmod.F.o] Error 1


This is strange. configure check passed - but the actual build failed :(

you can workarround it by removing 'HAVE_MPI_F90MODULE' stuff from
PETSC_DIR/linux/include/petscconf.h

Perhaps the test code need more mpi calls to catch this error?

      program main
       use mpi
       integer ierr,rank
       call mpi_init(ierr)
       call mpi_comm_rank(MPI_COMM_WORLD,rank,ierr)

      end

Satish

> make[6]: *** Waiting for unfinished jobs....
> make[5]: *** [CMakeFiles/petscsys.dir/all] Error 2
> make[4]: *** [all] Error 2
> make[3]: *** [ccmake] Error 2
> make[2]: *** [cmake] Error 2
> **************************ERROR************************************
>   Error during compile, check linux/conf/make.log
>   Send it and linux/conf/configure.log to petsc-maint at mcs.anl.gov
> ********************************************************************
> 
> I attach here the make.log
> What is strange to me that it has something to do with Gfortran, while I want
> to build everything with Intel.
> Thank you for help,
> Michael.
> 
> 



More information about the petsc-users mailing list