https://kotlinlang.org logo
Title
s

Stanislav Radchenko

01/31/2023, 5:35 AM
Hi, I want to launch Ktor server on my Raspberry PI 3 ( linux arm64). It's possible with Kotlin/Native now?
j

jw

01/31/2023, 1:49 PM
Coroutines don't support arm64 Linux so nothing downstream of it can either
e

ephemient

01/31/2023, 3:19 PM
The libraries will likely work if you build them yourself, but JB currently doesn't test or publish for that platform. https://github.com/Kotlin/kotlinx.coroutines/issues/855
j

jw

01/31/2023, 3:20 PM
Yes we're likely waiting on whatever this comment is referring to https://github.com/Kotlin/kotlinx-atomicfu/issues/253#issuecomment-1298598854
s

Stanislav Radchenko

01/31/2023, 3:23 PM
Must I build on another architecture ( for example arm32 or x86_64) and launch on arm64 or something else? or Is arm32 also not supported for Linux kotlin/native?
e

ephemient

01/31/2023, 3:37 PM
Kotlin/Native does support targeting linuxArm32Hfp (ARMv7 with hardware floating point), and you can build for it from other hosts
you might not be able to run the compiler on a Linux ARM device directly (https://youtrack.jetbrains.com/issue/KT-45592), but cross-compiling works
a blocker for these artifacts to be published is the lack of support within JetBrains' CI infrastructure, not Kotlin itself https://youtrack.jetbrains.com/issue/KT-43996
n

natario1

02/06/2023, 9:47 AM
JB’s plan (and the meaning of https://github.com/Kotlin/kotlinx-atomicfu/issues/253#issuecomment-1298598854) is to start publishing the artifacts even without this test infrastructure, but making it clear that they are less “reliable” than others. So targets will be formally split into groups with different level of support, which will unblock publishing across all kotlinx libraries - if you use an untested target it’s at your own risk. The only problem is that this has been the plan for a long time 😄 not sure when they’ll do it