Lulu
07/01/2019, 11:29 PMExecution failed for task ':client:linkDebugTestLinuxX64'.
> Process 'command '/opt/java/openjdk/bin/java'' finished with non-zero exit value 1
Does anyone have an idea what that mean? Debugging wasn't that helpful.drieks
07/01/2019, 11:35 PM./gradlew --info <your options>
or ./gradlew --stacktrace <your options>
Lulu
07/01/2019, 11:36 PMError: Could not find or load main class Runtime
Caused by: java.lang.ClassNotFoundException: Runtime
drieks
07/01/2019, 11:37 PMjava.lang.Runtime
?drieks
07/01/2019, 11:37 PMdrieks
07/01/2019, 11:37 PMLulu
07/01/2019, 11:38 PM./gradlew build
Lulu
07/01/2019, 11:39 PMdrieks
07/01/2019, 11:40 PM/home/lelouch/.konan/kotlin-native-linux-1.3/konan/lib/Runtime.jar
, but I'm not sure..Lulu
07/01/2019, 11:43 PMdrieks
07/01/2019, 11:44 PMrm -rf ~/.konan
🙂Lulu
07/01/2019, 11:44 PMLulu
07/01/2019, 11:50 PM> Task :client:linkDebugTestLinuxX64
e: Unable to compile C bridges
> Task :client:linkDebugTestLinuxX64 FAILED
> Task :samples:ping-native:linkDebugExecutableLinuxX64
e: Unable to compile C bridges
> Task :samples:ping-native:linkDebugExecutableLinuxX64 FAILED
FAILURE: Build completed with 2 failures.
serebit
07/02/2019, 12:39 AMnapperley
07/02/2019, 1:50 AMnapperley
07/02/2019, 1:52 AMserebit
07/02/2019, 1:53 AMserebit
07/02/2019, 1:53 AMnapperley
07/02/2019, 1:54 AMserebit
07/02/2019, 1:55 AMserebit
07/02/2019, 1:55 AMnapperley
07/02/2019, 1:59 AMnapperley
07/02/2019, 2:01 AMnapperley
07/02/2019, 2:07 AMserebit
07/02/2019, 2:14 AMserebit
07/02/2019, 2:15 AMlinux-native
serebit
07/02/2019, 2:15 AMbuild
and see if it failsnapperley
07/02/2019, 2:20 AMrunDebugExecutableLinux
Gradle task. This task works on Kotlin 1.3.31 (except for the run part) but not on Kotlin 1.3.40 where a protocol error appears.Lulu
07/02/2019, 2:23 AM> Task :client:compileKotlinLinuxX64 UP-TO-DATE
> Task :samples:ping-native:linkDebugExecutableLinuxX64
e: Unable to compile C bridges
> Task :samples:ping-native:linkDebugExecutableLinuxX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':samples:ping-native:linkDebugExecutableLinuxX64'.
> Process 'command '/usr/lib/jvm/java-12-openjdk/bin/java'' finished with non-zero exit value 1
napperley
07/02/2019, 2:25 AMTask :cinteropNcursesLinux
e: Compilation failed: Protocol message tag had invalid wire type.
* Source files: ncurses.kt
* Compiler version info: Konan: 1.3 / Kotlin: 1.3.40
* Output kind: LIBRARY
e: org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
at org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99)
at org.jetbrains.kotlin.protobuf.CodedInputStream.skipField(CodedInputStream.java:262)
// ...
napperley
07/02/2019, 2:26 AMnapperley
07/02/2019, 2:27 AMserebit
07/02/2019, 2:27 AMserebit
07/02/2019, 2:27 AMnapperley
07/02/2019, 2:28 AMLulu
07/02/2019, 2:28 AMLulu
07/02/2019, 2:29 AMorg.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-12-openjdk/bin/java'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:396)
at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:38)
at org.gradle.process.internal.DefaultExecActionFactory.javaexec(DefaultExecActionFactory.java:129)
at org.gradle.api.internal.project.DefaultProject.javaexec(DefaultProject.java:1103)
serebit
07/02/2019, 2:29 AMlinux-native
branch of that repository, which is the branch that contains the kotlin/native implementationolonho
07/02/2019, 5:19 AMolonho
07/02/2019, 5:21 AMserebit
07/02/2019, 5:28 AM-debug -stacktrace
@olonho?olonho
07/02/2019, 5:28 AMserebit
07/02/2019, 5:29 AMserebit
07/02/2019, 5:38 AMserebit
07/02/2019, 5:41 AMserebit
07/02/2019, 5:46 AM--debug
? @olonhoserebit
07/02/2019, 6:22 AM./gradlew clean build --info --stacktrace
. The build cache was populated before each run.Artyom Degtyarev [JB]
07/02/2019, 12:45 PMlibcurl-devel
package and then got totally no issues. Please try this, and call me if it won’t work.serebit
07/02/2019, 3:49 PMserebit
07/02/2019, 4:13 PMlibcurl-devel
installed. The log appears to be identicalserebit
07/02/2019, 5:03 PMLulu
07/02/2019, 9:41 PMLulu
07/02/2019, 10:45 PMLulu
07/02/2019, 10:47 PMe: Unable to compile C bridges
Artyom Degtyarev [JB]
07/03/2019, 3:47 PMserebit
07/03/2019, 3:51 PMadoptopenjdk/openjdk11
. We've tested with the alpine and debian tags, and both seem to fail in the same way.serebit
07/03/2019, 11:42 PMArtyom Degtyarev [JB]
07/08/2019, 3:28 PMlibtinfo.so.5
library, so the clang get stuck. This lib is unavailable on some platforms by default, so you got to install it manually.serebit
07/09/2019, 2:20 AMserebit
07/10/2019, 12:16 AMlibtinfo.so.5
isn't available on Alpine, so I symlinked it to libncurses.so.5
instead, and got the same result.olonho
07/10/2019, 6:51 AMsame
means it doesn’t work? can you just start clang binary from .konan
?serebit
07/10/2019, 3:35 PMsame
means it doesn't work, yes. I can give that a tryserebit
07/10/2019, 4:06 PMkonanc
from .konan
after installing libncurses-5
and bash
, and symlinking libtinfo.so.5
to libncurses.so.5
.olonho
07/10/2019, 4:39 PM~/.konan/dependencies/clang-llvm-6.0.1-linux/bin/clang
serebit
07/10/2019, 4:41 PMolonho
07/10/2019, 4:58 PMserebit
07/10/2019, 5:07 PM/root/.konan/dependencies/clang-llvm-6.0.1-linux-x86-64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
serebit
07/10/2019, 5:25 PMserebit
07/10/2019, 5:30 PMserebit
07/10/2019, 11:37 PM/usr/lib/libtinfo.so.5
), but it's proving impossible to build in Alpine. Even copying the symlink path directly from Solus with ncurses5-widec-libs
installed, the build fails. I believe updating the distribution of clang that konan downloads to 7 may fix this issueserebit
07/11/2019, 12:18 AMFROM adoptopenjdk/openjdk11:alpine
RUN wget "<https://download.jetbrains.com/kotlin/native/clang-llvm-6.0.1-linux-x86-64.tar.gz>" && \
tar xvzf clang*.tar.gz
RUN apk add clang ncurses5-libs ncurses5-widec-libs && \
ln -n /usr/lib/libncursesw.so.5.9 /usr/lib/libtinfo.so.5
RUN cd clang* && \
find /usr/lib -name "libtinfo.so.5" && \
./bin/clang
serebit
07/11/2019, 12:19 AMlibtinfo.so.5
in /usr/lib, still can't find libtinfo.so.5
. On Solus, with the exact same symlink, the clang distribution runs successfully.