[Build] Onnxrt build failing while building protobuf #17904
-
Observing that ONNXRT 1.15.1 build is failing in Windows machine In one windows machine it is working well but failing in another, both have similar settings Came across 2 issues with similar issue but creating a new conda env didn't fix the issue I am suspecting that the versioning some library is wrong but not sure where things are going wrong
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
"C:\Users\amd\anaconda3\Library\include\google/protobuf/metadata_lite.h" was from your conda environment. I don't know conda much. I expect that a new and clean conda environment should not have protobuf C/C++ library. If it is not the case, I suggest uninstalling conda and use CPython instead: https://python.org. |
Beta Was this translation helpful? Give feedback.
Thank you @snn,
The issue was with Anaconda and it was causing conflicts,
Deleting
C:\Users\<user name>\anaconda3\Library\include\google\protobuf
has fixed the issueThis issues to be an conflict with Anaconda environment an d 2 protobuf of different versions
Anaconda seems to be maintaining a local copy of protobuf at the below path and deleting this fixed the issue
C:\Users\<user name>\anaconda3\Library\include\google\protobuf
and while building onnxrt, there seems to be conflict and compilation error.
Apart from protobuf , gmock/gtest used for compiling the onnxrt unit tests also seems to have this conflict at times and in the similar path deleting them has fixed the build issues.
ToDo :
…