Closed feresr closed 4 years ago
Hello, @feresr! Can you please clarify some moments, I'm trying to reproduce this error. What commit of the source code you were trying to compile here? Have you specified compiler version via samples/gradle.properties
file contents? Also, it would be nice if you can restart Gradle :coverage:linkDebugExecutableCoverage
task with --info
flag.
Hey @artdfel ! thanks for the reply!!
I'm standing on commit 3334b9b3adec966b1a44d174e67b5a1fbd0a3cc9
This is how my /samples/gradle.properties
looks:
kotlin_version=1.3.71
org.gradle.workers.max=4
org.gradle.jvmargs=-Xmx3g
kotlin.native.home=/Users/feresr/Library/kotlin-native // I added this line
rm -rf $HOME/.gradle/caches/
./gradlew :coverage:linkDebugExecutableCoverage --info
Initialized native services in: /Users/feresr/.gradle/native
The client will now receive all logging from the daemon (pid: 1612). The daemon log file: /Users/feresr/.gradle/daemon/6.0.1/daemon-1612.out.log
Starting 5th build in daemon [uptime: 4 mins 47.281 secs, performance: 100%]
Using 4 worker leases.
Starting Build
Invalidating in-memory cache of /Users/feresr/.gradle/caches/6.0.1/md-supplier/md-supplier.bin
Invalidating in-memory cache of /Users/feresr/.gradle/caches/6.0.1/md-rule/md-rule.bin
Settings evaluated using settings file '/Users/feresr/Workspace/kotlin-native/samples/settings.gradle.kts'.
Projects loaded. Root project using build file '/Users/feresr/Workspace/kotlin-native/samples/build.gradle.kts'.
Included projects: [root project 'samples', project ':coverage', project ':csvparser', project ':curl', project ':echoServer', project ':gitchurn', project ':globalState', project ':gtk', project ':html5Canvas', project ':libcurl', project ':nonBlockingEchoServer', project ':objc', project ':opengl', project ':tensorflow', project ':tetris', project ':torch', project ':uikit', project ':videoplayer', project ':watchos', project ':workers']
> Configure project :
Evaluating root project 'samples' using build file '/Users/feresr/Workspace/kotlin-native/samples/build.gradle.kts'.
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.71/kotlin-gradle-plugin-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download4163803961419227345bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-runner/1.3.71/kotlin-compiler-runner-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download17498206912690985665bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-impl-embeddable/1.3.71/kotlin-scripting-compiler-impl-embeddable-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1621697720153809365bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.71/kotlin-compiler-embeddable-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download6890025806996152469bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.3.71/kotlin-scripting-compiler-embeddable-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download17269102265830544588bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.3.71/kotlin-gradle-plugin-api-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download14891067156286997811bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.3.71/kotlin-annotation-processing-gradle-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download12617131999397920795bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-model/1.3.71/kotlin-gradle-plugin-model-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download4852914969931663072bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-native-utils/1.3.71/kotlin-native-utils-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1239151473237294946bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-util-klib/1.3.71/kotlin-util-klib-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download12433874645673915367bin
Downloading https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download2296890912915925633bin
Downloading https://repo.maven.apache.org/maven2/de/undercouch/gradle-download-task/4.0.2/gradle-download-task-4.0.2.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download9836613174056477931bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-android-extensions/1.3.71/kotlin-android-extensions-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download4425756768031396422bin
Downloading https://repo.maven.apache.org/maven2/com/google/code/gson/gson-parent/2.8.5/gson-parent-2.8.5.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download8600097031723441424bin
Downloading https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download8451323238363631401bin
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.3.50/kotlin-reflect-1.3.50.pom, /Users/feresr/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.3.50/kotlin-reflect-1.3.50.pom]
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom, /Users/feresr/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom]
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/intellij/deps/trove4j/1.0.20181211/trove4j-1.0.20181211.pom, /Users/feresr/.m2/repository/org/jetbrains/intellij/deps/trove4j/1.0.20181211/trove4j-1.0.20181211.pom]
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-daemon-embeddable/1.3.71/kotlin-daemon-embeddable-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download12160905137774981020bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-script-runtime/1.3.71/kotlin-script-runtime-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download11989888711366894964bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.2.1/kotlinx-coroutines-core-1.2.1.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download14449385890301404772bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-daemon-client/1.3.71/kotlin-daemon-client-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download12510382908239145189bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-build-common/1.3.71/kotlin-build-common-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download2721368701752011222bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.3.71/kotlin-scripting-jvm-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download16280075280486790034bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-common/1.3.71/kotlin-scripting-common-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download6723291995111684797bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-util-io/1.3.71/kotlin-util-io-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download16257393383675779225bin
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom, /Users/feresr/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom]
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom, /Users/feresr/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.pom]
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.71/kotlin-compiler-embeddable-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download4424245885797080846bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.3.71/kotlin-annotation-processing-gradle-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download13161153875221862447bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.3.71/kotlin-scripting-compiler-embeddable-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download12938423339574687930bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.71/kotlin-gradle-plugin-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1120635672830351299bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-impl-embeddable/1.3.71/kotlin-scripting-compiler-impl-embeddable-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download15200482298705730262bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.3.71/kotlin-gradle-plugin-api-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download5907622581301088889bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-model/1.3.71/kotlin-gradle-plugin-model-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1255165969304611706bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-native-utils/1.3.71/kotlin-native-utils-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download13847621042205572639bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-util-klib/1.3.71/kotlin-util-klib-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download10421563138962663524bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-runner/1.3.71/kotlin-compiler-runner-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download14382973479904295994bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-daemon-client/1.3.71/kotlin-daemon-client-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download13371886229834928035bin
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.3.50/kotlin-reflect-1.3.50.jar, /Users/feresr/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.3.50/kotlin-reflect-1.3.50.jar]
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.3.71/kotlin-scripting-jvm-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download8940831717823066523bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-scripting-common/1.3.71/kotlin-scripting-common-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1811729300081040112bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-util-io/1.3.71/kotlin-util-io-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1781629656083331597bin
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.jar, /Users/feresr/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.jar]
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0.jar, /Users/feresr/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar]
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.jar, /Users/feresr/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.jar]
Downloading https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1178742970759237382bin
Downloading https://repo.maven.apache.org/maven2/de/undercouch/gradle-download-task/4.0.2/gradle-download-task-4.0.2.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download2218817456058928362bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-script-runtime/1.3.71/kotlin-script-runtime-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download764482439438806851bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-daemon-embeddable/1.3.71/kotlin-daemon-embeddable-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download4321545799433602787bin
Found locally available resource with matching checksum: [https://repo.maven.apache.org/maven2/org/jetbrains/intellij/deps/trove4j/1.0.20181211/trove4j-1.0.20181211.jar, /Users/feresr/.m2/repository/org/jetbrains/intellij/deps/trove4j/1.0.20181211/trove4j-1.0.20181211.jar]
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-build-common/1.3.71/kotlin-build-common-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download10368345023110433890bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.2.1/kotlinx-coroutines-core-1.2.1.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download1104288383706977593bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-android-extensions/1.3.71/kotlin-android-extensions-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download15842679546354648568bin
Generating /Users/feresr/.gradle/caches/6.0.1/generated-gradle-jars/gradle-api-6.0.1.jar
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions24.kt:39:47: 'VariantTransform' is deprecated. Deprecated in Java
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions24.kt:39:153: 'ArtifactTransform' is deprecated. Deprecated in Java
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions24.kt:49:47: 'VariantTransform' is deprecated. Deprecated in Java
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions24.kt:49:153: 'ArtifactTransform' is deprecated. Deprecated in Java
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions40.kt:49:5: 'local(Class<T!>!): T!' is deprecated. Deprecated in Java
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions40.kt:59:5: 'local(Class<T!>!, Action<in T!>!): T!' is deprecated. Deprecated in Java
w: /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle-kotlin-dsl-extensions-6.018065379838952664446116901741553219406351jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions46.kt:40:5: 'submit(Class<out Runnable!>!, Action<in WorkerConfiguration!>!): Unit' is deprecated. Deprecated in Java
> Configure project :coverage
Evaluating project ':coverage' using build file '/Users/feresr/Workspace/kotlin-native/samples/coverage/build.gradle.kts'.
Kotlin Multiplatform Projects are an experimental feature.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :csvparser
Evaluating project ':csvparser' using build file '/Users/feresr/Workspace/kotlin-native/samples/csvparser/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :curl
Evaluating project ':curl' using build file '/Users/feresr/Workspace/kotlin-native/samples/curl/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :echoServer
Evaluating project ':echoServer' using build file '/Users/feresr/Workspace/kotlin-native/samples/echoServer/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :gitchurn
Evaluating project ':gitchurn' using build file '/Users/feresr/Workspace/kotlin-native/samples/gitchurn/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :globalState
Evaluating project ':globalState' using build file '/Users/feresr/Workspace/kotlin-native/samples/globalState/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :gtk
Evaluating project ':gtk' using build file '/Users/feresr/Workspace/kotlin-native/samples/gtk/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :html5Canvas
Evaluating project ':html5Canvas' using build file '/Users/feresr/Workspace/kotlin-native/samples/html5Canvas/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
kotlin scripting plugin: created the scripting discovery configuration: kotlinScriptDef
kotlin scripting plugin: created the scripting discovery configuration: testKotlinScriptDef
> Configure project :libcurl
Evaluating project ':libcurl' using build file '/Users/feresr/Workspace/kotlin-native/samples/libcurl/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :nonBlockingEchoServer
Evaluating project ':nonBlockingEchoServer' using build file '/Users/feresr/Workspace/kotlin-native/samples/nonBlockingEchoServer/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :objc
Evaluating project ':objc' using build file '/Users/feresr/Workspace/kotlin-native/samples/objc/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :opengl
Evaluating project ':opengl' using build file '/Users/feresr/Workspace/kotlin-native/samples/opengl/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :tensorflow
Evaluating project ':tensorflow' using build file '/Users/feresr/Workspace/kotlin-native/samples/tensorflow/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :tetris
Evaluating project ':tetris' using build file '/Users/feresr/Workspace/kotlin-native/samples/tetris/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :torch
Evaluating project ':torch' using build file '/Users/feresr/Workspace/kotlin-native/samples/torch/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :uikit
Evaluating project ':uikit' using build file '/Users/feresr/Workspace/kotlin-native/samples/uikit/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :videoplayer
Evaluating project ':videoplayer' using build file '/Users/feresr/Workspace/kotlin-native/samples/videoplayer/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :watchos
Evaluating project ':watchos' using build file '/Users/feresr/Workspace/kotlin-native/samples/watchos/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
> Configure project :workers
Evaluating project ':workers' using build file '/Users/feresr/Workspace/kotlin-native/samples/workers/build.gradle.kts'.
User-provided Kotlin/Native distribution: /Users/feresr/Library/kotlin-native
All projects evaluated.
Selected primary task ':coverage:linkDebugExecutableCoverage' from project :coverage
Tasks to be executed: [task ':coverage:compileKotlinCoverage', task ':coverage:linkDebugExecutableCoverage']
:coverage:compileKotlinCoverage (Thread[Execution worker for ':',5,main]) started.
> Task :coverage:compileKotlinCoverage UP-TO-DATE
file or directory '/Users/feresr/Workspace/kotlin-native/samples/coverage/src/coverageMain/kotlin', not found
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.71/kotlin-stdlib-common-1.3.71.pom to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download983391558206484944bin
Downloading https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.71/kotlin-stdlib-common-1.3.71.jar to /private/var/folders/n9/hn4wfdnj3c99gtmkmhr7kqq00000gn/T/gradle_download17719286874829295295bin
Caching disabled for task ':coverage:compileKotlinCoverage' because:
Build cache is disabled
Skipping task ':coverage:compileKotlinCoverage' as it is up-to-date.
:coverage:compileKotlinCoverage (Thread[Execution worker for ':',5,main]) completed. Took 1.397 secs.
:coverage:linkDebugExecutableCoverage (Thread[Execution worker for ':',5,main]) started.
> Task :coverage:linkDebugExecutableCoverage FAILED
Caching disabled for task ':coverage:linkDebugExecutableCoverage' because:
Build cache is disabled
Task ':coverage:linkDebugExecutableCoverage' is not up-to-date because:
Task has failed previously.
Run tool: konanc with args: -g -ea -target macos_x64 -p program -o /Users/feresr/Workspace/kotlin-native/samples/coverage/build/bin/coverage/debugExecutable/coverage.kexe -Xcache-directory=/Users/feresr/Library/kotlin-native/klib/cache/macos_x64-gSTATIC -Xmulti-platform -no-endorsed-libs -Xinclude=/Users/feresr/Workspace/kotlin-native/samples/coverage/build/classes/kotlin/coverage/main/coverage.klib
e: Compilation failed: Could not initialize class llvm.llvm
* Source files:
* Compiler version info: Konan: 1.3.71 / Kotlin: 1.3.71
* Output kind: PROGRAM
e: java.lang.NoClassDefFoundError: Could not initialize class llvm.llvm
at org.jetbrains.kotlin.backend.konan.llvm.BitcodePhasesKt$contextLLVMSetupPhase$1.invoke(BitcodePhases.kt:32)
at org.jetbrains.kotlin.backend.konan.llvm.BitcodePhasesKt$contextLLVMSetupPhase$1.invoke(BitcodePhases.kt)
at org.jetbrains.kotlin.backend.konan.KonanLoweringPhasesKt$makeKonanModuleOpPhase$1.invoke(KonanLoweringPhases.kt:58)
at org.jetbrains.kotlin.backend.konan.KonanLoweringPhasesKt$makeKonanModuleOpPhase$1.invoke(KonanLoweringPhases.kt:56)
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:23)
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:30)
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:23)
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:30)
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:28)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:77)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:34)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:85)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:43)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:105)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:83)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:51)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:219)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion$mainNoExit$1.invoke(K2Native.kt:246)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion$mainNoExit$1.invoke(K2Native.kt:238)
at org.jetbrains.kotlin.util.UtilKt.profileIf(Util.kt:27)
at org.jetbrains.kotlin.util.UtilKt.profile(Util.kt:21)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion.mainNoExit(K2Native.kt:245)
at org.jetbrains.kotlin.cli.bc.K2NativeKt.mainNoExit(K2Native.kt:376)
at org.jetbrains.kotlin.cli.utilities.MainKt$daemonMain$1.invoke(main.kt:39)
at org.jetbrains.kotlin.cli.utilities.MainKt$daemonMain$1.invoke(main.kt)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:17)
at org.jetbrains.kotlin.cli.utilities.MainKt.daemonMain(main.kt:39)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.jetbrains.kotlin.compilerRunner.KonanCliRunner.run(KotlinNativeToolRunner.kt:206)
at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinNativeCompile.compile(KotlinNativeTasks.kt:278)
at org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink.compile(KotlinNativeTasks.kt:643)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:49)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:721)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:688)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:539)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:524)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:507)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:109)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:258)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:247)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$1(ExecuteStep.java:33)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:63)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:153)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:67)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:41)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)
at java.base/java.util.Optional.map(Optional.java:265)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:174)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:166)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:374)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:361)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:354)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:340)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.base/java.lang.Thread.run(Thread.java:835)
:coverage:linkDebugExecutableCoverage (Thread[Execution worker for ':',5,main]) completed. Took 1.142 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':coverage:linkDebugExecutableCoverage'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 43s
2 actionable tasks: 1 executed, 1 up-to-date
In case anyone else is having this problem. I was able to fix it,
It had something to do with MacOS Catalina 10.15.3
privacy settings.
I added IntelliJ IDEA
as an exception in Developer Tools > Privacy
:
Then ran a gradle clean
and reassembled the binaries again.
Thank you for investigating the issue and posting the workaround!
@feresr btw, what exactly is /Users/feresr/Library/kotlin-native
?
@SvyatoslavScherbina feresr/Library/kotlin-native
is a folder with the contents of the file kotlin-native-macos-1.3.72.tar.gz
, downloaded from Github Releases
I'm not too sure what that file contains myself (I guess the compiler is in there and the kotlin stdlib binaries). There's a separate file for the compiler so I'm not sure it's in there. I'm finding the guides into Kotlin native a bit counter-intuitive and have decided to postpone learning it until more documentation is made available.
feresr/Library/kotlin-native
is a folder with the contents of the filekotlin-native-macos-1.3.72.tar.gz
, downloaded from Github Releases
I see. I guess that's what caused the problem. The following command should have fixed the problem without dealing with system preferences:
xattr -rd com.apple.quarantine /Users/feresr/Library/kotlin-native
Please note that downloading Kotlin/Native tar and setting kotlin.native.home=
is not required, Gradle do this for you. I don't think you would encounter the original problem in this case.
So why did you prefer to download kotlin-native-macos-1.3.72.tar.gz
manually?
Thanks for the tip! I was following this official tutorial. It linked me to the github releases page. I wasn't sure what I should download so I downloaded the compiler + kotlin-native-macos-1.3.72.tar.gz
.
What does kotlin-native-macos-1.3.72.tar.gz
contain?
I'm guessing it has the compiled binaries std library for my platform.
I also see konan
and klibs
which seem to replace libraries that I already have on my system zlib
opengl
cocoa
, etc
Would love more info on this 🙂 any docs you can point me to?
This tutorial covers simple experiments with command-line compiler. For complex cases please prefer using Gradle.
What does kotlin-native-macos-1.3.72.tar.gz contain?
Command-line tools, compiler, runtime, standard library, platform libraries etc.
I also see konan and klibs which seem to replace libraries that I already have on my system zlib opengl cocoa, etc
Not exactly. These are just Kotlin "bindings" for system libraries.
any docs you can point me to?
I don't think there are any docs covering the contents of this archive. Mostly because these aren't exactly user-facing.
Thanks @SvyatoslavScherbina this is super helpful! I was getting this error while trying to build the tetris sample which I think uses Gradle
I added kotlin.native.home=/Users/feresr/Library/kotlin-native
because I was getting some other error I can't remember what it was exactly what it was right now.
Not exactly. These are just Kotlin "bindings" for system libraries
Got it! this makes more sense now, thanks :)
I don't think there are any docs covering the contents of this archive. Mostly because these aren't exactly user-facing.
No worries, I wasn't looking to get too deep into the specific, your answer actually clarified a lot of my doubts already, before I just wasn't sure where I was standing.
I am using an M1 mac and for me it started working after installing this x64 build of JDK 11 and the arm64 version via brew install openjdk@11
.
M1 Mac here and Xcode 12.5. A simple reboot fixed it for me after my system updated from 12.4 to 12.5 today.
M1 Mac here and could not get it to work for several hours. Later realized I'm running the ARM version of JDK which does cause this bug. So I switched the x64 version using this guide, updated my PATH and restarted Android Studio. It worked after that.
Getting the following trying to compile the
tetris
on macOS catalina Kotlin: 1.3.71