On Wed, 28 Jul 2010 10:15:19 -0700, Wesley Smith <wesley.hoke at gmail.com> wrote: > I was trying to set the -arch flag for compilation and linking, but it > seems to interfere somehow with the cxx compiler. Even providing one > explicitly doesn't seem to work. Is there a way to force compilation > as i386 instead of x86_64? > > bleeps:petsc-dev wesleysmith$ ./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"
"-arch i386" is not a gcc option, try -march=i386 (or e.g. -march=pentium4). Jed
