-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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 issues on QNX 7.0 #8593
Comments
Feel free to send a PR for these fixes. The codegen fixes can be made in the code generator, for example:
Which errors did you get that require |
The errors which require
It looks like there are some defines which accomplish the same while still using Yes, defining |
Closing since the PR to fix has already been merged. |
What version of protobuf and what language are you using?
Version: v3.16.0
Language: C++
What operating system (Linux, Windows, ...) and version?
QNX 7.0 build on Ubuntu 20.04
What runtime / compiler are you using (e.g., python version or gcc version)
GCC 5.4.0
What did you do?
Steps to reproduce the behavior:
Check out v3.16.0
Run
CC=qcc CXX=q++ ./configure --host aarch64-qnx-gnu && make
What did you expect to see
Build succeeds
What did you see instead?
Build fails
First, there are many errors about
#include <endian.h>
, which is not available on QNX.This can be fixed with the following patch which also adds support for 64 bit builds:
Once this is fixed, there are additional errors due to
-std=c++11
being used instead of-std=gnu++11
, which I could fix like thisBut for the final error, I am not sure, since this also happens in the generated code:
The following patch fixes this as well:
Am I supposed to fix this manually for all
.pb.cc
files or could this be fixed more generally?And finally there is a linker error, which I don't care about because I can run
protoc
on my host system:The text was updated successfully, but these errors were encountered: