https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
n

napperley

03/08/2022, 12:58 AM
Encountering an issue where there are some dependency conflicts after running the linkCounterDebugExecutableLinuxX64 Gradle task. Below is the truncated version of the build log:
Copy code
e: Module "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64)" has a reference to symbol lvgl/lv_tick_inc|-852571541272050155[100]. Neither the module itself nor its dependencies contain such declaration.

This could happen if the required dependency is missing in the project. Or if there is a dependency of "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64)" that has a different version in the project than the version that "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.

The list of "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0" dependencies that may lead to conflicts:
1. "io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0" (was initially compiled with "io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.2.0")
2. "io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.3.0" (was initially compiled with "io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.2.0")
Tried to resolve the issue by clearing out the local Maven repository cache (in ~/.m2/repository), republishing the libraries, and rebuilding the Linux X64 binary however the same issue occurs. I'm wondering if the sample project referencing two Maven repositories (Maven Central & Maven Local) could cause this issue. @Artyom Degtyarev [JB]
Here is the full build log:
Copy code
e: Module "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64)" has a reference to symbol lvgl/lv_tick_inc|-852571541272050155[100]. Neither the module itself nor its dependencies contain such declaration.

This could happen if the required dependency is missing in the project. Or if there is a dependency of "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64)" that has a different version in the project than the version that "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.

The list of "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0" dependencies that may lead to conflicts:
1. "io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0" (was initially compiled with "io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.2.0")
2. "io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.3.0" (was initially compiled with "io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.2.0")

Project dependencies:
+--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0
|    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0
|    |    +--- stdlib: 1.6.10
|    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10
|    |         \--- stdlib: 1.6.10
|    +--- stdlib: 1.6.10
|    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10
|         \--- org.jetbrains:annotations: 13.0
+--- io.gitlab.embed-soft:lvglkt-core-widgets (io.gitlab.embed-soft:lvglkt-core-widgets-linuxx64): 0.3.0
|    +--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)
+--- io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.3.0
|    +--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-drivers-cinterop-lv_drivers: 0.3.0
|    |    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    |    \--- stdlib: 1.6.10
|    +--- stdlib: 1.6.10
|    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)
+--- io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0
|    ^^^ This module requires symbol lvgl/lv_tick_inc|-852571541272050155[100].
|    +--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.2.0 -> 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.2.0 -> 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-drivers-cinterop-lv_drivers: 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-sdl2-cinterop-lv_drivers: 0.3.0
|    |    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    |    +--- stdlib: 1.6.10
|    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    +--- stdlib: 1.6.10
|    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)
\--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)

(*) - dependencies omitted (listed previously)

Module "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64)" has a reference to symbol lvgl/lv_tick_inc|-852571541272050155[100]. Neither the module itself nor its dependencies contain such declaration.

This could happen if the required dependency is missing in the project. Or if there is a dependency of "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64)" that has a different version in the project than the version that "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.

The list of "io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0" dependencies that may lead to conflicts:
1. "io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0" (was initially compiled with "io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.2.0")
2. "io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.3.0" (was initially compiled with "io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.2.0")

Project dependencies:
+--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0
|    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0
|    |    +--- stdlib: 1.6.10
|    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10
|    |         \--- stdlib: 1.6.10
|    +--- stdlib: 1.6.10
|    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10
|         \--- org.jetbrains:annotations: 13.0
+--- io.gitlab.embed-soft:lvglkt-core-widgets (io.gitlab.embed-soft:lvglkt-core-widgets-linuxx64): 0.3.0
|    +--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)
+--- io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.3.0
|    +--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-drivers-cinterop-lv_drivers: 0.3.0
|    |    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    |    \--- stdlib: 1.6.10
|    +--- stdlib: 1.6.10
|    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)
+--- io.gitlab.embed-soft:lvglkt-sdl2 (io.gitlab.embed-soft:lvglkt-sdl2-linuxx64): 0.3.0
|    ^^^ This module requires symbol lvgl/lv_tick_inc|-852571541272050155[100].
|    +--- io.gitlab.embed-soft:lvglkt-core (io.gitlab.embed-soft:lvglkt-core-linuxx64): 0.2.0 -> 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-drivers (io.gitlab.embed-soft:lvglkt-drivers-linuxx64): 0.2.0 -> 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-drivers-cinterop-lv_drivers: 0.3.0 (*)
|    +--- io.gitlab.embed-soft:lvglkt-sdl2-cinterop-lv_drivers: 0.3.0
|    |    +--- io.gitlab.embed-soft:lvglkt-core-cinterop-lvgl: 0.3.0 (*)
|    |    +--- stdlib: 1.6.10
|    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    +--- stdlib: 1.6.10
|    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)
\--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10 (*)

(*) - dependencies omitted (listed previously)
Turns out I had made a silly mistake in the build file for the LVGL KT SDL 2 library. The LVGL KT version was hard coded but has since been corrected by using the version variable instead, which is supplied from the project.properties file (avoids unnecessary git commits).
27 Views