-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Build] "nsync_cpp" is not in any export set #16747
Comments
Welcome to help us fix it. |
@snnn Same issue, https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-onnxruntime doesn't fix it. |
Do you really require:
We saw that this less to failing the build with the above error. I would try reducing as much as possible. |
BUILD_SHARED_LIBS is a standard cmake flag but I'm sorry we do not support it. Most open source libraries are not that flexible that can be built as a static or dynamic library without extra code change. Protobuf is a great example. Protobuf itself is not stateless, if you build it as a shared library, the components who use this shared library will share states, which will cause conflicts. And, namely abseil, a library that most Google's open source libraries use, has very poor support for dynamic linking. These issues cannot be solved at cmake level. |
Afaik there is |
This is rather very strange to hear beacuse on release page I can download distrubted shared library, maybe as @KottV said it's just a different flag for it (and I don't really need something specific beyond what is distributed), as for abseil and protobuf for example Gentoo for ages use them as shared ending up with consistent state across whole distribution ecosystem, sure there could be problems with ABI breaking on updates but it's known and solveable with preserving post revers deps rebuilding. |
nsync is removed. |
Describe the issue
getting:
CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.
I have nsync_cpp installed in system and seems like without onnxruntime_SHARED_LIB cmake flag I don't get the error, but I need shared library
Urgency
can't build shared library for onnxruntime using cmake
Target platform
Linux
Build script
cmake
..
make
Error / output
CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.
Visual Studio Version
No response
GCC / Compiler Version
12.3.1 20230623
The text was updated successfully, but these errors were encountered: