intel compilers and ml fails

Klaij, Christiaan C.Klaij at
Fri Mar 6 03:12:45 CST 2009

I found a workaround for this problem:

When PETSc configures ML it uses a flag called -lPEPCF90 which causes the error. I configured ML manually using the exact same command that PETSc would use (taken from the log), except for the -lPEPCF90 flag. Then I configured PETSc with --with-ml-include=/path/to/ml/include --with-ml-lib=/path/to/ml/liblibml.a and now -pc_type ml is working as expected.


-----Original Message-----
From: Klaij, Christiaan
Sent: Tue 3/3/2009 2:50 PM
To: petsc-users at
Subject: intel compilers and ml fails

I'm trying to build petsc-3.0.0-p3 using the intel compilers and math kernel on a linux pc. Everything's fine as long as I don't use ml. When I do use ml, I get an "Error running configure on ML". The ml configure scripts says "configure: error: linking to Fortran libraries from C fails".

This is my configure command:

$ config/ --with-cxx=icpc --with-cc=icc --with-fc=ifort --with-blas-lapack-dir=/opt/intel/mkl/ --download-ml=1 --download-mpich=1

There's no problem when using gcc and gfortran. The intel compilers and mkl are version 10.1. Any ideas on how to fix this problem? 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list