https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
n

Nikky

08/16/2022, 11:10 PM
i tried to enable libbacktrace via
kotlin.native.binary.sourceInfoType=libbacktrace
and it seems to work locally fine on
macosArm64
, but when crosscompiling to
mingw64
as usual.. stuff starts to break down, both on my macbook and ubuntu CI runner i get
Copy code
e: /Users/nikky/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials/bin/clang++ invocation reported errors

The /Users/nikky/.konan/dependencies/apple-llvm-20200714-macos-aarch64-essentials/bin/clang++ command returned non-zero exit code: 1.
output:
lld-link: error: undefined symbol: Kotlin_getSourceInfo_libbacktrace
>>> referenced by /var/folders/wp/xphwwgsj3zg4w61bkrh4sdvm0000gn/T/konan_temp18158004099953611372/result.o:(Kotlin_getSourceInfo_Function)
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

FAILURE: Build failed with an exception.
does anyone know what package i might need to install ? or how to configure libbacktrace only for linux and macos targets ?
s

sergey.bogolepov

08/17/2022, 8:56 AM
You can specify binary options on per-binary basis. Example from NEW_MM.md.
n

Nikky

08/17/2022, 11:10 AM
thanks, that helps a lot
17 Views