Has anyone tried to build the gRPC on QNX platform

425 views
Skip to first unread message

belanke...@gmail.com

unread,
Jun 11, 2020, 10:46:50 AM6/11/20
to grpc.io
I am trying to cross compile the gRPC repo with QNX platform.
I followed the steps mentioned in guthub page. But I am facing an issue with C++ version compatibility.

Getting error message of #error "C++ versions less than C++11 are not supported."

Has anyone tried to build this for QNX arm platform?

belanke...@gmail.com

unread,
Jun 11, 2020, 11:49:35 PM6/11/20
to grpc.io
Here I am using gcc-5.4.0, which is c++11 standard. But still it is showing this error message.

Can anyone help me on this?

Thomas Mercier

unread,
Jun 11, 2020, 11:57:51 PM6/11/20
to belanke...@gmail.com, grpc.io
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gcc/Standards.html#C_002b_002b-Language 

"The default, if no C++ language dialect options are given, is -std=gnu++98."

On Thu, Jun 11, 2020 at 8:49 PM <belanke...@gmail.com> wrote:
Here I am using gcc-5.4.0, which is c++11 standard. But still it is showing this error message.

Can anyone help me on this?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5cacc489-b3c7-4320-90e1-cc7dca6dd3f8o%40googlegroups.com.

Phani B

unread,
Jun 12, 2020, 1:10:01 AM6/12/20
to Thomas Mercier, belanke...@gmail.com, grpc.io
But I think it should be picking -std=c++11 as a CFLAG automatically right?

belanke...@gmail.com

unread,
Jun 12, 2020, 1:20:52 AM6/12/20
to grpc.io
I am using -std=c++11 as CXXFLAGS. But still it is showing this error.


On Friday, June 12, 2020 at 9:27:51 AM UTC+5:30, Thomas Mercier wrote:
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gcc/Standards.html#C_002b_002b-Language 

"The default, if no C++ language dialect options are given, is -std=gnu++98."

On Thu, Jun 11, 2020 at 8:49 PM <belanke...@gmail.com> wrote:
Here I am using gcc-5.4.0, which is c++11 standard. But still it is showing this error message.

Can anyone help me on this?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grp...@googlegroups.com.

Phani B

unread,
Jun 12, 2020, 1:24:16 AM6/12/20
to belanke...@gmail.com, grpc.io
I am facing not exactly same but a  related problem as well. For me even when I give -std=c++11flag, i get errors related to header file inclusion.

To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/8aa7e9e7-3412-4368-aa6e-94397a1fbf56o%40googlegroups.com.

belanke...@gmail.com

unread,
Jun 12, 2020, 11:26:47 AM6/12/20
to grpc.io
error: 'constexpr' does not name a type
error: '__to_gcc_order' is not a member of 'std::__1::__gcc_atomic'

these are the error message I am getting.

I am trying to do cross compilation on arm, using g++5.4.0

My toolchain.cmake file contains:

SET(CMAKE_SYSTEM_NAME QNX)
SET(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_CROSSCOMPILING 1)
set(CMAKE_C_COMPILER /usr/bin/aarch64-unknown-nto-qnx7.0.0-gcc-5.4.0)
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-unknown-nto-qnx7.0.0-g++-5.4.0)
set(CMAKE_CXX_FLAGS "-std=c++11-O2 -DBUILDENV_qss -g -Os -march=armv8-a -mcpu=cortex-a57 -mtune=cortex-a57 \
        -fstack-protector-strong -DNDEBUG -DFMT_HEADER_ONLY -DVARIANT_le ")

On Friday, June 12, 2020 at 10:54:16 AM UTC+5:30, Phani B wrote:
I am facing not exactly same but a  related problem as well. For me even when I give -std=c++11flag, i get errors related to header file inclusion.

On Fri, 12 Jun 2020, 10:50 , <belanke...@gmail.com> wrote:
I am using -std=c++11 as CXXFLAGS. But still it is showing this error.

On Friday, June 12, 2020 at 9:27:51 AM UTC+5:30, Thomas Mercier wrote:
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gcc/Standards.html#C_002b_002b-Language 

"The default, if no C++ language dialect options are given, is -std=gnu++98."

On Thu, Jun 11, 2020 at 8:49 PM <belanke...@gmail.com> wrote:
Here I am using gcc-5.4.0, which is c++11 standard. But still it is showing this error message.

Can anyone help me on this?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5cacc489-b3c7-4320-90e1-cc7dca6dd3f8o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages