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.

Error in compiling RTS32EARM.lib using CCSv5.1.1

Other Parts Discussed in Thread: OMAPL138, CCSTUDIO

Hello,

I'm using CCS v.5.1.1 to compile example OMAPL138-DSP-LED-v4.zip from TI in booting both ARM+DSP.

I failed to build the required file RTS32EARM.lib with the following error

Description Resource Path Location Type
unresolved symbol _main_func_sp, first referenced in G:/TI_OMAP/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/Debug/boot.obj OMAPL138-DSP-LED-ARM   C/C++ Problem
unresolved symbol _exit, first referenced in G:/TI_OMAP/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/Debug/boot.obj OMAPL138-DSP-LED-ARM   C/C++ Problem
unresolved symbol __TI_auto_init, first referenced in G:/TI_OMAP/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/Debug/boot.obj OMAPL138-DSP-LED-ARM   C/C++ Problem
unresolved symbol __args_main, first referenced in G:/TI_OMAP/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/Debug/boot.obj OMAPL138-DSP-LED-ARM   C/C++ Problem
cannot find file "rts32earm9.lib" OMAPL138-DSP-LED-ARM   C/C++ Problem
<a href="file:/E:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain OMAPL138-DSP-LED-ARM   C/C++ Problem
#10010 errors encountered during linking; OMAPL138-DSP-LED-ARM   C/C++ Problem
xxsqrt.h variable "origx" was declared but never referenced OMAPL138-DSP-LED-ARM line 45 C/C++ Problem
xxfmod.h variable "ret" was declared but never referenced -->  error: '*.obj OMAPL138-DSP-LED-ARM line 84 C/C++ Problem
xxfmod.h variable "ret" was declared but never referenced OMAPL138-DSP-LED-ARM line 84 C/C++ Problem
automatic library build: using library OMAPL138-DSP-LED-ARM   C/C++ Problem

Do you have any idea ?

Thanks,

~Duy-Ky

  • Is this a CCS3.3 project that you are migrating and building with CCS 5.1? It looks like the original project was set up to link in rts32earm9.lib explicitly. In CCSv5, a smaller subset of library files are included with the product, and rts32earm9.lib is not one of them. If a project requires a lib file that does not already exist it will dynamically build it the first time the project is built as long as the project is set up for automatic library selection.

    So to resolve your error, you have a couple of options. You could modify your project such that the explicit reference to rts32earm9.lib is removed (it will likely be in Project Properties->CCS Build->Linker->File Search Path) and then set the Runtime Support Library to "automatic", which will automatically build the appropriate lib the first time it builds the project.

    Or you could use the attached lib file (I got it from my CCCv4 installation). Copy it to your \ccsv5\tools\compiler\tms470\lib folder and rebuild your project.

    4812.rts32earm9.lib

  • Hello AartiG,

    Both have failed to work for me.

    The "automatic way" gives me exactly the same error before when it failed to build the LIB, so it seems to me it could not find a right LIB with required functions.

    The "replace way" using the LIB you gave me an error below

    Description    Resource    Path    Location    Type

    #16001 object files have incompatible byte orderings    OMAPL138-DSP-LED-ARM             C/C++ Problem

    Any idea ?

    Thanks,

    ~Duy-Ky


  • Duy-Ky,

    Did you change any setings when you imported the project into CCSv5? I just downloaded and imported the project and was able to build it without any errors. I did not have to make any changes at all. I used the default ARM compiler version in CCS5, which is CGT 4.9.1.

    Here is the relevent output from the build console for the link step:

    'Building target: C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM/../../Debug/OMAPL138-DSP-LED-ARM.out'
    'Invoking: ARM Linker'
    "C:/CCStudio_v5.1.1.00031/ccsv5/tools/compiler/tms470/bin/cl470" -mv5e --abi=ti_arm9_abi -me -g --define="_DEBUG" --diag_warning=225 --display_error_number --obj_directory="C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM/../../Debug" -z --stack_size=0x2000 -m"C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM/../../Debug/OMAPL138-DSP-LED-ARM.map" --heap_size=0x2000 -i"C:/CCStudio_v5.1.1.00031/ccsv5/tools/compiler/tms470/lib" -i"C:/CCStudio_v5.1.1.00031/ccsv5/tools/compiler/tms470/include" -i"C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM" -i"C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM/../../ccs" --reread_libs --priority --warn_sections --rom_model -o "C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM/../../Debug/OMAPL138-DSP-LED-ARM.out"  "C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/src/linker.cmd" "C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/Debug/main.obj" "C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/Debug/boot.obj" -l"rts32earm9.lib"
    <Linking>
    warning: automatic library build: using library
       "C:/CCStudio_v5.1.1.00031/ccsv5/tools/compiler/tms470/lib/rts32earm9.lib"
       for the first time, so it must be built.  This may take a few minutes.
    "xxsqrt.h", line 45: warning: variable "origx" was declared but never referenced
    "xxsqrt.h", line 45: warning: variable "origx" was declared but never referenced
    "xxsqrt.h", line 45: warning: variable "origx" was declared but never referenced
    "xxfmod.h", line 84: warning: variable "ret" was declared but never referenced
    "xxfmod.h", line 84: warning: variable "ret" was declared but never referenced
    "xxfmod.h", line 84: warning: variable "ret" was declared but never referenced
    'Finished building target: C:/Work/Devices/OMAPL138/OMAPL138-DSP-LED-v4/OMAPL138-DSP-LED/ARM/ccs/OMAPL138-DSP-LED-ARM/../../Debug/OMAPL138-DSP-LED-ARM.out'
    ' '

    **** Build Finished ****

    I have zipped up the entire project folder and attached it here. Could you unzip and then import the CCSv5 project found in \OMAPL138-DSP-LED\ARM\ccs\OMAPL138-DSP-LED-ARM and see if it builds fine?

    2450.OMAPL138-DSP-LED.zip

  • Hello AartiG,

    No I did not change anything.

    What I did was to do legacy CCS v3 import.

    Thanks so much for your very great support, AartiG,

    ~Duy-Ky