Are there instructions anywhere to build a full Ko...
# multiplatform
c
Are there instructions anywhere to build a full Kotlin toolchain on macOS? I am running macOS 12.3 Beta, and the
libllvmstubs.dylib
stub is seemingly not ABI stable, because it fails to load:
Copy code
$ ./gradlew :Shared:linkReleaseFrameworkIosArm64
…
> Task :Shared:linkReleaseFrameworkIosArm64 FAILED
e: Compilation failed: Can't load library: /Users/conradev/.konan/kotlin-native-prebuilt-macos-aarch64-1.6.10/konan/nativelib/3037511274092129360/libllvmstubs.dylib

 * Source files:
 * Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10
 * Output kind: FRAMEWORK

e: java.lang.UnsatisfiedLinkError: Can't load library: /Users/conradev/.konan/kotlin-native-prebuilt-macos-aarch64-1.6.10/konan/nativelib/3037511274092129360/libllvmstubs.dylib
…
the underlying link error seems to be something like this (in libc++):
Copy code
error: dlopen(/Users/conradev/.konan/kotlin-native-prebuilt-macos-aarch64-1.6.10/konan/nativelib/3037511274092129360/libllvmstubs.dylib, 0x0002): Symbol not found: __ZNKSt3__114error_category10equivalentERKNS_10error_codeEi
  Referenced from: /Users/conradev/.konan/kotlin-native-prebuilt-macos-aarch64-1.6.10/konan/nativelib/3037511274092129360/libllvmstubs.dylib
  Expected in: unknown
c
ohhhh, that second one will do the trick
it is finding libc++ in homebrew first because of rpath
thank you!!