Getting the following error when running commonize...
# kotlin-native
b
Getting the following error when running commonizer on cinterop (all osx targets + linuxX64)
Copy code
Exception in thread "main" java.lang.IllegalStateException: Resolved classifier platform/posix/__darwin_size_t of type TypeAlias. Expected: Class.
Any tips?
The issue seemed to be with the c lib I'm trying to interop with. Works fine when i only leave X64 targets
r
Might be a commonizer issue. It has to do some extra work when commonizing types like size_t that are different on 32-bit and 64-bit platforms.
b
Hmm, you might be right. I'll raise a YT just in case.
r
You could try pulling a dev kotlin version and seeing if it's fixed there, because there's a lot of commonizer changes coming in 1.5.30
b
I've just reverted from 1.6 dev build lol. But I'll give it a go and report back.
Hmm, seems to be working much better with 1.5.30-RC
🎉 2
All is not lost, yet!
Still wouldn't link against any x32 archs... But that's probably a libmongoc issue
Well that's not fully corect. It drops some symbols when you add 32bit target to the mix
r
You might be able to expect/actual your way around it if it's just 32 vs 64 issues
assuming the cinterop works in the single-platform sources and just not in the shared one
b
Nah, it's the clib itself that's not supporting those archs