Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Precompiled header support with qcc: (9 Items)
   
Precompiled header support with qcc  
Dear all, 

I'm trying to get precompiled header support to work with QNX 6.5.0 M9 build on a ppcbespe cross build. 

I'm using the following command line to create a precompiled header in a build directory: 

# qcc -Vgcc_ntoppcbespe -x c++-header -O3 -Wc,-fno-strict-aliasing -Wc,-finline-functions -Wc,-Wno-inline -Wc,-Wall -
shared  -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_LOG_NO_SETTINGS_PARSERS_SUPPORT -
DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_CHAR -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs\math\src\tr1" -c -
o "build.qnx650\boost\bin.v2\libs\math\build\qcc-ppcbespe\release\logapi-unix\target-os-qnx\threadapi-pthread\threading-
multi\..\src\tr1\pch.hpp.gch" "libs\math\build\..\src\tr1\pch.hpp"

This command silently fails - no error output - no pch.gch.gcc created. 

The seemingly equivalent call: 

# ntoppc-gcc -me500v2 -x c++-header -O3 -fno-strict-aliasing -finline-functions -Wno-inline -Wall -shared  -
DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_LOG_NO_SETTINGS_PARSERS_SUPPORT -DBOOST_LOG_NO_SHORTHAND_NAMES -
DBOOST_LOG_USE_CHAR -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs\math\src\tr1" -c -o "build.qnx650\boost\bin.v2\
libs\math\build\qcc-ppcbespe\release\logapi-unix\target-os-qnx\threadapi-pthread\threading-multi\..\src\tr1\pch.hpp.gch"
 "libs\math\build\..\src\tr1\pch.hpp"

works fine. The precompiled header is created. 

Any pointers on what I have to change with the qcc call to make it work ? 

On a side note, I noticed the IDE Makefiles invoke the compiler for the ppcbespe target using "qcc -Vgcc_ntoppc -EB -
me500v2 ". Is there any reason why this is prefered over using the "qcc -Vgcc_ntoppcbespe" configuration directly ? 

Thanks,
Christopher
Re: Precompiled header support with qcc  
On 10-05-05 11:26 AM, Christopher Pohl wrote:
> Dear all,
>
> I'm trying to get precompiled header support to work with QNX 6.5.0 M9 build on a ppcbespe cross build.
>
> I'm using the following command line to create a precompiled header in a build directory:
>
> # qcc -Vgcc_ntoppcbespe -x c++-header -O3 -Wc,-fno-strict-aliasing -Wc,-finline-functions -Wc,-Wno-inline -Wc,-Wall -
shared  -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_LOG_NO_SETTINGS_PARSERS_SUPPORT -
DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_CHAR -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs\math\src\tr1" -c -
o "build.qnx650\boost\bin.v2\libs\math\build\qcc-ppcbespe\release\logapi-unix\target-os-qnx\threadapi-pthread\threading-
multi\..\src\tr1\pch.hpp.gch" "libs\math\build\..\src\tr1\pch.hpp"
>
> This command silently fails - no error output - no pch.gch.gcc created.
>
> The seemingly equivalent call:
>
> # ntoppc-gcc -me500v2 -x c++-header -O3 -fno-strict-aliasing -finline-functions -Wno-inline -Wall -shared  -
DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_LOG_NO_SETTINGS_PARSERS_SUPPORT -DBOOST_LOG_NO_SHORTHAND_NAMES -
DBOOST_LOG_USE_CHAR -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs\math\src\tr1" -c -o "build.qnx650\boost\bin.v2\
libs\math\build\qcc-ppcbespe\release\logapi-unix\target-os-qnx\threadapi-pthread\threading-multi\..\src\tr1\pch.hpp.gch"
 "libs\math\build\..\src\tr1\pch.hpp"
>
> works fine. The precompiled header is created.
>
> Any pointers on what I have to change with the qcc call to make it work ?

