[petsc-users] HYPRE mpif77 -g error
Satish Balay
balay at mcs.anl.gov
Wed Dec 16 10:59:14 CST 2015
Looks like this hypre is not built via petsc. If so - it would have used 'mpif90'
$ ./configure --prefix=/scratch/balay/petsc/arch-linux2-c-debug MAKE=/usr/bin/make --libdir=/scratch/balay/petsc/arch-linux2-c-debug/lib CC="mpicc" CFLAGS="-fPIC -g3" CXX="mpicxx" CXXFLAGS="-g -fPIC" F90="mpif90" F90FLAGS="-fPIC -ffree-line-length-0 -g" F77="mpif90" FFLAGS="-fPIC -ffree-line-length-0 -g" FC="mpif90" FCFLAGS="-fPIC -ffree-line-length-0 -g" --with-MPI-include="/usr/include/mpich2" --with-MPI-lib-dirs="" --with-MPI-libs="" --with-blas-libs= --with-blas-lib-dir= --with-lapack-libs= --with-lapack-lib-dir= --with-blas=yes --with-lapack=yes --with-fmangle-blas=one-underscore --with-fmangle-lapack=one-underscore --without-babel --without-mli --without-fei --without-superlu AR="/usr/bin/ar cr"
Satish
On Wed, 16 Dec 2015, Barry Smith wrote:
>
> It found /site/intel/impi/4.1.3.048/intel64/bin/mpif77 to use as the Fortran compiler but that script does not work since it cannot find the g77.
>
>
> configure:5671: /site/intel/impi/4.1.3.048/intel64/bin/mpif77 -c conftest.f >&5
> /site/intel/impi/4.1.3.048/intel64/bin/mpif77: line 643: g77: command not found
> configure:5678: $? = 127
> configure: failed program was:
> | subroutine foobar()
> | return
> | end
> | subroutine foo_bar()
> | return
> | end
> configure:5880: error: in `/u/home/lcosta/.hashdist/tmp/hypre-7ywg3ao4uvlv/src':
> configure:5883: error: cannot compile a simple Fortran program
>
> Regardless in 2015 it is insane to use g77, the gfortran compiler is what you should use. You should talk to whoever maintains the MPI etc on your system.
>
> Barry
>
>
>
> > On Dec 16, 2015, at 8:21 AM, Costa, Luis CIV (US) <luis.costa.civ at mail.mil> wrote:
> >
> > I am having trouble building HYPRE on an IBM iDataPlex cluster running RHEL with Intel MPI compilers. I receive the following error:
> >
> > 2015/12/16 02:29:44 - INFO: [package:run_job] checking whether /site/intel/impi/4.1.3.048/intel64/bin/mpif77 accepts -g... no
> > 2015/12/16 02:29:44 - INFO: [package:run_job] configure: WARNING: compilation failed
> > I've attached my config.log also. Any help is appreciated.
> >
> > Thank you!
> >
> >
> > Luis Costa
> > Research Scientist
> > US ARMY RDECOM-ARDEC
> > Explosive Technology & Prototyping Division
> > Energetics, Warheads & Manufacturing Technologies Directorate
> > RDAR-MEE-W, Building 3022, Room 44
> > Picatinny, NJ 07806-5000
> > COM: 973.724.4236
> > DSN: 880.4236
> > CELL: 973.668.0044
> > FAX: 973.724.4059
> > luis.costa.civ at mail.mil
> > <config.log>
>
>
More information about the petsc-users
mailing list