[petsc-dev] CFLAGS / LDFLAGS and cxx error

Wesley Smith wesley.hoke at gmail.com
Wed Jul 28 12:39:47 CDT 2010


> Ah yes, Apple does like to change things superficially. ;-)

indeed :)

> Back to your problem, if you use --with-clanguage=cxx and --with-cc=gcc
> (instead of letting the system find it on it's own), then you should
> provide --with-cxx=g++ (or whatever).  If this doesn't work, send
> configure.log to petsc-maint at mcs.anl.gov.
>

that's exactly what I'm doing:


./configure --with-cc=gcc --with-clanguage=cxx --download-boost
--with-fc=0 --download-parmetis --with-shared --with-dynamic
--download-mpich --with-sieve --CFLAGS="-arch i386" --LDFLAGS="-arch
i386" --with-cxx=g++
===============================================================================
             Configuring PETSc to compile on your system
===============================================================================
TESTING: checkCxxCompiler from
config.setCompilers(config/BuildSystem/config/setCompilers.py:638)

*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
for details):
-------------------------------------------------------------------------------
C++ compiler you provided with -with-cxx=g++ does not work
*******************************************************************************

I'll send in the log then.

wes



More information about the petsc-dev mailing list