[petsc-dev] Windows error in pipeline with cxx file

Mark Adams mfadams at lbl.gov
Sun Jul 12 13:02:02 CDT 2020


On Sun, Jul 12, 2020 at 1:36 PM Satish Balay <balay at mcs.anl.gov> wrote:

> This build is with --with-cxx=0 - so .cxx source-files shouldn't get
> compiled.
>
> I'm not sure what the mechanism we have for disabling compile of cxx
> sources when --with-cxx=0 is used.
>
> Checking -  I see most of the cxx sources are tied to external-packages -
> and the corresponding package configure enforces c++ requirement
>
> How is kokkos enabled? Is there no --download-kokkos [or equivalent]
> needed in configure for kokkos?
>

This is not a kokkos file, well it is but the guts are #ifdef'ed out to get
it to build. (I can build and run the regression test in the tutorials
directory directly).

If someone wants to make --download-kokkos I have a test.

Thanks,


>
> Note --with-cxx=0 - likely g++ is somehow getting picked up here [ with
> /usr/include/stdio.h] - resulting in failure
>
> Satish
>
> On Sun, 12 Jul 2020, Mark Adams wrote:
>
> > I am getting pipeline errors for  adams/feature-dmplex-snes-landau on
> > Windows-uni. mswin-gnu is fine.
> >
> > There are lots of errors, here is the start. I've tried to match
> > mat/viennacl, which has .cxx files, w/o luck.
> >
> > Any ideas?
> > Thanks,
> > Mark
> >
> >         CXX
> > arch-ci-mswin-uni/obj/dm/impls/plex/landau/kokkos/landau_kokkos.o
> > In file included from /usr/include/stdio.h:61,
> >                  from
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscsys.h:225,
> >                  from
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscis.h:7,
> >                  from
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscvec.h:9,
> >                  from
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscmat.h:6,
> >                  from
> >
> /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petsc/private/dmpleximpl.h:4,
> >                  from
> >
> /home/glci2/builds/p34_q_s8/0/petsc/petsc/src/dm/impls/plex/landau/kokkos/landau_kokkos.cxx:5:
> > /usr/include/sys/types.h:165:18: error: conflicting declaration ‘typedef
> > __uid_t uid_t’
> >   165 | typedef __uid_t  uid_t;  /* user id */
> >       |                  ^~~~~
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200712/5eccb089/attachment-0001.html>


More information about the petsc-dev mailing list