-
Notifications
You must be signed in to change notification settings - Fork 43
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
[ffi.compile] Sizes are not properly resolved when a referenced type X has a pointer to type which includes X #147
Comments
It works for me and I remember fixing something like that (maybe last year?). Can you check which version of CFFI you're testing? |
Sorry, I got it to fail too now. My mistake. It only occurs in out-of-line ABI mode, when you specify |
There is an order dependency, which suggests a workaround for you for now: if you first do |
See #148. |
The following files cause a crash due to
TypeError: field 'struct Outer.inner' has ctype 'struct Inner' of unknown size
when they are run in sequence:
gen_cffi_test.py
:cffi_test.py
:python gen_cffi_test.py && python cffi_test.py
I have not figured out what the root cause is and will probably not be able to find time to look further. Any analysis by someone else is welcome.
EDIT: It's not just
ffi.callback
,ffi.sizeof("struct Inner")
also gives the same error.EDIT2: The error doesn't happen when the erroring method is called in the first file (i.e. no compilation)
The text was updated successfully, but these errors were encountered: