I’ve update MPP project with ktor to 1.4
When I build debug executable - all OK.
Copy code
$ ./gradlew linkAppDebugExecutableMacos
...
BUILD SUCCESSFUL in 1m 14s
But when I build release executable - I have error:
Copy code
$ ./gradlew linkAppReleaseExecutableMacos
...
> Task app:linkAppReleaseExecutableMacos
error: Linking globals named 'knifunptr_libcurl0_curl_strequal': symbol multiply defined!
> Task :app:linkAppReleaseExecutableMacos FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:linkAppReleaseExecutableMacos'.
> Process 'command '/Library/Java/JavaVirtualMachines/openjdk-14.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
...
$ ./gradlew --version
------------------------------------------------------------
Gradle 6.6
------------------------------------------------------------
Build time: 2020-08-10 22:06:19 UTC
Revision: d119144684a0c301aea027b79857815659e431b9
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 14 (Oracle Corporation 14+36-1461)
OS: Mac OS X 10.15.6 x86_64
(I try to use jdk 1.8, 11, 14)
What can I do?
s
sergey.bogolepov
08/20/2020, 4:04 AM
Hi! It might be a compiler bug. If you can share a reproducer (maybe via DM), it'll make it easier to solve the problem :)