[petsc-dev] CFLAGS / LDFLAGS and cxx error
Barry Smith
bsmith at mcs.anl.gov
Wed Jul 28 13:10:45 CDT 2010
You are passing the CFLAGS="-arch i386" to C but not g++ hence g++ is using the 64 bit. You need to set CXXFLAGS also to use 32 bit.
Barry
On Jul 28, 2010, at 12:39 PM, Wesley Smith wrote:
>> 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