Open raghucsbe opened 2 years ago
Hi @raghucsbe
We would need the conanfile.py, or even better, a small reproducible example that we could use to test this. The thing is that the injected flags, like stdcpp flags, depends on the used tools. The new integrations in conan.tools.cmake
will be different than the previous cmake
or cmake_find_package
generators, and different build systems, like Autotools
will also have a different behavior. Could you please provide a reproducible example? Thanks!
Hi @raghucsbe
I am building for QNX 7.0 on nearly a daily basis.
To determine how the command line gets modified and the std
parameter gets added, you have to provide the way you invoke the QCC. Like through CMake or Conan directly?
In any case your problem could originate from missing stuff from the QNX SDP headers. The QCC doc for the std
parameter says:
This option restricts the language libraries (libc, libc++) to the specified ISO standard, which hides any function calls and symbols that aren't part of that standard. To include everything that's defined in the header files, such as functions that are part of the POSIX standard, also use the -D option to define _QNX_SOURCE. See “Conforming to standards” in the “Compiling and Debugging” chapter of the QNX Neutrino Programmer's Guide.
The Conforming to standards docs from QNX says:
If you want to conform to a given language standard, you can use the -std=language option for qcc. This option can cause certain portions of the header files to be omitted, which is likely to cause problems because functions that are defined by POSIX or that are specific to QNX Neutrino won't be defined.
You can then use the qcc -D option to define feature-test macros to specify the portions that you want to include. Here are the most commonly used feature-test macros: _QNX_SOURCE Include everything defined in the header files. This is defined by default if you don't specify a language standard.
You could try that until the source for the parameter injection is found.
Best Regards
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Building Alexa Auto SDK for QNX platform on Mac QNX SDP 7.0 is installed. QNX profile :
Command used to build
It is observed that the conan is additionally adding
-std=c++11
to the compile flag that caused the qcc compile to fail. When manually removed the flag the compilation goes thru.Logs (Executed commands with output) (Include/Attach if Applicable)
Build error: