[petsc-users] Installation error: C++ preprocessor
Satish Balay
balay at mcs.anl.gov
Tue May 19 11:13:12 CDT 2015
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
> >>> > >
> >>> >
> >>>
> >>
> >>
> >
>
More information about the petsc-users
mailing list