-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Unable to Compile Protobuf for QNX aarch64 #7794
Comments
Sorry, I think this is not our officially supported platform. Could you help send a fix? |
I got the same question when cross-compile protobuf c++ 3.11.4 for arm-linux, |
@TeBoring |
@bosssaurav @journey175 I got the same question, I have fixed.
the reason can see https://stackoverflow.com/questions/5378778/what-does-d-xopen-source-do-mean |
@xuwenping In my method : by giving follow error: Any work around this ? |
@bosssaurav |
was this fixed by #8637? |
Closing due to no response, feel free to reopen if you are still seeing this issue. |
What version of protobuf and what language are you using?
Version: master
Language: C++
What operating system (Linux, Windows, ...) and version?
Linux x86
Target OS : QNX aarch64
What runtime / compiler are you using (e.g., python version or gcc version)
CC=ntoaarch64-g++-5.4.0
CXX=ntoaarch64-gcc-5.4.0
What did you do?
Try to cross- compile protobuf for aarch64
Steps to reproduce the behavior:
What did you expect to see
> Protobuf libraries for aarch64 qnx
What did you see instead?
libtool: compile: ntoaarch64-g++-5.4.0 -std=c++11 -DHAVE_CONFIG_H -I. -I../../src -I.. -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/io/zero_copy_stream_impl.lo -MD -MP -MF google/protobuf/io/.deps/zero_copy_stream_impl.Tpo -c ../../src/google/protobuf/io/zero_copy_stream_impl.cc -o google/protobuf/io/zero_copy_stream_impl.o
../../src/google/protobuf/io/zero_copy_stream_impl.cc: In function 'int google::protobuf::io::{anonymous}::close_no_eintr(int)':
../../src/google/protobuf/io/zero_copy_stream_impl.cc:75:22: error: 'close' was not declared in this scope
result = close(fd);
^
../../src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual int google::protobuf::io::FileInputStream::CopyingFileInputStream::Read(void*, int)':
../../src/google/protobuf/io/zero_copy_stream_impl.cc:147:38: error: 'read' was not declared in this scope
result = read(file_, buffer, size);
^
../../src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual int google::protobuf::io::FileInputStream::CopyingFileInputStream::Skip(int)':
../../src/google/protobuf/io/zero_copy_stream_impl.cc:162:35: error: 'lseek' was not declared in this scope
lseek(file_, count, SEEK_CUR) != (off_t)-1) {
^
../../src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual bool google::protobuf::io::FileOutputStream::CopyingFileOutputStream::Write(const void*, int)':
../../src/google/protobuf/io/zero_copy_stream_impl.cc:250:77: error: 'write' was not declared in this scope
bytes = write(file_, buffer_base + total_written, size - total_written);
^
../../src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual int google::protobuf::io::FileInputStream::CopyingFileInputStream::Skip(int)':
../../src/google/protobuf/io/zero_copy_stream_impl.cc:175:1: warning: control reaches end of non-void function [-Wreturn-type]
Anything else we should know about your project / environment
CC=ntoaarch64-g++-5.4.0
CXX=ntoaarch64-gcc-5.4.0
The text was updated successfully, but these errors were encountered: