[petsc-dev] CFLAGS / LDFLAGS and cxx error

Jed Brown jed at 59a2.org
Wed Jul 28 12:39:03 CDT 2010


On Wed, 28 Jul 2010 10:29:32 -0700, Wesley Smith <wesley.hoke at gmail.com> wrote:
> > "-arch i386" is not a gcc option, try -march=i386 (or
> > e.g. -march=pentium4).
> 
> It is on OSX.

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

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.

Jed



More information about the petsc-dev mailing list