Hey, when I run the task `kotlin-native:backend.na...
# kotlin-native
a
Hey, when I run the task
kotlin-native:backend.native:genEnvInteropStubs
, I receive the following error:
Copy code
Exception in thread "main" java.lang.Error: $HOME/.sdkman/candidates/java/17.0.7-tem/include/jni.h:40:10: fatal error: 'stdarg.h' file not found
        at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:275)
        at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.precompileHeaders(Utils.kt:418)
        at org.jetbrains.kotlin.native.interop.gen.StubIrContext.<init>(StubIrDriver.kt:46)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:361)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:257)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.main(main.kt:76)
someone any idea how to solve that ?
t
This is typically caused by kotlin/native not finding the expected version of the downloaded dependencies. Have you modified
konan.properties
or the contents of
${HOME}/.konan
?
a
Thanks for your reply. I already solved the issue. Yes I had changes in
konan.properties
.