-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coroutines are not built for arm ( targets linuxArm32Hfp and others) #855
Comments
Is there any update on this? It has been almost a year and the issue was neither addressed nor closed. I am developing a Raspberry Pi IoT project and the lack of coroutines is quite a blow. |
You can build your own version for linuxArm from the sources, but you'll also need to build https://github.com/Kotlin/kotlinx.atomicfu first. We'll expand the set platforms available out of the box at some point. |
I think we will address this issue right after Kotlin 1.3.60 release (along with #1596) |
@qwwdfsad any timeline for this to be released? |
@elizarov
let me repeat the question above: |
No specific timeline at the moment. |
It has been many months since there was an update to this issue. @elizarov - What is the current status on support for the Linux Arm targets? Why are the IOS Arm targets a higher priority than the Linux Arm targets? |
If testing for the Linux Arm targets is a issue then there are some solutions available. With the Linux Arm based targets (not the Android ones) testing can either be done through QEMU, or on a Arm based computer (eg a SBC like a Raspberry Pi, or Beagle Bone Black for instance) via SSH. The testing method that is used will heavily depend on the software being tested. For the QEMU option the buildroot would be setup in a similar way as described in this article. |
The status is the same. We don't currently have the capacity in our team to support Linux ARM and no near-term priority in that direction. |
It would be great if the Linux arm32 target could be added. We would like to use this target for Tizen OS smart watches in our app. We are using kotlinx.coroutines but that does not appear to have the required target. Kotlinx.serialization does have support for Linux arm targets, see the following: https://github.com/Kotlin/kotlinx.serialization/blob/fb65be2e43cd5df41ab1c8db0f456bcf57033e6f/gradle/native-targets.gradle#L95-L98 I am not sure how they are testing the Linux targets in their project. |
@Thomas-Vos Are you able to run Kotlin code on Tizen OS already? 👀 |
@LouisCAD yes, I have Kotlin code working on physical Tizen OS watches (specifically the Galaxy Watch). I am using the The Tizen OS emulator is a bit more challenging. It is an x86 emulator. I think I would need a |
@Thomas-Vos - The Tizen emulator is X64 (also known as amd64 in Linux), which should be covered by Kotlin Native's linuxX64 target (already supported by KotlinX Coroutines). On the Tizen website ALL downloads (for Linux, Windows, and Mac OS X) are X64 only. |
It seems as though the Kotlin team is split on Linux support for Kotlin Native. With some major Kotlin libraries developed by JetBrains there is good Linux support (eg KotlinX Serialization), while there are other libraries that barely have Linux support (eg KotlinX Coroutines). Everywhere there is inconsistency on Kotlin Native's Linux support, this has to change! Looks like the Kotlin team is placing way too much focus on Apple platforms to the detriment of support for other platforms like Linux for example. Would not be too surprising that there are some prominent members on the Kotlin team that are heavily for Linux support on Kotlin Native that aren't being allowed to significantly improve the situation. Must be extremely frustrating for them considering they understand the huge importance of the Linux platform from a business/technical standpoint, especially with Embedded Linux which is a large market that would easily rival the Apple platforms. |
Thanks for the details. However, when I try to create an emulator I can only select x86. See attached screenshot. I tried it on macOS and Windows. Are you sure the Tizen OS emulator is 64 bit as well? I created an issue on YouTrack about the missing targets for Tizen OS: https://youtrack.jetbrains.com/issue/KT-43808 |
Very disappointed to run into this hurdle. Any updates on when it might be addressed? |
We also need arm targets to solve https://youtrack.jetbrains.com/issue/KTOR-872 |
As an alternative one can use Reaktive, it does support |
Hey folks, we are also interested in this. We want to support Raspberry Pi and Raspberry Pi Zero in KorGE so we need 32-bit and 64-bit linux versions. Made this PR here to add those targets to atomicfu: https://github.com/Kotlin/kotlinx.atomicfu/pull/193/files Is anything we can do to move this forward, is there any blockers like not being able to execute tests, or it is just a matter of bandwidth? |
Enabling Arm32/Arm64 is pretty simple: #2841 though based on one of the comments on the kotlinx.atomicfu issues board it sounds like it's a matter of testing and officially supporting the build, not just generating it. |
This is blocking kotest to use the Linux ARM target, why can't it be merged? |
This is a major blocker for me. Surely it can't be too hard? |
2 years later, I would still love to have this resolved. I am still building Raspberry Pi electronics with Kotlin/Native and still can't use coroutines. :/ |
kotlinx.coroutines with linuxArm64 and linuxArm32HfpThis fork has minimal changes to allow building linuxArm64 and linuxArm32Hfp kotlin native libraries. Binaries are available on my maven repository at: The current versions available are:
With the source code at: So far I've only tested the linuxArm64 binaries on a RPI3 running debian 64bit. |
Thanks! I've just built on a mac and run on a 32 bit RPI (original version with 512MB RAM) and it works! Awesome! For the benefit of others, here is my
|
I've setup a github repo at https://github.com/danbrough/kotlinxtras/ as a hub for tweaked packages for linuxArm32Hfp,linuxArm64 and the android native targets. |
Kotlin 1.8.0 was released two days ago and still no support for Linux ARM, any news about those platforms? |
@qwwdfsad There is no support for |
Yes, this should be closed as it won't be done, not marked as complete. |
|
When I build kotlin-native project for
linuxArm32Hfp
receive:Unable to find a matching configuration of org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.0.1
The text was updated successfully, but these errors were encountered: