[TIMOB-9109] Blackberry: Linking tibbtest for Device-Release fails with relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-16T01:51:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-21 BB, BB Preview 3 |
Components | BlackBerry |
Labels | n/a |
Reporter | Jean-Philippe Lemieux |
Assignee | Josh Roesslein |
Created | 2012-05-11T06:41:19.000+0000 |
Updated | 2017-03-03T05:19:25.000+0000 |
Description
Building tibbtest for Device-Release fails with the following error message:
/Developer/SDKs/bbndk-10.0.03/host/macosx/x86/usr/bin/ntoarm-ld: /Users/jpl/src/titanium/titanium_mobile/blackberry/tibbtest/../libv8/lib/arm/libv8.a(api.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
NOTE: We've identified that the -pie flag causes the issue and removing it let's the build complete.
More investigation is needed to understand the implications of that flag and also ensure that the resulting app does run on a device
Fixed by move to Cascades R4 and tools
Reopening as the issue reappeared with R6
Adding the request from Suavek for the build logs, i haven't followed up yet. "Can you send me the full output of the compile command line (I’d like to check the options you have)? The ‘-fPIC’ option should always be there in your case (https://developer.blackberry.com/native/documentation/com.qnx.doc.native_sdk.security/topic/compile_pic_pie.html). Where did you insert the option? See this post for more info on what could have caused this: http://supportforums.blackberry.com/t5/Native-Development/Stack-guard-and-PIC/td-p/1768509 Suavek Zajac Sr. Application Development Consultant Developer Relations | Research In Motion 289.261.5101"
[JPL]Impact is we can't build release version of the apps. As such without this fixed, apps created with titanium for BB can't be deployed to devices or the BB marketplace. I don't think that you can use debug builds for that.
Closing ticket as BlackBerry is no longer supported.