<div dir="ltr">Ah, of course:<div><br></div><div>#requireslanguage CPP<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 12, 2020 at 1:58 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">And if kokkos won't have a configure option - and would always work with any c++ compiler - you can use:<br>
<br>
diff --git a/src/dm/impls/plex/landau/kokkos/makefile b/src/dm/impls/plex/landau/kokkos/makefile<br>
index 04504b4bf5..faa59fe0ff 100644<br>
--- a/src/dm/impls/plex/landau/kokkos/makefile<br>
+++ b/src/dm/impls/plex/landau/kokkos/makefile<br>
@@ -1,3 +1,5 @@<br>
+#requireslanguage CPP<br>
+<br>
 -include ../../../../../../<a href="http://petscdir.mk" rel="noreferrer" target="_blank">petscdir.mk</a><br>
 ALL: lib<br>
<br>
<br>
<br>
[with corresponding #ifdef wrappers for all calls to functionality in these sources]<br>
<br>
Satish<br>
<br>
On Sun, 12 Jul 2020, Satish Balay via petsc-dev wrote:<br>
<br>
> This build is with --with-cxx=0 - so .cxx source-files shouldn't get compiled.<br>
> <br>
> I'm not sure what the mechanism we have for disabling compile of cxx sources when --with-cxx=0 is used.<br>
> <br>
> Checking -  I see most of the cxx sources are tied to external-packages - and the corresponding package configure enforces c++ requirement<br>
> <br>
> How is kokkos enabled? Is there no --download-kokkos [or equivalent] needed in configure for kokkos?<br>
> <br>
> Note --with-cxx=0 - likely g++ is somehow getting picked up here [ with /usr/include/stdio.h] - resulting in failure<br>
> <br>
> Satish<br>
> <br>
> On Sun, 12 Jul 2020, Mark Adams wrote:<br>
> <br>
> > I am getting pipeline errors for  adams/feature-dmplex-snes-landau on<br>
> > Windows-uni. mswin-gnu is fine.<br>
> > <br>
> > There are lots of errors, here is the start. I've tried to match<br>
> > mat/viennacl, which has .cxx files, w/o luck.<br>
> > <br>
> > Any ideas?<br>
> > Thanks,<br>
> > Mark<br>
> > <br>
> >         CXX<br>
> > arch-ci-mswin-uni/obj/dm/impls/plex/landau/kokkos/landau_kokkos.o<br>
> > In file included from /usr/include/stdio.h:61,<br>
> >                  from<br>
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscsys.h:225,<br>
> >                  from<br>
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscis.h:7,<br>
> >                  from<br>
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscvec.h:9,<br>
> >                  from<br>
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petscmat.h:6,<br>
> >                  from<br>
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/include/petsc/private/dmpleximpl.h:4,<br>
> >                  from<br>
> > /home/glci2/builds/p34_q_s8/0/petsc/petsc/src/dm/impls/plex/landau/kokkos/landau_kokkos.cxx:5:<br>
> > /usr/include/sys/types.h:165:18: error: conflicting declaration ‘typedef<br>
> > __uid_t uid_t’<br>
> >   165 | typedef __uid_t  uid_t;  /* user id */<br>
> >       |                  ^~~~~<br>
> > <br>
> <br>
</blockquote></div>