Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[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 Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-16T01:51:22.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-21 BB, BB Preview 3
ComponentsBlackBerry
Labelsn/a
ReporterJean-Philippe Lemieux
AssigneeJosh Roesslein
Created2012-05-11T06:41:19.000+0000
Updated2017-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

Comments

  1. Jean-Philippe Lemieux 2012-05-16

    Fixed by move to Cascades R4 and tools
  2. Jean-Philippe Lemieux 2012-07-24

    Reopening as the issue reappeared with R6
  3. Jean-Philippe Lemieux 2012-07-24

    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"
  4. Tatyana Petrenko 2012-08-23

    [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.
  5. Lee Morris 2017-03-03

    Closing ticket as BlackBerry is no longer supported.

JSON Source