Using dpp on the openmpi headers

Peter Jacobs peterj at mech.uq.edu.au
Sun Mar 15 22:40:32 UTC 2020


On Friday, 13 March 2020 at 13:00:32 UTC, bachmeier wrote:
> On Friday, 13 March 2020 at 10:44:08 UTC, Andre Pany wrote:
>> On Friday, 13 March 2020 at 08:08:17 UTC, Peter Jacobs wrote:
>>> Given the recent thread that mentioned dpp for generating an 
>>> interface module for a C library, I thought that I would give 
>>> it a go on the openmpi headers.
>
> Some of that can be done by dstep:
> https://github.com/jacob-carlborg/dstep

Tried the most recent dstep but was unsuccessful...

$ ../dstep/bin/dstep /usr/include/mpi/mpi.h -o mpi.d
/usr/include/mpi/mpi.h:351:8: warning: a type renamed to 
'ompi_status_public_t_' due to the collision with the symbol 
declared in /usr/include/mpi/mpi.h:364:37
dstep: an unknown error occurred: 
core.exception.AssertError at dstep/translator/Type.d(32): Assertion 
failure
----------------
??:? _d_assertp [0x5625185d8659]
dstep/translator/Type.d:32 dstep.translator.Output.SourceNode 
dstep.translator.Type.translateType(dstep.translator.Context.Context, clang.Cursor.Cursor, clang.Type.Type, bool, bool) [0x5625185c1941]

--- snip ---

clang/Visitor.d:66 extern (C) clang.c.Index.CXChildVisitResult 
clang.Visitor.Visitor.visitorFunction(clang.c.Index.CXCursor, 
clang.c.Index.CXCursor, void*) [0x562518562feb]
??:? [0x7f7d196f7bff]




More information about the Digitalmars-d mailing list