Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
mmd12
Posts: 117
Registered: ‎03-13-2012
My Device: Playbook, Dev Alpha C, Q10, Z10
My Carrier: T-Mobile
Accepted Solution

BB10 Gold Error in Build

I just downloaded and installed the BB10 Gold.

 

Fired it up and tried to do a build on an existing project that I've had no problems with before.  I get a build error:

 

**** Internal Builder is used for build               ****
qcc -o src\main.o ..\src\main.c -V4.4.2,gcc_ntoarmv7le -w1 -IC:/BB_SDK/target/qnx6/usr/include/freetype2 -IC:/BB_SDK/target/qnx6/../target-override/usr/include -D_FORTIFY_SOURCE=2 -c -O0 -g -fstack-protector-strong
cc1: error: unrecognized command line option "-fstack-protector-strong"
cc: C:/BB_SDK/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/cc1 caught signal 1
Build error occurred, build is stopped
Time consumed: 4483  ms. 

 

 

I don't know what to do with this.  There's obviously some kind of command line option that isn't right but I have no experience modifying these sorts of things.

 

Any suggestions?

Please use plain text.
New Contributor
Tramontane
Posts: 2
Registered: ‎12-12-2012
My Device: BB10, Playbook
My Carrier: Play

Re: BB10 Gold Error in Build

Well, my solution is (I don`t know what other consequences it may have):

1) Go into Project Properties (I assume you use QNX Momentics IDE)

2) C/C++ Build

3) Settings -> Tool Settings -> Output Control in QCC Compiler -> Uncheck "Enchanced Security (-fstack-protector-strong)" option

4) Rebuild

 

Works for me.

Please use plain text.
Developer
mmd12
Posts: 117
Registered: ‎03-13-2012
My Device: Playbook, Dev Alpha C, Q10, Z10
My Carrier: T-Mobile

Re: BB10 Gold Error in Build

[ Edited ]

Thanks, Tramontane. 

 

I'll give that a shot and see how it goes, although just looking at what you're suggesting, it seems to be the answer. 

Please use plain text.
Developer
mmd12
Posts: 117
Registered: ‎03-13-2012
My Device: Playbook, Dev Alpha C, Q10, Z10
My Carrier: T-Mobile

Re: BB10 Gold Error in Build

Gave it a go.

 

Seems to work.  At least I can now build the projects.

 

Thanks again, Tramontane.

 

I'm happy now.

Please use plain text.