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.

Why there is such a build warning in the example project?

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I know CCS 3.1 is out of date. I run DDK just for to play with the old DSK6713 here. The device driver project (dsk6713_67.prj) can be build, but it is not for the application project (tsk_audio_67.prj). When I build the project, there are error messages, please see the picture below. What is wrong with the .tcf file? It is in the Documents folder as the project is loaded. I do not modify anything yet.

Thanks.

 

  • Hello,

    Robert W said:
    but it is not for the application project (tsk_audio_67.prj).

    Looks like this project is a BIOS 5.x project based on the tcf file. I see that the tcf file is in the 'Documents' folder. This means that CCS doesn't recognize it. I think CCSv3.1 comes with BIOS 4.x. A BIOS tcf file is for BIOS 5.x. If you did not install BIOS 5.x or configure CCS to use a BIOS 5.x install, this would explain the error.

    You can get BIOS 5.x here:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/dspbios/5_33_06/index_FDS.html

    It says it is for CCSv3.3 but it will probably work for 3.1.

    Thanks

    ki

  • Hi,

    What settings are still wrong? Please see below new error messages.

     

    Thanks.

     

    --------------------------  tsk_audio_67.pjt - Debug  --------------------------
    [tsk_audio_67.tcf] "C:\CCStudio_v3.1\bios_5_33_06\xdctools\tconf" -b -Dconfig.importPath=".;../;C:/CCStudio_v3.1/bios_5_33_06/packages;" tsk_audio_67.tcf

    [tsk_audio.c] "C:\CCStudio_v3.1\c6000\cgtools\bin\cl6x" -g -pdr -ea.s67 -eo.o67 -fr"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug" -i"." -i"c:/CCStudio_v3.1/c6000/csl/include" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/shared" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/dsk6713_edma_aic23" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio" -d"CHIP_6713" -mi10 -ml0 -mv6700 -@"dsk6713/Debug.lkf" "tsk_audio.c"

    [codec_devParams.c] "C:\CCStudio_v3.1\c6000\cgtools\bin\cl6x" -g -pdr -ea.s67 -eo.o67 -fr"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug" -i"." -i"c:/CCStudio_v3.1/c6000/csl/include" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/shared" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/dsk6713_edma_aic23" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio" -d"CHIP_6713" -mi10 -ml0 -mv6700 -@"Debug.lkf" "codec_devParams.c"

    [tsk_audio_67cfg.s62] "C:\CCStudio_v3.1\c6000\cgtools\bin\cl6x" -g -pdr -ea.s67 -eo.o67 -fr"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug" -i"." -i"c:/CCStudio_v3.1/c6000/csl/include" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/shared" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/dsk6713_edma_aic23" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio" -d"CHIP_6713" -mi10 -ml0 -mv6700 -@"Debug.lkf" "tsk_audio_67cfg.s62"

    [tsk_audio_67cfg_c.c] "C:\CCStudio_v3.1\c6000\cgtools\bin\cl6x" -g -pdr -ea.s67 -eo.o67 -fr"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug" -i"." -i"c:/CCStudio_v3.1/c6000/csl/include" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/shared" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/dsk6713_edma_aic23" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio" -d"CHIP_6713" -mi10 -ml0 -mv6700 -@"Debug.lkf" "tsk_audio_67cfg_c.c"

    [Linking...] "C:\CCStudio_v3.1\c6000\cgtools\bin\cl6x" -@"Debug.lkf"
    <Linking>

    undefined                        first referenced
     symbol                              in file
    ---------                        ----------------
    __strasgi                        C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/sioboth.a67
    >>   error: symbol referencing errors -
                'C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug/tsk_audio_67.out' not built


    >> Compilation failure

    Build Complete,
      2 Errors, 0 Warnings, 0 Remarks.

  •  Hi,

     I find the cause and solution of my last question. But I do not know how to upgrade the compiler to 6.0.x?

    Thanks.

     ...............

    Two solutions exist. One: Upgrade from compiler version 5.1.X to 6.0.X (or later). Two: Change to using an older vendor library that was built with compiler version 5.1.X (or earlier).

  • Robert W said:
     I find the cause and solution of my last question. But I do not know how to upgrade the compiler to 6.0.x?

    You can get it here:

    https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm#C6000

    And configure CCSv3 to use it by following the steps listed here:

    http://processors.wiki.ti.com/index.php/Compiler_Installation_and_Selection#CCStudio_3.x

    Thanks

    ki

  • Hi,

    After I download and install CGT, it has this error when building as shown below dot line. I attach the folder path as well.

     

    How to solve this?

    Thanks again.

    ...............................

    --------------------------  tsk_audio_67.pjt - Debug  --------------------------
    [tsk_audio_67cfg.s62] "C:\ti\ccsv5\tools\compiler\c6000\bin\cl6x" -g -pdr -ea.s67 -eo.o67 -fr"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug" -i"." -i"c:/CCStudio_v3.1/c6000/csl/include" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/shared" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/dsk6713_edma_aic23" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio" -d"CHIP_6713" -mi10 -ml0 -mv6700 -@"Debug.lkf" "tsk_audio_67cfg.s62"

    [tsk_audio_67cfg_c.c] "C:\ti\ccsv5\tools\compiler\c6000\bin\cl6x" -g -pdr -ea.s67 -eo.o67 -fr"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/debug" -i"." -i"c:/CCStudio_v3.1/c6000/csl/include" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/shared" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/dsk6713_edma_aic23" -i"C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio" -d"CHIP_6713" -mi10 -ml0 -mv6700 -@"Debug.lkf" "tsk_audio_67cfg_c.c"

    [Linking...] "C:\ti\ccsv5\tools\compiler\c6000\bin\cl6x" -@"Debug.lkf"
    <Linking>
    warning: automatic library build: using library
       "C:/ti/ccsv5/tools/compiler/c6000/lib/rts6700.lib" for the first time, so it
       must be built.  This may take a few minutes.
    >> ERROR: mklib: could not find program "sh", required for building libraries.  Modify the PATH environment variable to contain a directory containing this program.
    warning: automatic library build: using library
       "C:\ti\ccsv5\tools\compiler\c6000\lib\rts6700.lib" for the first time, so it
       must be built.  This may take a few minutes.
    >> ERROR: mklib: could not find program "sh", required for building libraries.  Modify the PATH environment variable to contain a directory containing this program.
    warning: automatic library build: using library
       "C:\ti\ccsv5\tools\compiler\c6000\lib\rts6700.lib" for the first time, so it
       must be built.  This may take a few minutes.
    >> ERROR: mklib: could not find program "sh", required for building libraries.  Modify the PATH environment variable to contain a directory containing this program.
    error: cannot find file "rts6700.lib"

     undefined         first referenced                                                                            
      symbol               in file                                                                                 
     ---------         ----------------                                                                            
     __register_lock   C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/bios.a67<tsk_stup.o67>                   
     __register_unlock C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/bios.a67<tsk_stup.o67>                   
     __strasg          C:\CCStudio_v3.1\ddk_1_20\packages\ti\bios\drivers\examples\audio\dsk6713\debug\tsk_audio.o67
     __strasgi         C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/sioboth.a67<sio_crea.o67>                
     _atexit           C:/CCStudio_v3.1/bios_5_33_06/packages/ti/rtdx/lib/c6000/rtdx.lib<rtdx_mon.o62>             
     _memcpy           C:/CCStudio_v3.1/bios_5_33_06/packages/ti/rtdx/lib/c6000/rtdx.lib<buffer1.o62>              
     _memset           C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/bios.a67<mem_vall.o67>                   

    error: unresolved symbols remain
    error: errors encountered during linking;
       "C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/d
       ebug/tsk_audio_67.out" not built

    >> Compilation failure

    Build Complete,
      4 Errors, 3 Warnings, 0 Remarks.

  • There is a lot going on here. First off, your project is using the compiler in CCSv5. I'm not sure how you got CCS to call the compiler that comes with v5 since it doesn't have the hooks to work with v3.

    Second, the linker errors is because you aren't linking in the run time library for C67x. That library is not being linked in because the CCS failed to build the run-time library.

    I recommend you download a version of the compiler that will work with v3 (from the url I send you) and try it again

    Thanks

    ki

  • Hi,

    I resolved last problem (sh path). New problems emerge.

    My CGT installation has its default installation path, see below picture.

     

    When I build the project, the error messages are:

    --------------------------  tsk_audio_67.pjt - Debug  --------------------------
    [Linking...] "C:\ti\ccsv5\tools\compiler\c6000\bin\cl6x" -@"Debug.lkf"
    <Linking>
    warning: automatic library build: using library
       "C:/ti/ccsv5/tools/compiler/c6000/lib/rts6700.lib" for the first time, so it
       must be built.  This may take a few minutes.
    "c:/docume~1/hp_pro~1/locals~1/temp/ti_mkl~4/obj/xsinh.asm", ERROR!  :
     [E1000]
             Unable to open temp macro library: Permission denied

    >> Compilation failure
    gmake.exe: *** [c:/docume~1/hp_pro~1/locals~1/temp/ti_mkl~4/obj/xsinh.obj] Error 1
    gmake.exe: *** Waiting for unfinished jobs....
    >> ERROR: mklib: gmake error during rts6700.lib build
    warning: automatic library build: using library
       "C:\ti\ccsv5\tools\compiler\c6000\lib\rts6700.lib" for the first time, so it
       must be built.  This may take a few minutes.
    "c:/docume~1/hp_pro~1/locals~1/temp/ti5f96~1/obj/dtos.asm", ERROR!  :
     [E1000]
             Unable to open temp macro library: Permission denied

    >> Compilation failure
    gmake.exe: *** [c:/docume~1/hp_pro~1/locals~1/temp/ti5f96~1/obj/dtos.obj] Error 1
    gmake.exe: *** Waiting for unfinished jobs....
    >> ERROR: mklib: gmake error during rts6700.lib build
    warning: automatic library build: using library
       "C:\ti\ccsv5\tools\compiler\c6000\lib\rts6700.lib" for the first time, so it
       must be built.  This may take a few minutes.
    "c:/docume~1/hp_pro~1/locals~1/temp/tic813~1/obj/_printfi_nf.asm", ERROR!  :
     [E1000]
             Unable to open temp macro library: Permission denied

    >> Compilation failure
    gmake.exe: *** [c:/docume~1/hp_pro~1/locals~1/temp/tic813~1/obj/_printfi_nf.obj] Error 1
    gmake.exe: *** Waiting for unfinished jobs....
    >> ERROR: mklib: gmake error during rts6700.lib build
    error: cannot find file "rts6700.lib"

     undefined         first referenced                                                                            
      symbol               in file                                                                                 
     ---------         ----------------                                                                            
     __register_lock   C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/bios.a67<tsk_stup.o67>                   
     __register_unlock C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/bios.a67<tsk_stup.o67>                   
     __strasg          C:\CCStudio_v3.1\ddk_1_20\packages\ti\bios\drivers\examples\audio\dsk6713\debug\tsk_audio.o67
     __strasgi         C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/sioboth.a67<sio_crea.o67>                
     _atexit           C:/CCStudio_v3.1/bios_5_33_06/packages/ti/rtdx/lib/c6000/rtdx.lib<rtdx_mon.o62>             
     _memcpy           C:/CCStudio_v3.1/bios_5_33_06/packages/ti/rtdx/lib/c6000/rtdx.lib<buffer1.o62>              
     _memset           C:/CCStudio_v3.1/bios_5_33_06/packages/ti/bios/lib/bios.a67<mem_vall.o67>                   

    error: unresolved symbols remain
    error: errors encountered during linking;
       "C:/CCStudio_v3.1/ddk_1_20/packages/ti/bios/drivers/examples/audio/dsk6713/d
       ebug/tsk_audio_67.out" not built

    >> Compilation failure

    Build Complete,
      7 Errors, 3 Warnings, 0 Remarks.

    ........................................

    What is wrong now?

    Regards,

     

  • I also feel bizzare. I download cgt 6.1.22, please see below picture the selected item in different color. I install it. Run component manager. It shows C6000 CGT 7.3.1. I check it. Rerun CCS3.1. Those errors pop.

    My question is: my download6.1.22 fow windows is correct, or not? Thanks.

     

     

  • Robert W said:
    What is wrong now?

    there is some permissions problem. Do you have administrator permissions to your PC? Newer version of the compiler do not come with the rts lib. It gets built by CCS when needed that first time and that is failing right now. Also make sure you have the TEMP and TMP environment variables defined.

    What is the exact version of the compiler that is being used (in your v5 installation)?

    Thanks

    ki

  • Robert W said:

    I also feel bizzare. I download cgt 6.1.22, please see below picture the selected item in different color. I install it. Run component manager. It shows C6000 CGT 7.3.1. I check it. Rerun CCS3.1. Those errors pop.

    My question is: my download6.1.22 fow windows is correct, or not? Thanks.

    I tried it out also and I see that there is a bug with the install. the compiler.reg file is empty. This file is supposed to add registry entries to the registry so CCSv3 can find the compiler install.

    v6.1.21 looks ok. I don't know if you want to try that one. But the compiler.reg file looks ok with that install.

    ki 

  • Excuse me I mix up some information. There was a CCS v5 in this computer. I have uninstalled it to avoid conflicts. I downloaded cgt6.1.22, installed it. As you saw, the file compiler size is zero. The Component Manager does not show cgt 6.1.22 at all. I also installed cgt6.1.22 at CCStudio_v3.1 folder. Component Manager does not show cgt6.1.22 either. Why the cgt 6.1.22 installation fails as compiler has 0 size?

     

            

    Thanks.

  • CCS v5 has been uninstalled. Why cgt 7.2.1 still shows in Component Manager? It matters cgt 6.1.22 unseccessful installation?

  • It can be seen there is no CCSv5 at C:\Program Files\Texas Instruments\ folder, why Component Manager still shows CGT 7.2.1 is at that folder?

     

     

  • Can I manually modifiy Component Manager file path info to correct it (to remove cgt 7.2.1)? Thanks.

  • Robert W said:
    Why the cgt 6.1.22 installation fails as compiler has 0 size?

    This is a bug of some sort. 6.1.21 does not have this bug.

  • Robert W said:
    CCS v5 has been uninstalled. Why cgt 7.2.1 still shows in Component Manager?

    Because while the files are not there anymore, I would guess that the entries in the registry are still there. it is the registry that the component manager reads. During uninstall, probably just the files were removed. You need to explicitly run "RemoveRegistryKeys.exe" remove the registry entries.

  • You will need to modify your registry. What Windows OS are you using?

  • This is Windows XP (French, Home version) OS. Thanks.

  • Robert W said:
    This is Windows XP (French, Home version) OS. Thanks.

    For XP, go to your registry and remove the below entry (you can click on the image to make it bigger):

    Note that your path to the compiler may look a bit different (C:\ti\ccsv5 vs C:\ccs\ccsv5)

  • After I remove the registry as you show me, Component Manager's Build tools does not have CGT7.1.22. After I reboot, I uninstall cgt 6. Reboot again, I install cgt6. The problem is that the file compiler size is still 0. I feel the installation seems too short (I see it gathers information, preparing uninstall, quickly finishes installation). Component Manager Build tool still shows only cgt 5.1.

    How to make a successful cgt6 installation now?

    Thanks again.

  • Robert W said:
    How to make a successful cgt6 installation now?

    It's a bug. The file that comes with the install is bad. The only way to fix it is to manually edit the registry.

    I recommend you try downloading and installing the version before that one. That install of the compiler comes with the correct file.

  • Hi,

    CGT6.1.21 has been successfully installed. The previous projects all can be built now. Thanks for step by step assisstance.