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
napperley
01/22/2020, 2:41 AM
Would highly recommend using Debian (includes the glibc library that Kotlin Native relies on) instead for this reason.
s
serebit
01/22/2020, 2:42 AM
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
napperley
01/22/2020, 2:43 AM
Understood however it is important in the beginning to get basic stuff working first, before fine tuning it.
👍 1
napperley
01/22/2020, 2:44 AM
Very surprised that one one has raised the issue earlier.
s
serebit
01/22/2020, 2:45 AM
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
olonho
01/22/2020, 3:47 AM
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
serebit
01/22/2020, 4:21 AM
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'