-
Notifications
You must be signed in to change notification settings - Fork 3.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
"Class-memaccess" compilation error in test [C++, gcc 10.1.0, Flatbuffers 1.12.0/master] #5930
Comments
Yes, the default constructor really shouldn't use Care to make a PR for this? |
As I understand, the problem is in constructor with parameters (not in default constructor, as it's already have I have some thoughts of how to fix this, so yeah, i will make the PR |
I've exactly the same error with TensorFlow 2.4.0 tag on Ubuntu 20.10 and gcc 10.2.0. Oddly, there is no problem with TF 2.4.0 on Ubuntu 20.04 + gcc 9.3.0, nor on Ubuntu 18.04 + gcc 7.5.0. |
@Qengineering as you can see, it has been fixed.. so you'd need to get TensorFlow to update their copy of FlatBuffers. As a local work-around, turn of |
It's fixed was also what I thought after reading the comments above. Never had any problem before with the FlatBuffers. I followed your steps, and downloaded version TF 2.4.0 again, hoping, against better, it will solve the issue.
Turning -Werror of is something I'd rather not do. After all, why issue an error if it has no bearing on functionality? |
Probably this issue connected with #6337. |
@vglavnyy yeah, that be a good idea. I like And generally allowing people their own control over compiler flags is good. |
This commit adds FLATBUFFERS_CXX_FLAGS cmake option. This option allows override the -Werror flag (or any other flags). Related issues: google#6337, google#5930
Hello, ` Linux hostname 5.10.63-v7+ #1488 SMP Thu Nov 18 16:14:44 GMT 2021 armv7l GNU/Linux Basic processor info: Hardware : BCM2835 cmake does not report any error. Unfortunately, make reports the following error that suspends all subsequent install and ldconfig operations:
Would appreciate indulgence for a newbie question from anyone who has a basic workaround. Thanks. Kind regards. |
@baqwas again, this has been fixed in FlatBuffers, so ask about it on the tf/tflite repo.. they need to upgrade. Or force disable |
Thanks @aardappel for the prompt response. Will do as advised. Truly appreciate your indulgence. Kind regards. |
Compilation is failing on tests when using gcc 10.1.0.
Master branch and v1.12.0 tag are affected, didn't test other tags
Setup
Reproducing
The text was updated successfully, but these errors were encountered: