-
Notifications
You must be signed in to change notification settings - Fork 517
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
[Bug][TubeMQ] compile error with gcc >= 8.0 on rapidjson #5138
Comments
Thanks a lot for opening your first issue with us! 🧡 We'll get back to you shortly! ⏳ |
@zhz365365, this should not be a problem of implementation. After the problem was solved, how did you deal with it? |
We fix it by add -Wno-error=class-memaccess on the CMAKE_CXX_FLAGS in CMakeLists.txt file, referenced on https://www.linuxquestions.org/questions/slackware-14/failing-to-build-rapidjson-and-libxkbcommon-on-slackware-arm-current-4175647470/ |
@zhz365365, thanks! |
Based on the modification method of @zhz365365, I added the GCC version judgment in CMakeList. Since the environment only encountered 8.3.1, I only made a rough judgment on 8.0.0. If you find that a more refined version also needs this in practice, please submit an issue for modification. After verification in GCC 8.3.1 and 4.8.1 environments, the problem is solved. Thanks to @charlely for her help and guidance. |
What happened
when use gcc8.3.1, the compile for rapidjson exist error
![企业微信截图_b2913025-d43c-4e06-9bf7-85b125b70564](https://user-images.githubusercontent.com/30625277/179887036-2cefcb6f-911c-4dc6-9296-dd802323bb48.png)
What you expected to happen
fix it on gcc version >= 8.0
How to reproduce
compile it on protobuf.3.6.1 and gcc.8.3.1
Environment
protobuf.3.6.1 and gcc.8.3.1
InLong version
master
InLong Component
InLong SDK
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: