[petsc-users] Installation error: C++ preprocessor

Gautam Bisht gbisht at lbl.gov
Tue May 19 11:29:44 CDT 2015


Thanks, Satish. Specifying '--download-sowing-cc=icc
--download-sowing-cxx=icpc', did the trick.

-Gautam.

On Tue, May 19, 2015 at 9:13 AM, Satish Balay <balay at mcs.anl.gov> wrote:

> sowing defaults to using gcc/g++ [from env] for the builds.
> Looks like the default gcc in your path is broken.
>
> >>>>>>>>
> configure:4100: gcc -E -traditional-cpp  conftest.c
> In file included from /usr/include/features.h:362,
>                  from /usr/include/assert.h:38,
>                  from conftest.c:12:
> /usr/include/sys/cdefs.h:32: error: #error "You need a ISO C conforming
> compiler to use the glibc headers"
> configure:4107: $? = 1
> <<<<<<<<<<<
>
> Do you have access to a different gcc - that doesn't give this error?
>
> Alternatively you can try '--download-sowing-cc=icc
> --download-sowing-cxx=icpc'
> and see if that works.
>
>
> Satish
>
> On Tue, 19 May 2015, Gautam Bisht wrote:
>
> > For both, master and v3.5.3+Satish's patch, I get the C preprocessor
> error
> > related to installation of sowing. Attached below are log files.
> >
> > -Gautam.
> >
> > PS: My previous emails bounced, so I'm re-trying to send log files as tar
> > file.
> >
> >
> > On Tue, May 19, 2015 at 8:14 AM, Gautam Bisht <gbisht at lbl.gov> wrote:
> >
> > > Please disregard the logfile in the last email. The correct ones are
> > > attached below.
> > >
> > > -Gautam.
> > >
> > > On Tue, May 19, 2015 at 8:12 AM, Gautam Bisht <gbisht at lbl.gov> wrote:
> > >
> > >> For both, master and v3.5.3+Satish's patch, I get the C preprocessor
> > >> error related to installation of sowing. Attached below are log files.
> > >>
> > >> -Gautam.
> > >>
> > >> On Mon, May 18, 2015 at 12:33 PM, Satish Balay <balay at mcs.anl.gov>
> wrote:
> > >>
> > >>> Can you try using petsc development branch 'master' and see if
> > >>> it works? It should also add in the c++ compiler to hdf5 configure..
> > >>>
> > >>> Wrt petsc-3.5 - perhaps the attached patch will work..
> > >>>
> > >>> Satish
> > >>>
> > >>> On Mon, 18 May 2015, Gautam Bisht wrote:
> > >>>
> > >>> > Attached below is the config.log for HDF5.
> > >>> >
> > >>> > -Gautam.
> > >>> >
> > >>> > On Mon, May 18, 2015 at 12:18 PM, Satish Balay <balay at mcs.anl.gov>
> > >>> wrote:
> > >>> >
> > >>> > > On Mon, 18 May 2015, Matthew Knepley wrote:
> > >>> > >
> > >>> > > > On Mon, May 18, 2015 at 1:35 PM, Gautam Bisht <gbisht at lbl.gov>
> > >>> wrote:
> > >>> > > >
> > >>> > > > > Hi,
> > >>> > > > >
> > >>> > > > > While trying to install v3.5.3 with intel 15.0.0 on a linux
> > >>> machine,
> > >>> > > I'm
> > >>> > > > > getting an error related to C++ preprocessor. Any help to
> > >>> resolve the
> > >>> > > issue
> > >>> > > > > would be greatly appreciated.
> > >>> > > > >
> > >>> > > > > Attached below is the logfile.
> > >>> > > > >
> > >>> > > >
> > >>> > > > The HDF5 configure is failing because it says your preprocessor
> > >>> does not
> > >>> > > > work. We would need
> > >>> > > > to see
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>>
> /clusterfs/esd/esd2/gbisht/MODELS/petsc3.5.3/lrc-intel-2015-0-090-fort-debug/externalpackages/hdf5-1.8.10-patch1.1/config.log
> > >>> > >
> > >>> > > I think the issue is - hdf5 configure is looking for c++
> compiler -
> > >>> > > but PETSc configure is not providing this info to hdf5 configure.
> > >>> > >
> > >>> > > Satish
> > >>> > >
> > >>> >
> > >>>
> > >>
> > >>
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150519/327f4ba0/attachment.html>


More information about the petsc-users mailing list