Jilles van Gurp
10/17/2023, 10:05 AM> Task :search-client:linkDebugTestLinuxX64 FAILED
e: /Users/jillesvangurp/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials/bin/ld.lld invocation reported errors
The /Users/jillesvangurp/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials/bin/ld.lld command returned non-zero exit code: 1.
output:
ld.lld: error: unable to find library -lcurl
With linuxArm64:
> Task :search-client:transformCommonMainDependenciesMetadata FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':search-client:transformCommonMainDependenciesMetadata'.
> Could not resolve all files for configuration ':search-client:linuxArm64CompilationDependenciesMetadata'.
> Could not resolve io.ktor:ktor-client-curl:{require 2.3.5; reject _}.
Required by:
project :search-client
> No matching variant of io.ktor:ktor-client-curl:2.3.5 was found. The consumer was configured to find a library for use during 'kotlin-metadata', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'linux_arm64' but:
I need lib-curl for the Curl engine in ktor-client. Works fine with the mac native build and my tests pass with it. Is there something I need to do for this or will this only work on linux? If so, how do I prevent it from trying to run this on my mac?
I would appreciate some help with that. Instead of pasting build files here, easier to just point at the Github project: https://github.com/jillesvangurp/kt-search/tree/more-multi-platform-targets The search-client module is the one that has the ktor dependency. So gradle :search-client:build
reproduces the issue.russhwolf
10/17/2023, 12:25 PMJilles van Gurp
10/17/2023, 1:12 PMJilles van Gurp
10/17/2023, 1:13 PMrusshwolf
10/17/2023, 1:15 PMJilles van Gurp
10/17/2023, 1:25 PMgradle build
not fail. Including the linux targets means the build fails on my mac. The windows build is not a problem somehow.