-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 Broken with cmake option onnxruntime_BUILD_UNIT_TESTS=OFF #7571
Comments
Hi, more details please. |
I'm mostly using custom build instructions but I had a change to dig into that a little more and here's more details (with perhaps a fix) The problem happens when you say What happens is that because because BUILD_UNIT_TESTS is OFF the cmake file onnxruntime_unittest.cmake doesnt get included which defines the variable TEST_SRC_DIR
The variable is used in onnxruntime_training.cmake here:
The exact error occurs at
because TEST_SRC_DIR expands to empty and the paths dont line up. perhaps the right fix would be to simply not use the variable but |
@ankurverma85 0 I can repro the issue with: wo/ --enable_training, it will build. Is there any particular use case for this combination? This sounds like enhancement and welcome to contribute. |
close it for now |
Hi, I am also trying to build onnxruntime with The error I get: /usr/bin/ld: .../lib/libonnxruntime_session.a(ort_env.cc.o): in function `OrtEnv::GetInstance(OrtEnv::LoggingManagerConstructionInfo const&, onnxruntime::common::Status&, OrtThreadingOptions const*) [clone .cold]':
ort_env.cc:(.text.unlikely._ZN6OrtEnv11GetInstanceERKNS_30LoggingManagerConstructionInfoERN11onnxruntime6common6StatusEPK19OrtThreadingOptions+0x49): undefined reference to `nsync::nsync_mu_unlock(nsync::nsync_mu_s_*)' |
Describe the bug
Using the cmake option onnxruntime_BUILD_UNIT_TESTS=OFF results in cmake generate error
Urgency
If there are particular important use cases blocked by this or strict project-related timelines, please share more information and dates. If there are no hard deadlines, please specify none.
System information
All
To Reproduce
cmake -Donnxruntime_BUILD_UNIT_TESTS=OFF
Expected behavior
Generates properly
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The text was updated successfully, but these errors were encountered: