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

Mark Adams mfadams at lbl.gov
Sun Jul 12 12:59:05 CDT 2020


Ah, of course:

#requireslanguage CPP

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

> And if kokkos won't have a configure option - and would always work with
> any c++ compiler - you can use:
>
> diff --git a/src/dm/impls/plex/landau/kokkos/makefile
> b/src/dm/impls/plex/landau/kokkos/makefile
> index 04504b4bf5..faa59fe0ff 100644
> --- a/src/dm/impls/plex/landau/kokkos/makefile
> +++ b/src/dm/impls/plex/landau/kokkos/makefile
> @@ -1,3 +1,5 @@
> +#requireslanguage CPP
> +
>  -include ../../../../../../petscdir.mk
>  ALL: lib
>
>
>
> [with corresponding #ifdef wrappers for all calls to functionality in
> these sources]
>
> Satish
>
> On Sun, 12 Jul 2020, Satish Balay via petsc-dev 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?
> >
> > 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/340d4fad/attachment.html>


More information about the petsc-dev mailing list