Package Details: kotlin-native-bin 2.1.20-1

Git Clone URL: https://aur.archlinux.org/kotlin-native-bin.git (read-only, click to copy)
Package Base: kotlin-native-bin
Description: An LLVM based backend for the Kotlin compiler and native implementation of the Kotlin standard library
Upstream URL: https://kotlinlang.org/
Keywords: compiler kotlin
Licenses: Apache
Conflicts: kotlin-native, kotlin-native-git
Provides: kotlin-native
Submitter: zhangkaizhao
Maintainer: PersonWhoExists
Last Packager: PersonWhoExists
Votes: 9
Popularity: 0.000000
First Submitted: 2018-04-11 08:07 (UTC)
Last Updated: 2025-03-30 00:19 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

aaulia commented on 2019-09-08 03:46 (UTC)

There seems to be permission issue? I'm trying to compile a hello world and got this

➜ kotlinc-native hello.kt -o hello
error: compilation failed: /usr/lib/kotlin-native/klib/common/stdlib/ir/ir_tables/strings.knt (Permission denied)

 * Source files: hello.kt
 * Compiler version info: Konan: 1.3.50 / Kotlin: 1.3.50
 * Output kind: PROGRAM

exception: java.io.FileNotFoundException: /usr/lib/kotlin-native/klib/common/stdlib/ir/ir_tables/strings.knt (Permission denied)
    at java.io.RandomAccessFile.open0(Native Method)
    at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:124)
    at org.jetbrains.kotlin.konan.file.File.map(File.kt:106)
    at org.jetbrains.kotlin.konan.file.File.map$default(File.kt:105)
    at org.jetbrains.kotlin.library.impl.SimpleIrTableFileReader.<init>(SimpleIrTableAccessor.kt:14)
    at org.jetbrains.kotlin.library.impl.IrLibraryImpl$strings$2.invoke(KotlinLibraryImpl.kt:113)
    at org.jetbrains.kotlin.library.impl.IrLibraryImpl$strings$2.invoke(KotlinLibraryImpl.kt:74)
    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
    at org.jetbrains.kotlin.library.impl.IrLibraryImpl.getStrings(KotlinLibraryImpl.kt)
    at org.jetbrains.kotlin.library.impl.IrLibraryImpl.string(KotlinLibraryImpl.kt:92)
    at org.jetbrains.kotlin.konan.library.impl.KonanLibraryImpl.string(KonanLibraryImpl.kt)
    at org.jetbrains.kotlin.backend.konan.serialization.KonanIrLinker.readString(KonanIrlinker.kt:54)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.loadString(KotlinIrLinker.kt:343)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.access$loadString(KotlinIrLinker.kt:38)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker$IrDeserializerForModule.loadString(KotlinIrLinker.kt:152)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker$IrDeserializerForModule.deserializeString(KotlinIrLinker.kt:167)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker$IrDeserializerForModule.deserializeIrFile(KotlinIrLinker.kt:228)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker$IrDeserializerForModule.deserializeIrModuleHeader(KotlinIrLinker.kt:272)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker$IrDeserializerForModule.<init>(KotlinIrLinker.kt:71)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.deserializeIrModuleHeader(KotlinIrLinker.kt:457)
    at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.deserializeIrModuleHeader(KotlinIrLinker.kt:476)
    at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$psiToIrPhase$1.invoke(ToplevelPhases.kt:156)
    at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$psiToIrPhase$1.invoke(ToplevelPhases.kt)
    at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$namedOpUnitPhase$1.invoke(PhaseBuilders.kt:115)
    at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$namedOpUnitPhase$1.invoke(PhaseBuilders.kt:113)
    at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedPhaseWrapper$runBody$1.invoke(CompilerPhase.kt:128)
    at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.downlevel(CompilerPhase.kt:24)
    at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedPhaseWrapper.runBody(CompilerPhase.kt:127)
    at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedPhaseWrapper.invoke(CompilerPhase.kt:105)
    at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:28)
    at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedPhaseWrapper$runBody$1.invoke(CompilerPhase.kt:128)
    at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.downlevel(CompilerPhase.kt:24)
    at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedPhaseWrapper.runBody(CompilerPhase.kt:127)
    at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedPhaseWrapper.invoke(CompilerPhase.kt:105)
    at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:42)
    at org.jetbrains.kotlin.backend.konan.KonanDriverKt.runTopLevelPhases(KonanDriver.kt:27)
    at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:79)
    at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:34)
    at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:84)
    at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:42)
    at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:104)
    at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:82)
    at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:50)
    at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:215)
    at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:207)
    at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:223)
    at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:220)
    at org.jetbrains.kotlin.konan.util.UtilKt.profileIf(Util.kt:26)
    at org.jetbrains.kotlin.konan.util.UtilKt.profile(Util.kt:21)
    at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:222)
    at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:304)
    at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:16)

It only works if I'm using su

zhangkaizhao commented on 2019-06-07 10:05 (UTC)

Hi @beiranvand.karim . Seems there is no new release at the moment. Please update me if I missed any.

beiranvand.karim commented on 2019-06-07 09:02 (UTC)

please update the repo.

sergio_sierra commented on 2018-08-24 22:43 (UTC)

New version released today: 8.1-2 * https://blog.jetbrains.com/kotlin/2018/08/kotlin-native-0-8-2/

zhangkaizhao commented on 2018-04-28 11:21 (UTC)

@chocolateboy Good news. Thank you! I am on vocation now, and will be back in a few days.

chocolateboy commented on 2018-04-28 10:36 (UTC) (edited on 2018-04-28 10:37 (UTC) by chocolateboy)

v0.7 has just been released: