[petsc-users] Installation error on macOS Mojave using GNU compiler

Danyang Su danyang.su at gmail.com
Fri Jan 4 11:10:12 CST 2019



On 2019-01-03, 4:59 PM, "Balay, Satish" <balay at mcs.anl.gov> wrote:

    On Thu, 3 Jan 2019, Matthew Knepley via petsc-users wrote:
    
    > On Thu, Jan 3, 2019 at 7:02 PM Danyang Su via petsc-users <
    > petsc-users at mcs.anl.gov> wrote:
    > 
    > > Hi All,
    > >
    > > I am trying to install PETSc on macOS Mojave using GNU compiler.
    > > First, I tried the debug version using the following configuration and it
    > > works fine.
    > >
    > > ./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran
    > > --download-mpich --download-scalapack --download-parmetis --download-metis
    > > --download-ptscotch --download-fblaslapack --download-hypre
    > > --download-superlu_dist --download-hdf5=yes --download-ctetgen
    > >
    > > After testing debug version, I reconfigured PETSc with optimization turned
    > > on using the following configuration. However, I got error during this step.
    > >
    > 
    > Your optimization flags are not right because the compiler is producing
    > AVX-512, but your linker cannot handle it. However, it looks like
    > it might be that your Fortran compiler can't handle it. Do you need
    > Fortran? If not, turn it off (configure with --with-fc=0) and try again.
    
    Or use 'FOPTFLAGS=-O3' [if its indeed fortran sources causing grief]
    
    If '-march=native -mtune=native' gives compiler/linker errors - don't use them.
    
    Satish

Hi Satish,

After removing "-march=native -mtune=native", it works now.

Thanks,

Danyang
    
    > 
    >   Thanks,
    > 
    >     Matt
    > 
    > 
    > > ./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran
    > > --with-cxx-dialect=C++11 --download-mpich --download-scalapack
    > > --download-parmetis --download-metis --download-ptscotch
    > > --download-fblaslapack --download-hypre --download-superlu_dist
    > > --download-hdf5=yes --download-ctetgen --with-debugging=0 COPTFLAGS="-O3
    > > -march=native -mtune=native" CXXOPTFLAGS="-O3 -march=native -mtune=native"
    > > FOPTFLAGS="-O3 -march=native -mtune=native"
    > >
    > > The error information is
    > >
    > > ctoolchain/usr/bin/ranlib: file: .libs/libmpl.a(mpl_dbg.o) has no symbols
    > > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
    > > file: .libs/libmpl.a(mpl_dbg.o) has no symbols
    > > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
    > > file: .libs/libmpl.a(mpl_dbg.o) has no symbols
    > > /var/folders/jm/wcm4mv8s3v1gqz383tcf_4c00000gp/T//ccrlfFuo.s:14:2: error:
    > > instruction requires: AVX-512 ISA AVX-512 VL ISA
    > >         vmovdqu64       (%rdi), %xmm0
    > >         ^
    > > make[2]: *** [src/binding/fortran/use_mpi/mpi_constants.mod-stamp] Error 1
    > > make[2]: *** Waiting for unfinished jobs....
    > > make[1]: *** [all-recursive] Error 1
    > > make: *** [all] Error 2
    > >
    > >
    > > Thanks,
    > >
    > > Danyang
    > >
    > 
    > 
    > 
    
    




More information about the petsc-users mailing list