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

Matthew Knepley knepley at gmail.com
Thu Jan 3 18:45:03 CST 2019


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.

  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
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190103/a7fbdd1c/attachment.html>


More information about the petsc-users mailing list