[petsc-dev] broken options handling with intel 16.0 compilers on mac OS

Satish Balay balay at mcs.anl.gov
Tue Sep 22 23:16:22 CDT 2015


On Tue, 22 Sep 2015, Blaise A Bourdin wrote:

> With the later configuration, it looks like what matters is the order in which  -lmpifort and -lifcore are listed:
> This one works:
> mpif90 -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first   -g -O0  -I/opt/HPC/petsc-dev/include/petsc/finclude -o ex5f90 ex5f90.o -Wl,-rpath,/opt/HPC/petsc-dev/Darwin-intel16.0-g/lib -L/opt/HPC/petsc-dev/Darwin-intel16.0-g/lib  -lpetsc -Wl,-rpath,/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/compiler/lib -L/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/compiler/lib -Wl,-rpath,/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/mkl/lib -lifcore -lmpifort
> 
> This one does not:
> mpif90 -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first   -g -O0  -I/opt/HPC/petsc-dev/include/petsc/finclude -o ex5f90 ex5f90.o -Wl,-rpath,/opt/HPC/petsc-dev/Darwin-intel16.0-g/lib -L/opt/HPC/petsc-dev/Darwin-intel16.0-g/lib  -lpetsc -Wl,-rpath,/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/compiler/lib -L/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/compiler/lib -Wl,-rpath,/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/mkl/lib -lmpifort -lifcore

Does linking with -lifcore vs
/opt/intel-16.0/compilers_and_libraries_2016.0.083/mac/compiler/lib/libifcore.a
make a difference?

And what do you have for:

cd /opt/HPC/mpich-3.1.4-intel16.0/lib
ls
nm -Ao libmpiifort.* |grep get_command_argument

BTW: I'm assuming you have sept 20 or newer petsc master branch.

Satish



More information about the petsc-dev mailing list