This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TDA2EG: Need RTS library with exception handling support

Part Number: TDA2EG


Tool/software: TI C/C++ Compiler

Hello,

I am using rtsv7M4_T_le_eabi.lib run time support library for linking, but I am getting linker issues like __TI_Unwind_RaiseException, __aeabi_unwind_cpp_pr0, __cxa_allocate_exception.

I am assuming that I need eh version of library for exception handling support. This mean I need to use rtsv7M4_T_le_eabi_eh.lib, right?

Since I am not having this lib, I am trying to generate the one using mklib, but I am getting createProcess failed. make (e=2): The system cannot find the file specified.

I couldn't resolve it with solutions provided on other forums.

This is what I did to generate library:

Added <toolchain path>/lib to from of PATH (environment variable).

Then from git bash executing:

mklib.exe --pattern=rtsv7M4_T_le_eabi_eh.lib --index=<toolchain_path>/src

 

I am not sure why this error comes.

Please help resolving this issue or provide ready library: rtsv7M4_T_le_eabi_eh.lib what I am looking for.

Thanks,

Shailesh

 

  • Shailesh Wankhede90 said:
    I am using rtsv7M4_T_le_eabi.lib run time support library for linking, but I am getting linker issues like __TI_Unwind_RaiseException, __aeabi_unwind_cpp_pr0, __cxa_allocate_exception.

    This is your first problem.  And thus the best place to start.  In your linker invocation, when you name the compiler RTS library, you ought to use something like "-l libc.a".  This tells the linker to choose the best library based on the object files seen.  In your case, it will automatically pick a library with exception handling in it.  Since that library is not available, the linker will automatically invoke mklib to create it.  

    If that fails, then please see the Mklib article, particularly the Troubleshooting section.  

    If you still can't make it work, then show the entire linker invocation, along with all the diagnostics which result.  Also show which version of the compiler (not CCS) you use.

    Thanks and regards,

    -George

  • This particular compiler version(5.2.4) doesn't have libc.a. So I was using available rts library.
    Anyway I fixed problem by generating RTS library on other PC.
    Probably problem was with PATH environmental variable.

    Thanks,
    Shailesh