-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Errors with 32bit target #69
Comments
dart doesn't support cross compiling afaik, can you elaborate on how you built it? seems like you have 64bit dart code loading a 32bit library? note that you'll have to regenerate the bindings for a 32bit library. |
here we select the type based on the target_pointer_width which is detected in the macro and it works with wasm32, so not sure what the issue might be. |
saddly our infrastructure is quite complicated and not trivial to get it to work. if you're trying to evaluate the tlfs platform, I'd suggest sticking to supported targets and build configurations. if you want to use ffi-gen in your own project, a small test case would help. if you have some other needs consulting is available. |
No worries, 64bit it is for not (I am not sure I'll need the 32bit architecture yet). If I do come across the issue again, I'll raise more info and/or a PR about it. Just wanted to have this already noted for reference. |
Running with an x86 32bit emulator I couldn't get this to work. even something as simple as echoing the same string back, like below, failed.
It fails when trying to read back the result string:
And putting a
print("${tmp10};${tmp11};${tmp12}");
into the generated dart-code also shows why:I/flutter ( 4879):-5868786620503136931;-5095886506439946255;-2008385391117589139
are really not valid pointer and size values. I think there's some type-mixup happening as the dart-code is looking at it with a 64bit data-lense while the code that is generated for 32bit rust uses i32 and u32 ...The text was updated successfully, but these errors were encountered: