Closed DannyArends closed 1 year ago
That change might be right, it just might also differ on 32 vs 64 bits....
Thanks for the quick response, I'll just edit the file and compile, see if it runs. I'll additionally test the 32 bit version as well then, see if the same thing happens.
Lemme know how it goes, I've been pretty busy with other stuff lately so I don't expect to have a change to dig into it myself until some time next week.
Hey Adam,
Just tested it on 32bit as well, same result.
@adamdruppe hit this bug today with arsd-official-10.9.10, and found the fix is already in, you want to push a new release?
However, with the #382 fix, the example at the top of the file has a new problem:
javac Hello.java
ldmd2 -shared myjni.d arsd/jni.d # compile into a shared lib
myjni.d(30): Error: Function type does not match previously declared function with the same mangled name: `_D5myjni5Hello6memberMFNdiZv`
myjni.d(30): Previous IR type: void (i32, %myjni.Hello*)
myjni.d(30): New IR type: void (%myjni.Hello*, i32)
BTW, with dmd on Linux, the cmd should be:
dmd -oflibmyjni.so -shared myjni.d arsd/jni.d # compile into a shared lib
With the current command, no .so is generated.
Hey Adam,
Cross-compiling using dub with LDC2 (on linux64) to android worked in the past, but with jni.d 10.9.9 I get the following error:
Seems the arsd.jni.StackTraceElement* pointer is last in the New IR type, and first in the Previous IR type. Is there any way to fix this,
If I swap the parameters at line 1684, from
to
It compiles, but I don't know if this is the correct fix
LDC version: LDC - the LLVM D compiler (1.32.0), let me know if you need to know anything else
Thanks for the great work on arsd !