Is anyone compiling kotlin-native for `linux_arm64...
# kotlin-native
a
Is anyone compiling kotlin-native for
linux_arm64
and runs the code in an
qemu-emulator
? On macOS user-mode-emulation is not supported for qemu. That makes it hard to just use
qemu-aarch64
in user-mode like on linux. On Linux on the other hand I am facing issues currently about the interpreter and required library files. I tried using the official
qemu-aarch64
emulator with
version 8.1.1
& I tried using the
kotlin-native/tools/qemu
scripts build
qemu-aarch64
emulator with version
5.1.0-dirty
(3-years old, is anyone using it ?! ) In both cases I am facing:
/lib/ld-linux-aarch64.so.1: No such file or directory
-> Fixed by adding
-L /usr/aarch64-linux-gnu/
Then I am facing:
error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
If someone is doing this already and has a working solution, support would be really appreciated. 😀
n
You're much better off running the Kotlin Native program on a real Linux based ARM64 SBC (eg Raspberry Pi). Is far less time consuming than trying to get QEMU to work, which the Kotlin team haven't thoroughly tested, hence the linuxArm64 target is a tier 2 status target.
a
Thanks 😆, I made it run already on linux qemu user mode.👍 Since a developer should not have all targets as hardware in the cupboard with the help of qemu and automated test coverage on many different devices should also be made possible, it would be a pity if your proposed solution is the “only possible” one. Fortunately, I am currently not in a position where it is necessary to push a product on a target, but rather work on kotlin native for research purposes.