djl
djl copied to clipboard
java.lang.UnsatisfiedLinkError: Symbol __ZNKSt3__115basic_stringbuf... not found in libc++.1.dylib when loading ONNX Runtime on macOS
Description
(A clear and concise description of what the bug is.)
java.lang.UnsatisfiedLinkError: /private/var/folders/yk/j3pvljsx7hlf0hbnb22mm_940000gn/T/onnxruntime-java15068554294740161020/libonnxruntime.dylib: dlopen(/private/var/folders/yk/j3pvljsx7hlf0hbnb22mm_940000gn/T/onnxruntime-java15068554294740161020/libonnxruntime.dylib, 1): Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv Referenced from: /private/var/folders/yk/j3pvljsx7hlf0hbnb22mm_940000gn/T/onnxruntime-java15068554294740161020/libonnxruntime.dylib (which was built for Mac OS X 13.3) Expected in: /usr/lib/libc++.1.dylib
OS: macOS (exact version not specified, but error suggests compatibility mismatch with Mac OS X 13.3) ONNX Runtime Java version: Likely built for macOS 13.3 (exact version unknown) Java version: Not specified (include via java -version) Hardware: Likely Apple Silicon (M1/M2) or Intel-based Mac (needs confirmation)
Expected Behavior
(what's the expected behavior?)
Error Message
(Paste the complete error message, including stack trace.)
How to Reproduce?
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
Environment Info
Please run the command ./gradlew debugEnv from the root directory of DJL (if necessary, clone DJL first). It will output information about your system, environment, and installation that can help us debug your issue. Paste the output of the command below:
PASTE OUTPUT HERE