wwalkingg
07/30/2025, 5:51 AMaltavir
08/01/2025, 7:25 AM.konan\dependencies\msys2-mingw-w64-x86_64-2\bin\ld.gold: error: cannot find -lunistring does anybody know how to fix it? For some reason it happens only on some projects.Ghasem Shirdel
08/04/2025, 6:31 AMVishal kumar singhvi
08/05/2025, 8:37 AMDidier Villevalois
08/07/2025, 2:41 PMkotlin-native-prebuilt-2.2.0-linux-aarch64.tar.gz on Maven Central... Is that expected? I encountered that while loading the MCP SDK to make some PRs. I run Fedora Linux (Asahi) on an M1 MBP. I will disable the native targets for now, but that's quite uncomfortable... 😭Raed Ghazal
08/08/2025, 1:17 PMStefan Oltmann
08/17/2025, 6:37 PMAdam S
08/22/2025, 8:42 AM-include-binary KN compiler arg actually do? Does it just tell the compiler to package the files into the my-lib.klib in the /my-lib/default/targets/${targetName}/included/ dir?
Context: I have two .a static library files ( 'debug' and 'release'). I can't see how my subproject my-app can only use the debug my-lib when running runMyAppDebugExecutableMacosArm64 and the release my-lib when running runMyAppReleaseExecutableMacosArm64.
I was thinking about making two variants of my library, one that produces a my-lib-release.klib and another that produces my-lib-debug.klib. The only difference being the included static libs. If I can build the .klib manually, and just update the included files, that'd be a solution (albeit complicated and something I'd prefer to avoid).loke
08/25/2025, 5:30 AM.kt source file.tylerwilson
09/12/2025, 3:27 AMkotlin.native.binary.objcDisposeOnMain = false
kotlin.native.binary.mimallocUseCompaction = true
kotlin.native.toolchain.enabled = false
kotlin.incremental.native = trueIan Botsford
09/15/2025, 4:03 PMld.lld: error: undefined symbol: <name of symbol>. The problem goes away if I specify -lversion as a linker argument.
The specific APIs are GetFileVersionInfoSizeW, GetFileVersionInfoW, and VerQueryValueW, all of which are declared in *winver.h*, which is included in *windows.h*, which is specified as one of the headers bound in the *platform.windows* DEF file.
Why aren't the platform library implementations properly automatically linked by the compiler?Sergey Chelombitko
09/15/2025, 8:35 PMkotlin {
androidNativeArm64 {
compilations.named("main") {
cinterops.register("main") {
compilerOpts("-ID:/Apps/VulkanSDK/Include")
}
}
}
}
I want to use the latest version of Vulkan headers from Vulkan SDK, but the headers from the sysroot path always get the priority:
// This includes Vulkan 1.0 header from $HOME\.konan\dependencies\target-toolchain-2-windows-android_ndk/sysroot/usr/include\vulkan/vulkan.h
#include <vulkan/vulkan.h>Piotr Krzemiński
09/20/2025, 7:29 AMursus
09/20/2025, 12:53 PMxcframework my only option?陈雄
09/22/2025, 12:30 PMOmico
09/24/2025, 3:09 AMHuan
10/06/2025, 2:14 PMloke
10/18/2025, 12:59 PMmemScoped uses nativeHeap, which eventually calls malloc for every allocation. I have a highly performance-intensive function where I need to allocate memory on the stack. Is there a way to get stack allocation instead?loke
10/18/2025, 5:21 PM@CName but when I link the code, I still get a symbol not found error.Vitaliy Zarubin
10/24/2025, 8:49 AMundefined reference to `ac_path_info_get_app_cache'
Here is the result of outputting nm on Linux:
nm libdemo_kmp.a | grep ac_path_info_get_app_cache
00000000000000 T ac_path_info_get_app_cache
U ac_path_info_get_app_cache
nm -A libdemo_kmp.a | grep ac_path_info_get_app_cache
libdemo_kmp.a:ac_path_info.ac_path_info.bb51b92a2c3716b4-cgu.0.rcgu.o:00000000000000 T ac_path_info_get_app_cache
libdemo_kmp.a:libdemo_kmp.a.o: U ac_path_info_get_app_cache
Here is the output of nm on macOS:
nm libdemo_kmp.a | grep ac_path_info_get_app_cache
U ac_path_info_get_app_cache
nm -A libdemo_kmp.a | grep ac_path_info_get_app_cache
libdemo_kmp.a:/private/var/folders/v1/0hmt9k0s2rj_wfvb9kkm43rw0000gn/T/konan_temp8842548127760527663/libdemo_kmp.a.oac_path_info_get_app_cachetylerwilson
10/28/2025, 3:39 AMException in thread "main" org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
at org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99)
at org.jetbrains.kotlin.protobuf.CodedInputStream.skipField(CodedInputStream.java:262)
at org.jetbrains.kotlin.protobuf.GeneratedMessageLite.parseUnknownField(GeneratedMessageLite.java:540)
at org.jetbrains.kotlin.protobuf.GeneratedMessageLite.access$100(GeneratedMessageLite.java:49)
at org.jetbrains.kotlin.protobuf.GeneratedMessageLite$ExtendableMessage.parseUnknownField(GeneratedMessageLite.java:246)
at org.jetbrains.kotlin.metadata.ProtoBuf$PackageFragment.<init>(ProtoBuf.java:28327)
at org.jetbrains.kotlin.metadata.ProtoBuf$PackageFragment.<init>(ProtoBuf.java:28285)
at org.jetbrains.kotlin.metadata.ProtoBuf$PackageFragment$1.parsePartialFrom(ProtoBuf.java:28407)
If I put it back to Kotlin 2.2.20, it works fine. Known issue? I will check the release notes again, perhaps I missed something there.spierce7
11/02/2025, 9:32 PMSergey Chelombitko
11/02/2025, 11:16 PM~/.konan/dependencies/target-toolchain-2-osx-android_ndk/bin/aarch64-linux-android21-clang to ~/.konan/dependencies/target-toolchain-2-osx-android_ndk/bin/aarch64-linux-android29-clangsergey.bogolepov
11/05/2025, 10:34 AMloke
11/10/2025, 3:38 PM> Task :array:cinteropLibcurlLinux
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
Is this a known issue, and is there anything I should do to fix it?אליהו הדס
11/11/2025, 6:35 PMJulius Babies
11/15/2025, 11:34 AMalexandre mommers
11/17/2025, 12:03 PMrebok
11/17/2025, 10:41 PMM.WAQAS
11/19/2025, 5:59 AM