After updating Kotlin to 1.7.21 in a Kotlin Native...
# kotlin-native
n
After updating Kotlin to 1.7.21 in a Kotlin Native project, and running the linkCounterDebugExecutableLinuxX64 Gradle task the build fails with a bunch of Unable to compile C bridge errors. It appears as though there is a Kotlin regression with linking static library files, or the way static library files are setup in the build file has changed. Here is some Kotlin code that triggers one of the errors:
Copy code
public actual fun mainPaletteColor(paletteValue: UInt): Color = lv_palette_main(paletteValue).toColor()
The
lv_palette_main
symbol exists in the liblvgl.a file. Below is the output after running `nm liblvgl.a | grep lv_palette_main`:
Copy code
U lv_palette_main
                 U lv_palette_main
                 U lv_palette_main
                 U lv_palette_main
                 U lv_palette_main
                 U lv_palette_main
0000000000000777 T lv_palette_main