[petsc-users] configuring on OSX

Brian Van Straalen bvstraalen at lbl.gov
Wed Sep 4 00:46:28 CDT 2019


Attached. c2html config.log



On Tue, Sep 3, 2019 at 10:44 PM Smith, Barry F. <bsmith at mcs.anl.gov> wrote:

>
>   Brian,
>
>     Just for kicks could you send
> arch-macosx-gnu-g/externalpackages/c2html-0.9.4/config.log ?
>
> On my Mac I get
>
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for a BSD compatible install... /usr/bin/install -c
> checking for flex... flex
> checking for yywrap in -lfl... no
> checking for yywrap in -ll... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... yes
> checking whether make sets ${MAKE}... yes
> checking for yylex in -lfl... no
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for unistd.h... yes
> ....
>
> while you get
>
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for a BSD compatible install... /usr/bin/install -c
> checking for flex... flex
> checking for yywrap in -lfl... no
> checking for yywrap in -ll... no
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... no
> checking whether make sets ${MAKE}... yes
> checking for yylex in -lfl... no
> checking how to run the C preprocessor... /lib/cpp
> ...
>
> > On Sep 3, 2019, at 11:35 PM, Smith, Barry F. <bsmith at mcs.anl.gov> wrote:
> >
> >
> >   Ahh,  the --download-c2html is not needed; it is used only when
> building all of the PETSc documentation including html versions of the
> source.
> >
> >   For some reason it's configure is not doing a good job of selecting
> cpp. Over the years it has been amazingly portable, I guess Apple just went
> a bit too far.
> >
> >   Anyways just run without that option,
> >
> >    Barry
> >
> >
> >
> >> On Sep 3, 2019, at 11:24 PM, Brian Van Straalen via petsc-users <
> petsc-users at mcs.anl.gov> wrote:
> >>
> >> I can attach the config log.  mpi breaks for yet other reasons so I was
> trying to simplify things sufficiently.
> >>
> >> if I put mpi back in and take the compiler choices out, I still end up
> with failure on CPP.   It seems determined to look for "/lib/cpp" which is
> only correct for linux.
> >>
> >>
> >>
> >>
> >> On Tue, Sep 3, 2019 at 9:11 PM Balay, Satish <balay at mcs.anl.gov> wrote:
> >> On Wed, 4 Sep 2019, Balay, Satish via petsc-users wrote:
> >>
> >>> On Tue, 3 Sep 2019, Brian Van Straalen via petsc-users wrote:
> >>>
> >>>> 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
> >>>>
> *******************************************************************************
> >>>
> >>> Its best to send configure.log
> >>>
> >>>>
> >>>>
> >>>>
> >>>> Brian
> >>>>
> >>>> my configure script
> >>>>
> >>>> configure_options = [
> >>>> #   '--with-mpi-dir=/usr/local/opt/open-mpi',
> >>
> >> Hm - this is commented out anyway. So there is no mpi specified for
> this build (its a mandatory dependency)?
> >>
> >>>>   '--with-cc=/usr/bin/clang',
> >>>>   '--with-cpp=/usr/bin/cpp',
> >>>>   '--with-cxx=/usr/bin/clang++',
> >>>
> >>> The above 3 options are redundant - when --with-mpi-dir is provided.
> PETSc configure will pick up mpicc etc from the specified location.
> >>>
> >>>>   '--with-fc=0',
> >>>
> >>> Hm - this conflicts with --download-mumps etc that require fortran
> >>>
> >>> Satish
> >>>
> >>>>    '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)
> >> <configure.log>
> >
>
>

-- 
Brian Van Straalen         Lawrence Berkeley Lab
BVStraalen at lbl.gov        Computational Research
(510) 486-4976            Division (crd.lbl.gov)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190903/8ff9090b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 54373 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190903/8ff9090b/attachment-0001.obj>


More information about the petsc-users mailing list