Package Details: kotlin-native-bin 2.0.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.000002
First Submitted: 2018-04-11 08:07 (UTC)
Last Updated: 2024-08-23 18:30 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

PersonWhoExists commented on 2024-07-31 21:22 (UTC)

@y5c4l3 That issue should be fixed now.

y5c4l3 commented on 2024-07-24 14:11 (UTC)

The following error occurs after a fresh installation:

$ kotlinc-native a.kt
error: compilation failed: /usr/lib/kotlin-native/klib/cache/linux_x64STATIC-pl

 * Source files: a.kt
 * Compiler version: 1.9.25
 * Output kind: PROGRAM

exception: java.nio.file.AccessDeniedException: /usr/lib/kotlin-native/klib/cache/linux_x64STATIC-pl
    at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
    at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:438)
    at java.base/java.nio.file.Files.createDirectory(Files.java:699)

Seems like an upstream packaging issue, needs to manually create a directory at /usr/lib/kotlin-native/klib/cache/linux_x64STATIC-pl then the user local cache at ~/.konan will start working.

zhangkaizhao commented on 2021-08-29 06:03 (UTC)

@fhs Checksum is updated.

fhs commented on 2021-08-29 00:51 (UTC)

validity check is failing:

==> Validating source files with sha256sums...
    kotlin-native-linux-x86_64-1.5.30.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
error downloading sources: kotlin-native-bin

zhangkaizhao commented on 2019-09-14 02:30 (UTC)

Hi @gusbemacbe . You can list all files owned by a given package, e.g. for kotlin-native-bin using pacman -Ql kotlin-native-bin. The kotlin command is not provided due to the conflict with kotlin package. And there is no kotlin-native provided by the official binary package. Please use kotlinc-native instead.

gusbemacbe commented on 2019-09-13 19:21 (UTC)

Hello, there are errors:

which kotlin
kotlin not found
zsh: exit 1

which kotlin-native
kotlin-native not found
zsh: exit 1

aaulia commented on 2019-09-08 17:07 (UTC)

@zhangkaizhao that seems to fix it. Thank you.

zhangkaizhao commented on 2019-09-08 10:02 (UTC)

@aaulia I have fixed permissions for some files. Can you try it again? Thanks!

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