Looks like a bug in qcc not recognizing .hpp as an file extension for 
pre-compiled headers. .h/.hh are recognized. I can provide you with 
fixed qcc. Which host do you need it for?

> On a side note, I noticed the IDE Makefiles invoke the compiler for the ppcbespe target using "qcc -Vgcc_ntoppc -EB -
me500v2 ". Is there any reason why this is prefered over using the "qcc -Vgcc_ntoppcbespe" configuration directly ?

No advantage really, they should be have the same behavior.

Regards,

Ryan Mansfield
Re: Precompiled header support with qcc  
> Looks like a bug in qcc not recognizing .hpp as an file extension for 
> pre-compiled headers. .h/.hh are recognized. I can provide you with 
> fixed qcc. Which host do you need it for?

I'm working on a windows host. 

Thank you, 
Christopher

Re: Precompiled header support with qcc  
On 10-05-05 12:03 PM, Christopher Pohl wrote:
>
>> Looks like a bug in qcc not recognizing .hpp as an file extension for
>> pre-compiled headers. .h/.hh are recognized. I can provide you with
>> fixed qcc. Which host do you need it for?
>
> I'm working on a windows host.

Please try the attached qcc and let me know if you have any issues.

Regards,

Ryan Mansfield
Attachment: Compressed file qcc.zip 38.47 KB
Re: Precompiled header support with qcc  
> On 10-05-05 12:03 PM, Christopher Pohl wrote:
> >
> >> Looks like a bug in qcc not recognizing .hpp as an file extension for
> >> pre-compiled headers. .h/.hh are recognized. I can provide you with
> >> fixed qcc. Which host do you need it for?
> >
> > I'm working on a windows host.
> 
> Please try the attached qcc and let me know if you have any issues.

Thanks for the quick fix. I tried it, but it doesn't seem to make a difference. Same behavior as before. 

Christopher. 

Re: Precompiled header support with qcc  
On 10-05-06 04:38 AM, Christopher Pohl wrote:
>> On 10-05-05 12:03 PM, Christopher Pohl wrote:
>>>
>>>> Looks like a bug in qcc not recognizing .hpp as an file extension for
>>>> pre-compiled headers. .h/.hh are recognized. I can provide you with
>>>> fixed qcc. Which host do you need it for?
>>>
>>> I'm working on a windows host.
>>
>> Please try the attached qcc and let me know if you have any issues.
>
> Thanks for the quick fix. I tried it, but it doesn't seem to make a difference. Same behavior as before.

Sorry, I failed to notice were two issues. I had created a smaller 
testcase from your example and didn't notice the second issue.

Please try the attached qcc.

Regards,

Ryan Mansfield
Attachment: Compressed file qcc.zip 38.52 KB
Re: Precompiled header support with qcc  
> On 10-05-06 04:38 AM, Christopher Pohl wrote:
> >> On 10-05-05 12:03 PM, Christopher Pohl wrote:
> >>>
> >>>> Looks like a bug in qcc not recognizing .hpp as an file extension for
> >>>> pre-compiled headers. .h/.hh are recognized. I can provide you with
> >>>> fixed qcc. Which host do you need it for?
> >>>
> >>> I'm working on a windows host.
> >>
> >> Please try the attached qcc and let me know if you have any issues.
> >
> > Thanks for the quick fix. I tried it, but it doesn't seem to make a 
> difference. Same behavior as before.
> 
> Sorry, I failed to notice were two issues. I had created a smaller 
> testcase from your example and didn't notice the second issue.
> 
> Please try the attached qcc.

This version works like a charm, thanks. Much appreciated. 

Christopher. 


Re: Precompiled header support with qcc  
Did this fix make it into the 6.5.0 release?
Re: Precompiled header support with qcc  
On 10-08-11 09:32 AM, Jim Douglas wrote:
> Did this fix make it into the 6.5.0 release?

Yes, I just double-checked the release branch and it's there.

Regards,

Ryan Mansfield