Hello. I'm attempting to compile the kotlin-nativ...
# kotlin-native
t
Hello. I'm attempting to compile the kotlin-native calculator example using the instructions here: https://github.com/JetBrains/kotlin-native/tree/master/samples/calculator But when I run
../gradlew :calculator:compileKonanKotlinArithmeticParserIphone --debug --stacktrace
from the
samples/calculator
, I get the following error:
Copy code
> Task :calculator:compileKonanKotlinArithmeticParserIphone
11:04:52.692 [ERROR] [system.err] error: compilation failed: No such file or directory
11:04:52.692 [ERROR] [system.err]
11:04:52.692 [ERROR] [system.err]  * Source files: Parser.kt
11:04:52.692 [ERROR] [system.err]  * Compiler version info: Konan: EAP 0.6.0.0 / Kotlin: 1.2.0
11:04:52.692 [ERROR] [system.err]  * Output kind: FRAMEWORK
11:04:52.692 [ERROR] [system.err]
11:04:52.692 [ERROR] [system.err] exception: java.lang.Error: No such file or directory
11:04:52.692 [ERROR] [system.err]       at org.jetbrains.kotlin.backend.konan.llvm.LlvmUtilsKt.parseBitcodeFile(LlvmUtils.kt:266)
11:04:52.692 [ERROR] [system.err]       at org.jetbrains.kotlin.backend.konan.llvm.Runtime.<init>(Runtime.kt:30)
11
...
...
o
Please use K/N redistributable, or build target
bundle
t
@olonho What is K/N redistributable?
t
OK, thanks, we just needed to run the full
build
target, not just
dist distPlatformLibs