Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dstep: an unknown error occurred: core.exception.AssertError@dstep/translator/Type.d(32): Assertion failure #249

Open
qproger opened this issue Jan 24, 2020 · 3 comments

Comments

@qproger
Copy link

qproger commented Jan 24, 2020

Hello,
I try to translate C header file called "tcl.h" from Tcl/Tk C library.
Used command: dstep -o tcl.di tcl.h
After that get this error: dstep: an unknown error occurred: core.exception.AssertError@dstep/translator/Type.d(32): Assertion failure
and a lot of lines
---------------- ??:? [0x3291b90] ??:? [0x329be4a] ??:? [0x328332d] ??:? [0x327a7ec] ??:? [0x52ad59] ??:? [0x532e96] ....

DStep is 1.0.0.
OS: Redhat 6.5

@qproger
Copy link
Author

qproger commented Jan 24, 2020

Found out that these three lines cause assertion failure:
#define TCL_VOLATILE ((Tcl_FreeProc *) 1)
#define TCL_STATIC ((Tcl_FreeProc *) 0)
#define TCL_DYNAMIC ((Tcl_FreeProc *) 3)

@jacob-carlborg
Copy link
Owner

Which version of libclang are you using? You can run dstep --clang-version.

@jacob-carlborg
Copy link
Owner

I can not reproduce this with DStep linked with libclang 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants