[petsc-users] configuring on OSX
Jed Brown
jed at jedbrown.org
Tue Sep 3 23:09:41 CDT 2019
We always need configure.log, please.
You shouldn't have to set CPP; it's usually preferable to use $(CC) -E anyway.
Brian Van Straalen via petsc-users <petsc-users at mcs.anl.gov> writes:
> pulling from git PETSC and on master branch.
>
> ./configure CPP=/usr/bin/cpp
> ===============================================================================
> Configuring PETSc to compile on your system
>
> ===============================================================================
> TESTING: checkCPreprocessor from
> config.setCompilers(config/BuildSystem/config/setCompilers.py:592)
>
> *******************************************************************************
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
> details):
> -------------------------------------------------------------------------------
> Cannot find a C preprocessor
> *******************************************************************************
>
>
>
> Brian
>
> my configure script
>
> configure_options = [
> # '--with-mpi-dir=/usr/local/opt/open-mpi',
> '--with-cc=/usr/bin/clang',
> '--with-cpp=/usr/bin/cpp',
> '--with-cxx=/usr/bin/clang++',
> '--with-fc=0',
> 'COPTFLAGS=-g -framework Accelerate',
> 'CXXOPTFLAGS=-g -framework Accelerate',
> 'FOPTFLAGS=-g',
> # '--with-memalign=64',
> '--download-hypre=1',
> '--download-metis=1',
> '--download-parmetis=1',
> '--download-c2html=1',
> '--download-ctetgen',
> # '--download-viennacl',
> # '--download-ml=1',
> '--download-p4est=1',
> '--download-superlu_dist',
> '--download-superlu',
> '--with-cxx-dialect=C++11',
> '--download-mumps=1',
> '--download-scalapack=1',
> # '--download-exodus=1',
> # '--download-ctetgen=1',
> '--download-triangle=1',
> # '--download-pragmatic=1',
> # '--download-eigen=1',
> '--download-zlib',
> '--with-x=1',
> '--with-sowing=0',
> '--with-debugging=1',
> '--with-precision=double',
> 'PETSC_ARCH=arch-macosx-gnu-g',
> '--download-chaco'
> ]
>
> if __name__ == '__main__':
> import sys,os
> sys.path.insert(0,os.path.abspath('config'))
> import configure
> configure.petsc_configure(configure_options)
>
>
> --
> Brian Van Straalen Lawrence Berkeley Lab
> BVStraalen at lbl.gov Computational Research
> (510) 486-4976 Division (crd.lbl.gov)
More information about the petsc-users
mailing list