macOS 10.15.4 (Catalina)
I was trying to bump Kotlin version 1.3.61 → 1.3.71 in this project Lets-Plot.
I was able to successfully build python extension package but unfortunately it fails at run-time with the following error:
/opt/anaconda3/envs/dev-py37/lib/python3.7/site-packages/lets_plot/_kbridge.py in <module>
5 from typing import Dict
6
----> 7 import lets_plot_kotlin_bridge
8
9 from ._type_utils import standardize_dict
ImportError: dlopen(/opt/anaconda3/envs/dev-py37/lib/python3.7/site-packages/lets_plot_kotlin_bridge.cpython-37m-darwin.so, 2): Symbol not found: _GSS_C_NT_ANONYMOUS
Referenced from: /opt/anaconda3/envs/dev-py37/lib/python3.7/site-packages/lets_plot_kotlin_bridge.cpython-37m-darwin.so
Expected in: flat namespace
in /opt/anaconda3/envs/dev-py37/lib/python3.7/site-packages/lets_plot_kotlin_bridge.cpython-37m-darwin.so
What could cause the Symbol not found
error?
Other couple things that I noticed:
-
IDEA (2019.3.4) shows errors:
Incompatible Kotlin/Native libraries
There are 133 libraries attached to the project that were compiled with a newer Kotlin/Native compiler and can’t be read in IDE:
“stdlib” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/common/stdlib
“AVFoundation” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/AVFoundation
“AVKit” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/AVKit
“Accelerate” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/Accelerate
“Accounts” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/Accounts
“AdSupport” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/AdSupport
“AddressBook” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/AddressBook
“AppKit” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/AppKit
“ApplicationServices” at /Users/Igor/.konan/kotlin-native-macos-1.3.71/klib/platform/macos_x64/Ap… -
Heap memory demand raised so that that I got
OutOfMemoryError
when running:python-extension:compileKotlinNative
task and had to bump size of Gradle build VM heap to get it finished.