How to use PETSc with sunf90?

Satish Balay balay at mcs.anl.gov
Thu Feb 12 09:53:15 CST 2009


On Thu, 12 Feb 2009, Svend Tollak Munkejord wrote:

> 
> > But ideally - you should be using '--with-cc=suncc --wth-cxx=sunCC'
> > with sunf90 [not gcc/g++].
> 
> I agree, but this gives:
> 
> *********************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> ---------------------------------------------------------------------------------------
> C++ compiler you provided with -with-cxx=sunCC does not work
> *********************************************************************************
> 
> configure.log contains things like
> 
> Possible ERROR while running linker: /usr/lib64/libm.so: file not recognized: File format not recognized
> 
> and I don't know how to fix it. I could send you the configure.log if
> you like.

Hmm - sometimes sun compilers require the static libm - so the
following additional option might
work. '--LIBS=/usr/lib64/libm.a'. Otherwise - send us configure.log at
petsc-maint at mcs.anl.gov

Another note: we always recommend debug build of PETSc for
development. One should worry about optimized/performance builds -
only after developmenet is done and when performance numbers are
captured [perhaps for publishing].

Satish


More information about the petsc-users mailing list