Chanjung Kim
02/15/2024, 2:20 AMlld-link
automatically installed by Konan (the one in ~/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials
, I get an error like the following:
e: /Users/(user)/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials/bin/clang++ invocation reported errors
The /Users/(user)/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials/bin/clang++ command returned non-zero exit code: 1.
output:
lld-link: warning: ignoring unknown argument: -exclude-symbols:___chkstk_ms
lld-link: error: -exclude-symbols:___chkstk_ms is not allowed in .drectve
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
FAILURE: Build failed with an exception.
I want to use another version of clang
, Is there a way to use clang
specified by the user when linking?Chanjung Kim
02/15/2024, 2:00 PMAdam S
02/15/2024, 9:51 PMI want to use K/N with Clang 16, which is installed on my machine. Is there any way to use a user-specified version of Clang when using K/N?If I understand your question correctly, then the answer is no, K/N must use the version of clang/gcc/etc in the Konan dir
Chanjung Kim
02/16/2024, 1:14 AMChanjung Kim
02/16/2024, 1:18 AMChanjung Kim
02/16/2024, 1:35 AMAnton Saatze
02/16/2024, 9:58 AMlinker.macos_x64-linux_x64
or which ever you need property.
With that a different Linker version will be used, but the clang compiler stays the same (11.1.0)Anton Saatze
02/16/2024, 10:02 AMChanjung Kim
02/16/2024, 10:54 AMkotlin-native
, but for some reason Gradle crashes while running the compiler. I'll try with that option. Thanks! 😄Chanjung Kim
02/18/2024, 4:51 AMmingwX64().binaries.executable {
compilerOptions {
freeCompilerArgs.add("-Xoverride-konan-properties=linker.macos_arm64-mingw_x64=/opt/homebrew/opt/llvm/bin/ld.lld")
}
}
Overriding the linkter.<host>-<target>
option did work. @Anton Saatze Thanks for the comment again!