Hey there! I am trying to get a really simple Kotl...
# kotlin-native
m
Hey there! I am trying to get a really simple Kotlin / Native CLI application running on Linux. It’s using the PeopleInSpace repo from https://github.com/joreilly/PeopleInSpace, and should simply: • print out some text • download some JSON using ktor client • and print the deserialized output But I’m currently getting this error when I try to build on Linux:
Copy code
> Task :command-line:linkDebugExecutableNative
e: Compilation failed: The /root/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin/clang++ command returned non-zero exit code: 137.
output:


 * Source files:
 * Compiler version info: Konan: 1.4.21 / Kotlin: 1.4.21
 * Output kind: PROGRAM

e: org.jetbrains.kotlin.konan.KonanExternalToolFailure: The /root/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin/clang++ command returned non-zero exit code: 137.
output:

        at org.jetbrains.kotlin.konan.exec.Command.handleExitCode(ExecuteCommand.kt:112)
        at org.jetbrains.kotlin.konan.exec.Command.execute(ExecuteCommand.kt:73)
        at org.jetbrains.kotlin.backend.konan.BitcodeCompiler.runTool(BitcodeCompiler.kt:31)
        ....
Does anyone know how to find out what exactly went wrong here? (I’m running this inside Docker btw)
k
yeah the K/N compiler takes a ton of memory
👍 1
m
Does anyone know where this is implemented (for contributing)?