-
Notifications
You must be signed in to change notification settings - Fork 13
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
GIR in Apache Arrow - Error: OutputStream
matches conflicting symbols
#45
Comments
I added Running ../../.dub/packages/girtod/0.23.2/girtod/girtod -i source -o source --use-runtime-linker
source/arrow/ExecutePlan.d(94,38): Error: expression expected, not `,`
auto __p = garrow_execute_plan_new(, &err);
^
source/arrow/c/functions.d(2709,30): Error: basic type expected, not `,`
GArrowExecutePlan* function(, GError** err) c_garrow_execute_plan_new; |
The problem with "garrow_execute_plan_new" should be fixed with commit 441cf5f. To override a function you would use
|
Done! However, back to the main issue. I tried: APILookupArrow.txt
Output Up-to-date girtod 0.23.3: target for configuration [application] is up to date.
Finished To force a rebuild of up-to-date targets, run again with --force
Running ../../.dub/packages/girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/girtod -i source -o source --use-runtime-linker
core.exception.RangeError@../../../girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/source/gtd/LinkedHasMap.d(122): Range violation
----------------
??:? [0x56f54ab612fe]
??:? [0x56f54ab60f62]
??:? [0x56f54ab881ee]
??:? [0x56f54ab6937f]
??:? [0x56f54ab5faf8]
??:? [0x56f54ab60007]
../../../girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/source/gtd/LinkedHasMap.d:122 [0x56f54aa77f76]
../../../girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/source/gtd/GirWrapper.d:493 [0x56f54aa7e680]
../../../girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/source/gtd/GirWrapper.d:137 [0x56f54aa7bd04]
../../../girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/source/gtd/GirWrapper.d:80 [0x56f54aa7b474]
../../../girtod/441cf5f62f311c9a21c59b14218f0e912c8addb3/girtod/source/girtod.d:81 [0x56f54aaece5f]
??:? [0x56f54ab6905c]
??:? [0x56f54ab68f56]
??:? [0x56f54ab68dac]
/home/kassane/zig/ldc2-master/bin/../import/core/internal/entrypoint.d:42 [0x56f54aafb191]
??:? [0x7e0b1b66de07]
??:? __libc_start_main [0x7e0b1b66decb]
??:? [0x56f54aa74a44] |
The APILookup files use the names as they are defined in the gir file. You would end up with this for the lookup file.
Only we should exit with an error instead of crashing on a undefined function name. |
public template FileT(TStruct)
{
// [...]
public bool isClosed() // fix: missing override
{
return garrow_file_is_closed(getFileStruct()) != 0;
}
// [...]
}
This change in APILookup get same error! Anyway, it suggests that it will need to be partially reimplemented, may be use:
|
Hi, 👋
I have been testing that bindgen in Apache-Arrow during the first time after converting the files. I had some conflicts that required manual patching.
some minor fixes:
kassane/arrow@4bcfed1
kassane/arrow@86c9062
But...
Output error
cc: @MikeWey
Reference
The text was updated successfully, but these errors were encountered: