<div dir="ltr">Nope. I will use your fix.<div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 13, 2021 at 7:55 PM Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</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"><div dir="ltr">I am going to try just including petscsys.h and see if it works.<div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 13, 2021 at 6:23 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">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">This gets the build going...<br>
<br>
diff --git a/src/sys/dll/cxx/demangle.cxx b/src/sys/dll/cxx/demangle.cxx<br>
index 31810ea15f..793a97d285 100644<br>
--- a/src/sys/dll/cxx/demangle.cxx<br>
+++ b/src/sys/dll/cxx/demangle.cxx<br>
@@ -1,3 +1,4 @@<br>
+#define PETSC_SKIP_COMPLEX<br>
 #include <petsc/private/petscimpl.h><br>
<br>
 #ifdef PETSC_HAVE_CXXABI_H<br>
<br>
Satish<br>
<br>
On Thu, 13 May 2021, Satish Balay wrote:<br>
<br>
> >         CXX arch-ci-linux-clang-avx/obj/sys/dll/cxx/demangle.o<br>
> <br>
> It is built with a c++ compiler - so __cplusplus should be defined. [PETSC_HAVE_CXXABI is not defined]<br>
> <br>
> Do you need to build this sourcefile file in a clanguage=C build?<br>
> <br>
> I'm not sure if a c++/complex build  is checked with this compiler.<br>
> <br>
> [eventhough its clang build - I see the compiler is using system incldues aka from gcc-4.8.5 - so perhaps some things don't work?]<br>
> <br>
> One option is to add the following to this sourcefile:<br>
> <br>
> #define PETSC_SKIP_COMPLEX<br>
> <br>
> Satish<br>
> <br>
> <br>
> On Thu, 13 May 2021, Matthew Knepley wrote:<br>
> <br>
> > In this CI run (linux-clang-avg):<br>
> > <br>
> >   <a href="https://gitlab.com/petsc/petsc/-/jobs/1260342204" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/jobs/1260342204</a><br>
> > <br>
> > The compile fails building a C++ file, demangle.cxx. It fails at the first<br>
> > line,<br>
> > including <petsc/private/petscimpl.h>, down in petscsystypes.h. It bombs<br>
> > during the definition of complex because it looks like the compiler is not<br>
> > defining __cplusplus, and thus takes the wrong branch. Is this what is<br>
> > happening?<br>
> > I cannot access this machine.<br>
> > <br>
> >   Thanks,<br>
> > <br>
> >       Matt<br>
> > <br>
> > <br>
> <br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div>