James Ward
03/25/2023, 5:16 PMshell.nix
with import <nixpkgs> {};
mkShell {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
stdenv.cc.cc.lib
zlib
libclang.lib
];
NIX_LD = lib.fileContents "${<http://stdenv.cc|stdenv.cc>}/nix-support/dynamic-linker";
}
James Ward
03/25/2023, 5:19 PM~/.konan/kotlin-native-prebuilt-linux-x86_64-1.8.10/bin/konanc main.kt
I get a working program.kexe
but the konanc program crashes with:
# V [libjvm.so+0x58aeca] AccessInternal::PostRuntimeDispatch<G1BarrierSet::AccessBarrier<548964ul, G1BarrierSet>, (AccessInternal::BarrierType)0, 548964ul>::oop_access_barrier(void*, oopDesc*)+0x1a
James Ward
03/25/2023, 5:20 PMnapperley
03/27/2023, 2:24 AMSteve Elliott
10/03/2023, 1:50 AMCLOVIS
10/03/2023, 8:09 AMPanayotis Katsaloulis
10/03/2023, 9:48 AM--allow-shlib-undefined
option, everything works perfectly.Edoardo Luppi
10/03/2023, 3:43 PMnapperley
10/03/2023, 9:04 PM--allow-shlib-undefined
to be passed to the linker due to the way they are designed. This isn't an issue specific to Kotlin itself.Steve Elliott
10/04/2023, 2:39 AM