[petsc-dev] Problem with the reorganization of complex with clang
Satish Balay
balay at mcs.anl.gov
Thu May 13 16:15:14 CDT 2021
> CXX arch-ci-linux-clang-avx/obj/sys/dll/cxx/demangle.o
It is built with a c++ compiler - so __cplusplus should be defined. [PETSC_HAVE_CXXABI is not defined]
Do you need to build this sourcefile file in a clanguage=C build?
I'm not sure if a c++/complex build is checked with this compiler.
[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?]
One option is to add the following to this sourcefile:
#define PETSC_SKIP_COMPLEX
Satish
On Thu, 13 May 2021, Matthew Knepley wrote:
> In this CI run (linux-clang-avg):
>
> https://gitlab.com/petsc/petsc/-/jobs/1260342204
>
> The compile fails building a C++ file, demangle.cxx. It fails at the first
> line,
> including <petsc/private/petscimpl.h>, down in petscsystypes.h. It bombs
> during the definition of complex because it looks like the compiler is not
> defining __cplusplus, and thus takes the wrong branch. Is this what is
> happening?
> I cannot access this machine.
>
> Thanks,
>
> Matt
>
>
More information about the petsc-dev
mailing list