×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Link the static library problem, for target - gcce urel

    Hi, I want to link static library , but I get the following error for target gcce urel



    arm-none-symbianelf-ld: warning: \SDK\Nokia_Symbian3_SDK_v1.0\epoc32\release\ARMV5\urel\usrt3_1.lib(ucppinit.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
    c:/program files/csl arm toolchain/bin/../lib/gcc/arm-none-symbianelf/4.6.1/../../../../arm-none-symbianelf/lib\libsupc++.a(eh_personality.o): In function `base_of_encoded_value(unsigned char, _Unwind_Context*)':
    eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x5c): undefined reference to `_Unwind_GetDataRelBase'
    eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x68): undefined reference to `_Unwind_GetRegionStart'
    eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x74): undefined reference to `_Unwind_GetTextRelBase'
    c:/program files/csl arm toolchain/bin/../lib/gcc/arm-none-symbianelf/4.6.1/../../../../arm-none-symbianelf/lib\libsupc++.a(eh_personality.o): In function `_ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info.constprop.4':
    eh_personality.cc:(.text._ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info.constprop.4+0x18): undefined reference to `_Unwind_GetRegionStart'
    c:/program files/csl arm toolchain/bin/../lib/gcc/arm-none-symbianelf/4.6.1/../../../../arm-none-symbianelf/lib\libsupc++.a(eh_personality.o): In function `__gxx_personality_v0':
    eh_personality.cc:(.text.__gxx_personality_v0+0x5c): undefined reference to `_Unwind_GetLanguageSpecificData'
    eh_personality.cc:(.text.__gxx_personality_v0+0x1e0): undefined reference to `__gnu_unwind_frame'
    eh_personality.cc:(.text.__gxx_personality_v0+0x224): undefined reference to `_Unwind_GetLanguageSpecificData'
    make[1]: *** [\SDK\Nokia_Symbian3_SDK_v1.0\epoc32\release\gcce\urel\Eldtobhu.exe] Error 1
    make: *** [TARGETELDTOBHU] Error 2

    Does anybody have idea what's wrong?

  2. #2
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Re: Link the static library problem, for target - gcce urel

    One more think. It seems ,that it's a global problem after updating compiler

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: Link the static library problem, for target - gcce urel

    Just a doubt as it is using ARM compiler's reference. Check it in your .bld file, if you have ARMV5 under "platforms" then try removing it and build again.

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Re: Link the static library problem, for target - gcce urel

    Hi, actually I don't use ARMV5 ptatforms in bld.inf, because I haven't install RVCT

    my bld.inf
    PRJ_PLATFORMS
    GCCE

    PRJ_MMPFILES
    xxx.mmp

    by the way, I'm using Sourcery CodeBench Lite 2011.09-67

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Link the static library problem, for target - gcce urel

    Note that the SDK is tested with the GCCE builds which are bundled with it. So it can be anything.
    Since all of the messages are complaining about "unwind" something, it might be related to some in-place expansion of loops or inlining in general, which the compiler expects to be done already. Perhaps there is a switch to disable it, consult with the documentation and the Sourcery website.

    EDIT: I guess it is more about error handling (based on a search for "undefined reference to `__gnu_unwind_frame'" with Google). And apparently there is at least one compiler switch about the feature.
    Last edited by wizard_hu_; 2012-02-16 at 09:36.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Re: Link the static library problem, for target - gcce urel

    For fix this problem, must be add -lgcc_eh to linker default libs in epoc32\tools\sbs\lib\config\gcce.xml file.

Similar Threads

  1. Building a static interface dll for gcce target
    By LavanyaSpm in forum Symbian
    Replies: 7
    Last Post: 2013-11-10, 23:13
  2. Linker error: urel build is trying to link to a udeb library?
    By erogisa in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2010-02-17, 09:00
  3. Replies: 0
    Last Post: 2009-09-10, 15:11
  4. GCCE static library issue.
    By kovpas in forum Symbian
    Replies: 19
    Last Post: 2008-08-08, 12:24
  5. Help! I get failed to link my LIB project to GCCE urel
    By chunhsiao in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-09-30, 11:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •