<https://github.com/JetBrains/kotlin-native/issues...
# kotlin-native
s
https://github.com/JetBrains/kotlin-native/issues/3771 I finally tracked down the cause of Alpine being unable to compile Kotlin/Native projects. I spent a decent amount of time writing up a conclusive bug report, hopefully this will be resolved soon!
n
Would highly recommend using Debian (includes the glibc library that Kotlin Native relies on) instead for this reason.
s
That's what I'm using for CI in the meantime, but Alpine is so much lighter and easier to work with that I'd rather this get fixed at some point.
n
Understood however it is important in the beginning to get basic stuff working first, before fine tuning it.
👍 1
Very surprised that one one has raised the issue earlier.
s
I know! I was shocked to see that nobody had reported this on the Github. I've run up against this issue before, but I never investigated it enough to figure out why Alpine in particular was running into this problem.
o
thanks for investigation, do binaries produced with K/N compiler even run on Alpine Linux? They at least shall use backtrace symbol as well.
s
The binary that's built by the above example on a different distribution fails with an error I've never seen before when run on Alpine, @olonho :
Copy code
Relink `/usr/lib/libusb-1.0.so.0' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `strcpy'