I've spent days trying to figure out this issue, and it turns out that the build fails whenever I explicitly specify a Ktor engine.
The Kord native build fails on linux (irrelevant of dependencies) with the following error:
The /home/runner/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
output:
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_send_wrapper76: error: undefined reference to 'curl_ws_send'
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_meta_wrapper77: error: undefined reference to 'curl_ws_meta'
The /home/runner/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
output:
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_send_wrapper76: error: undefined reference to 'curl_ws_send'
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_meta_wrapper77: error: undefined reference to 'curl_ws_meta'
Hello, I'm facing this particular error when compiling my project and its ksp subproject:
> Task :kspKotlinMingwX64 FAILED
e: Could not find "org.jetbrains.kotlinx:kotlinx-datetime-cinterop-date" in [C:\Users\1\Desktop\kotlin\Cordex, D:\.konan\klib, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\common, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\platform\mingw_x64]
> Task :kspKotlinMingwX64 FAILED
e: Could not find "org.jetbrains.kotlinx:kotlinx-datetime-cinterop-date" in [C:\Users\1\Desktop\kotlin\Cordex, D:\.konan\klib, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\common, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\platform\mingw_x64]