-
Notifications
You must be signed in to change notification settings - Fork 319
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
Known macOS build issues with Protobuf version 3.19 and 3.20 #1936
Comments
Should we upgrade to protobuf 3.20.3 and include the workaround or should we wait for |
In general, only upgrade when there is a specific reason to do so. Stay in sync with onnx is desirable but if the new version has known problem like the one above, I'd wait until things get sorted out. |
To my understanding, protobuf 3.20.3 is required by onnx opset 18. protobuf 3.21 is needed for Mac to fix the issue with protobuf 3.20.3 on Mac. Can protobuf 3.21.3 work with other components in onnx-mlir? Open a draft PR to try? |
So the |
Thanks for your efforts. Your draft PR ran through on Mac, AMD and PPC Linux, but failed on S390 and Windows. It seems that Protobuf 3.20.2 is not available for Windows and can not be built on S390. |
@chentong319 Yes I tested Protobuf 3.20.2, 3.20.3 and 3.21.3 which failed for some checks and not for others. So I guess we will have to remain at the version we are currently on. |
Yes, remain at the version we are currently on. Is it possible to use a different version for Mac only? Even if the git build for Mac fails for a while due to the Protobuf 3.18, I am building onnx-mlir locally on my Mac using Protobuf 3.20.3. |
Interesting!! Okay let me try that. |
When upgrading protobuf from 3.18.3 to 3.20.3, I noticed the macOS build failed with the following:
This is actually a known issue in the protobuf community, please see the following issues:
protocolbuffers/protobuf#9947
facebookincubator/velox#2029
This problem is fixed in protobuf version 3.21.3, however
onnx
community has not upgraded to that version. Instead they are on version 3.20.3 which is where the failure lies. There is a workaround if we still want to upgrade to version 3.20.3 by adding the following to the CMake.txt file:add_definitions(-DNDEBUG)
The text was updated successfully, but these errors were encountered: