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/TMS320C6748: Can not build helloworld example in c6748 nsp

Genius 13655 points
Part Number: TMS320C6748
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hello Champs,

Customer installed NDK, NSP as follows. 

                    D:\ti\nsp_1_10_03_15
                    D:\ti\ndk_2_25_00_09
                    D:\ti\bios_6_35_04_50
                    D:\ti\xdctools_3_25_03_72

He failed to build the D:\ti\nsp_1_10_03_15\packages\ti\ndk\examples\ndk_evm6748_elf_helloWorld in CCS v5.5. 

'Building target: ndk_evm6748_elf_helloWorld.out'
'Invoking: C6000 Linker'
"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=eabi -g --display_error_number --diag_warning=225 -z -m"ndk_evm6748_elf_helloWorld.map" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --diag_warning=225 --warn_sections --xml_link_info="ndk_evm6748_elf_helloWorld_linkInfo.xml" --rom_model -o "ndk_evm6748_elf_helloWorld.out" -l"./configPkg/linker.cmd"  "./udpHello.obj" "./netHooks.obj" "./helloWorld.obj" "./evminit.obj" "./emacHooks.obj" -l"libc.a" -l"D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674"
<Linking>
 undefined                       first referenced                                                    
  symbol                             in file                                                         
 ---------                       ----------------                                                    
 ti_sysbios_knl_Semaphore_create D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<task.oe674>    
 ti_sysbios_knl_Semaphore_delete D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<semaphore.oe674>
 ti_sysbios_knl_Task_create      D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<task.oe674>    
 ti_sysbios_knl_Task_delete      D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<task.oe674>    
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking;
   "ndk_evm6748_elf_helloWorld.out" not built
>> Compilation failure
gmake: *** [ndk_evm6748_elf_helloWorld.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****

He had added the os.ae674 library to project. 

Is there something else he missed to configure?

Thanks.

Rgds
Shine

  • Shine said:
    undefined                       first referenced                                                    
      symbol                             in file                                                         
     ---------                       ----------------                                                    
     ti_sysbios_knl_Semaphore_create D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<task.oe674>    
     ti_sysbios_knl_Semaphore_delete D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<semaphore.oe674>
     ti_sysbios_knl_Task_create      D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<task.oe674>    
     ti_sysbios_knl_Task_delete      D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674<task.oe674>    
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking;
       "ndk_evm6748_elf_helloWorld.out" not built
    >> Compilation failure
    gmake: *** [ndk_evm6748_elf_helloWorld.out] Error 1
    gmake: Target `all' not remade because of errors.
    **** Build Finished ****

    He had added the os.ae674 library to project. 

    Is there something else he missed to configure?

    The os.ae674 library is not the one that contains the ti_sysbios_knl_Task_*() and ti_sysbios_knl_Semaphore_*() function definitions.  The SYS/BIOS library contains these symbols.

    Your customer shouldn't need to manually add

    -l"D:\ti\ndk_2_25_00_09\packages\ti\ndk\os\lib\os.ae674"

    to the command line.  That library reference is contained in the configPkg/linker.cmd file.  The SYS/BIOS library should also be referenced in the configPkg/linker.cmd file.  Since these undefined references are cropping up, I suspect that they don't have that SYS/BIOS reference.

    In the project's Properties, there is a RTSC tab on the General page.  That tab contains a "Products and Repositories" tab, and in that tab is a list of products and repositories.  Does the customer have a SYS/BIOS entry checked?

    Regards,

    - Rob