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.

CCSv5 - Cannot run program

Guru 10750 points

Hi,

I'm trying to build a project and I'm getting the below message, probably I didn't configured something correctly but what could it be...

Many thanks,

HR

"

**** Internal Builder is used for build               ****

$(shell echo -mv64+ > ccsCompiler.opt)

$(shell echo -g >> ccsCompiler.opt)

$(shell echo -O3 >> ccsCompiler.opt)

$(shell echo --relaxed_ansi >> ccsCompiler.opt)

$(shell echo --define=BOOST_NO_EXCEPTIONS --define=BOOST_NO_STD_LOCALE --define=TIDSP --define=_INLINE_IQMATH >> ccsCompiler.opt)

$(shell echo --include_path=C:/TI_CCS5.0/ccsv5/tools/compiler/c6000/include --include_path=D:/CCS5.0-Projects/Test/DSP/omap_app/omap_app/.gconf/omap_app --include_path=C:/TI_CCS5.0/ccsv5/xdais_7_20_00_07/packages/ti/xdais --include_path=/include --include_path=D:/CCS5.0-Projects/Test/DSP/Include --include_path=D:/CCS5.0-Projects/Test/DSP/ThirdParty/Include >> ccsCompiler.opt)

$(shell echo --diag_warning=225 >> ccsCompiler.opt)

$(shell echo --gen_func_subsections= >> ccsCompiler.opt)

$(shell echo --abi=coffabi >> ccsCompiler.opt)

$(shell echo --debug_software_pipeline >> ccsCompiler.opt)

$(shell echo -k >> ccsCompiler.opt)

$(shell echo --obj_directory=D:/CCS5.0-Projects/Test/DSP/BMO/Debug_DSP >> ccsCompiler.opt)

$(shell echo --asm_directory=D:/CCS5.0-Projects/Test/DSP/BMO/Debug_DSP_ASM >> ccsCompiler.opt)

$(shell echo ..\..\AOM.cpp >> ccsCompiler.opt)

C:/TI_CCS5.0/ccsv5/tools/compiler/c6000/bin/cl6x -@ccsCompiler.opt

Internal Builder: Cannot run program "$(shell": Launching failed

 

Build of selected resources is complete."

  • HR said:

    $(shell echo ..\..\AOM.cpp >> ccsCompiler.opt)

    C:/TI_CCS5.0/ccsv5/tools/compiler/c6000/bin/cl6x -@ccsCompiler.opt

    Internal Builder: Cannot run program "$(shell": Launching failed

    You can't have the name of the source file to compile inside the options file. The options file is only for build options. remove:

    HR said:
    $(shell echo ..\..\AOM.cpp >> ccsCompiler.opt)

    and then try:

    C:/TI_CCS5.0/ccsv5/tools/compiler/c6000/bin/cl6x -@ccsCompiler.opt ..\..\AOM.cpp

    Thanks

    ki

     

  • Ki,

    When I'm doing "Build Project" everything is working fine, the issue starts when I'm standing on a specific file and selecting "Build Selected File(s)", any definition differences between the two builds?

    Many Thanks,

    HR

  • I seem to have the same problem. My imported v4 project into v5 can build the project just fine but a single file get a similar error. Maybe this is a bug.

  • Which version of CCS v5 are you using? Also, Could you let me know parameters being passed to the compiler? i.e. when you do a full build could you capture single files output in build console?

    It should look something like this:

     

    'Building file: ../razed32.c'

    'Invoking: C6000 Compiler'

    "C:/CCSInstalls/CCSv5.0.1_31/ccsv5/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/CCSInstalls/CCSv5.0.1_31/ccsv5/tools/compiler/c6000/include"  --diag_warning=225 --preproc_with_compile --preproc_dependency="razed32.pp"  "../razed32.c"

    'Finished building: ../razed32.c'

  • Hi Martin,

    File compilation ---------------------------------------------

    **** Internal Builder is used for build               ****

    @echo Flags: -mv6400+ -g -O3 --relaxed_ansi --define="BOOST_NO_STD_LOCALE" --define="TIDSP" --define="_INLINE_IQMATH" --include_path="C:/TI_CCS5/ccsv5/tools/compiler/c6000/include" --include_path="E:/CCSv5_work/test/DSP/omap_app/omap_app/Debug" --include_path="E:/CCSv5_work/test/DSP/Motion/Motion/Debug" --include_path="C:/TI_CCS5/ccsv5/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/TI_CCS5/ccsv5/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/TI_CCS5/ccsv5/xdais_7_20_00_07/packages/ti/xdais" --include_path="/include" --include_path="E:/CCSv5_work/test/DSP/Include" --include_path="E:/CCSv5_work/test/DSP/ThirdParty/Include"  --diag_warning=225 --abi=coffabi --debug_software_pipeline -k --obj_directory="E:/CCSv5_work/test/DSP/Motion/Debug_DSP"  --asm_directory="E:/CCSv5_work/test/DSP/Motion/Debug_DSP_ASM" 

    $(shell echo -mv6400+ > ccsCompiler.opt)

    $(shell echo -g >> ccsCompiler.opt)

    $(shell echo -O3 >> ccsCompiler.opt)

    $(shell echo --relaxed_ansi >> ccsCompiler.opt)

    $(shell echo --define=BOOST_NO_EXCEPTIONS --define=BOOST_NO_STD_LOCALE --define=TIDSP --define=_INLINE_IQMATH >> ccsCompiler.opt)

    $(shell echo --include_path=C:/TI_CCS5/ccsv5/tools/compiler/c6000/include --include_path=E:/CCSv5_work/test/DSP/omap_app/omap_app/Debug --include_path=E:/CCSv5_work/test/DSP/Motion/Motion/Debug --include_path=C:/TI_CCS5/ccsv5/bios_5_41_10_36/packages/ti/bios/include --include_path=C:/TI_CCS5/ccsv5/bios_5_41_10_36/packages/ti/rtdx/include/c6000 --include_path=C:/TI_CCS5/ccsv5/xdais_7_20_00_07/packages/ti/xdais --include_path=/include --include_path=E:/CCSv5_work/test/DSP/Include --include_path=E:/CCSv5_work/test/DSP/ThirdParty/Include >> ccsCompiler.opt)

    $(shell echo --diag_warning=225 >> ccsCompiler.opt)

    $(shell echo --abi=coffabi >> ccsCompiler.opt)

    $(shell echo --debug_software_pipeline >> ccsCompiler.opt)

    $(shell echo -k >> ccsCompiler.opt)

    $(shell echo --obj_directory=E:/CCSv5_work/test/DSP/Motion/Debug_DSP >> ccsCompiler.opt)

    $(shell echo --asm_directory=E:/CCSv5_work/test/DSP/Motion/Debug_DSP_ASM >> ccsCompiler.opt)

    $(shell echo ..\..\TestProgram.cpp >> ccsCompiler.opt)

    ${CG_TOOL_ROOT}/bin/cl6x -@ccsCompiler.opt

    Internal Builder: Cannot run program "@echo": Launching failed

    Error: Program "@echo" is not found in PATH

    Project compilation -------------------------------------------------------

    C:\TI_CCS5\ccsv5\utils\gmake\gmake -k all 

    'Building file: E:/CCSv5_work/test/DSP/Motion/TestProgram.cpp'

    'Invoking: C6000 Compiler'

    "C:/TI_CCS5/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6400+ -g -O3 --relaxed_ansi --define="BOOST_NO_STD_LOCALE" --define="TIDSP" --define="_INLINE_IQMATH" --include_path="C:/TI_CCS5/ccsv5/tools/compiler/c6000/include" --include_path="E:/CCSv5_work/test/DSP/omap_app/omap_app/Debug" --include_path="E:/CCSv5_work/test/DSP/Motion/Motion/Debug" --include_path="C:/TI_CCS5/ccsv5/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/TI_CCS5/ccsv5/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/TI_CCS5/ccsv5/xdais_7_20_00_07/packages/ti/xdais" --include_path="/include" --include_path="E:/CCSv5_work/test/DSP/Include" --include_path="E:/CCSv5_work/test/DSP/ThirdParty/Include"  --diag_warning=225 --abi=coffabi --debug_software_pipeline -k --obj_directory="E:/CCSv5_work/test/DSP/Motion/Debug_DSP"  --asm_directory="E:/CCSv5_work/test/DSP/Motion/Debug_DSP_ASM"  --preproc_with_compile --preproc_dependency="TestProgram.pp"  "E:/CCSv5_work/test/DSP/Motion/TestProgram.cpp"

    'Finished building: E:/CCSv5_work/test/DSP/Motion/TestProgram.cpp'

    BR,

    HR

  • Hi HR, 

    I have been trying to reproduce this issue on my end without much luck. Would you be able to send me ccsCompiler.opt file as well? It should contain all compiler options configured in your project. This file is automatically generated when command line length goes over a certain limit. CCS does this to workaround a command line length limitations. Based on the error is looks like that file contains some invalid commends. The .opt file should exist in your projects build configuration directory (e.g. ProjectRoot\Debug) . 

     

    Martin

     

  • Hi Martin,

    I have seen the ccsCompiler.opt is file specific but there are files which don't have this file, what is the command line length limit? can I send you the files in private?

    Many thanks,

    HR

  • Hi HR, 

    I am using CCS v5.0.1 to reproduce your issue, for me when .opt file is generated it is pre-pended with source file name. e.g. main_ccsCompiler.opt. However, when I build a specific file it does not seem to be using .opt file. I'll send you a friend request and then you should be able to send me this file privately. 

     

    Martin

     

  • I may have a related issue only present in v5 when trying to build individual files in my project5: Re: CCSv5 - Cannot run program

  • I am having nearly the same problem.  The internal builder has decided that the linker command line is too long to pass directly, and it looks like it is trying to create an options file to pass off to the linker.  However, it is trying to execute the shell command "@echo" instead of "echo".  Of course, this fails because @echo doesn't exist.

    The last command in the CDT build console is:

    @echo Flags: --define=LARGE_MODEL --define=_DEBUG --diag_warning=225 --display_error_number --large_memory_model --no_fast_branch --silicon_version=28 --opt_level=2 -z --map_file="BigBlue_CSB_ccsv5evaluation.map" --reread_libs --rom_model --search_path="C:/Program Files (x86)/Texas Instruments/C2000 Code Generation Tools 4.1.4/lib" --search_path="C:/Program Files (x86)/Texas Instruments/C2000 Code Generation Tools 4.1.4/include" --search_path="C:/Users/E0085741/workspace_v5_1/BigBlue_CSB_ccsv5evaluation/Source/Src/common/lib" --search_path="C:/Program Files (x86)/Texas Instruments/bios_5_31_02/packages/ti/rtdx/lib/c2000" --search_path="C:/Program Files (x86)/Texas Instruments/bios_5_31_02/packages/ti/bios/lib" --warn_sections
        $(shell echo --define=LARGE_MODEL --define=_DEBUG --diag_warning=225 --display_error_number --large_memory_model --no_fast_branch --silicon_version=28 --opt_level=2 -z --map_file=BigBlue_CSB_ccsv5evaluation.map --reread_libs --rom_model --search_path=C:/Program Files (x86)/Texas Instruments/C2000 Code Generation Tools 4.1.4/lib --search_path=C:/Program Files (x86)/Texas Instruments/C2000 Code Generation Tools 4.1.4/include --search_path=C:/Users/E0085741/workspace_v5_1/BigBlue_CSB_ccsv5evaluation/Source/Src/common/lib --search_path=C:/Program Files (x86)/Texas Instruments/bios_5_31_02/packages/ti/rtdx/lib/c2000 --search_path=C:/Program Files (x86)/Texas Instruments/bios_5_31_02/packages/ti/bios/lib --warn_sections > ccsLinker.opt)
        $(shell echo Source\Src\ui_can_interface.obj >> ccsLinker.opt)
        $(shell echo Source\Src\ui_board_controller.obj >> ccsLinker.opt)
        $(shell echo Source\Src\tempGlobal.obj >> ccsLinker.opt)
        $(shell echo Source\Src\qsqrt.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Xslot.obj >> ccsLinker.opt)
        $(shell echo Source\Src\XcpUtils.obj >> ccsLinker.opt)
        $(shell echo Source\Src\XcpMemCheck.obj >> ccsLinker.opt)
        $(shell echo Source\Src\XcpMem.obj >> ccsLinker.opt)
        $(shell echo Source\Src\XcpDef.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Xcp.obj >> ccsLinker.opt)
        $(shell echo Source\Src\XCpGetDeviceData.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Version.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Utils.obj >> ccsLinker.opt)
        $(shell echo Source\Src\UPSTest.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Spanish.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Russian.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Portuguese.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Mandarin.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Korean.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Italian.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_German.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_French.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_English.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text_Chintrad.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Text.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SystemTrapFunc.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SystemTrap.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SystemTimer.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SymCrypt.obj >> ccsLinker.opt)
        $(shell echo Source\Src\StatusBits.obj >> ccsLinker.opt)
        $(shell echo Source\Src\StackCalc.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Spi_Drv.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SerialPortDrivers.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Screens_Mandarin.obj >> ccsLinker.opt)
        $(shell echo Source\Src\ScreensDef.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Screens.obj >> ccsLinker.opt)
        $(shell echo Source\Src\ScreenFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SPModem.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SPI_PORT.obj >> ccsLinker.opt)
        $(shell echo Source\Src\SPEcho.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Rtc.obj >> ccsLinker.opt)
        $(shell echo Source\Src\PortHandler.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Port.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Pld.obj >> ccsLinker.opt)
        $(shell echo Source\Src\PeriodicFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\ParameterUtils.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Nvram.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Spanish.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Russian.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Portuguese.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Mandarin.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Korean.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Italian.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_German.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_French.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_English.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Config.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Text_Chintrad.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_LookupTable.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Funcs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\NB_Config.obj >> ccsLinker.opt)
        $(shell echo Source\Src\MiniCsbRam.obj >> ccsLinker.opt)
        $(shell echo Source\Src\MimicGraphics.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Meters.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Main.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Log_Queue.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Log_MaxCurrent.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Log_Kw.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Log_BattDis.obj >> ccsLinker.opt)
        $(shell echo Source\Src\LcdTranslationLayer.obj >> ccsLinker.opt)
        $(shell echo Source\Src\LcdDrivers.obj >> ccsLinker.opt)
        $(shell echo Source\Src\InitFlash.obj >> ccsLinker.opt)
        $(shell echo Source\Src\IdleFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\HQ_Funcs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Gpio.obj >> ccsLinker.opt)
        $(shell echo Source\Src\FilteredBits.obj >> ccsLinker.opt)
        $(shell echo Source\Src\ExtFlash.obj >> ccsLinker.opt)
        $(shell echo Source\Src\EnBIOSint.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom_map.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom_Utils.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom_Sync.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom_Init.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom_Funcs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom_Drv.obj >> ccsLinker.opt)
        $(shell echo Source\Src\EepromTskFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Eeprom.obj >> ccsLinker.opt)
        $(shell echo Source\Src\ECanRcv.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DisplayUtils.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Display.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DebuggerUtils.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DebuggerScreens.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DebuggerFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DebuggerBlocks.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Debugger.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_usDelay.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_Xintf.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_SysCtrl.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_PieVect.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_PieCtrl.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_GlobalVariableDefs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_ECan.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_DefaultIsr.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_CpuTimers.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP281x_CodeStartBranch.obj >> ccsLinker.opt)
        $(shell echo Source\Src\DSP2812_RamClear.obj >> ccsLinker.opt)
        $(shell echo Source\Src\CanTx.obj >> ccsLinker.opt)
        $(shell echo Source\Src\CanRWFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\CanQues.obj >> ccsLinker.opt)
        $(shell echo Source\Src\CanFuncs.obj >> ccsLinker.opt)
        $(shell echo Source\Src\CRC.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Bridge.obj >> ccsLinker.opt)
        $(shell echo Source\Src\BootloaderAPI.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Bld_Alarms.obj >> ccsLinker.opt)
        $(shell echo Source\Src\BattTest.obj >> ccsLinker.opt)
        $(shell echo Source\Src\Ack_Nodes.obj >> ccsLinker.opt)
        $(shell echo Source\Src\AT49xV2048A.obj >> ccsLinker.opt)
        $(shell echo Csbcfg.obj >> ccsLinker.opt)
        $(shell echo Csbcfg_c.obj >> ccsLinker.opt)
        $(shell echo ..\Source\Src\common\lib\IQmath.lib >> ccsLinker.opt)
        $(shell echo ..\CustomMemSects.cmd >> ccsLinker.opt)
        $(shell echo Csbcfg.cmd >> ccsLinker.opt)
        $(shell echo --library=${workspace_loc:/${ProjName}/Source/Src/common/lib/IQmath.lib} >> ccsLinker.opt)
        $(shell echo --library=rts2800_ml.lib >> ccsLinker.opt)
        ${CG_TOOL_ROOT}/bin/cl2000 -@ccsLinker.opt -o BigBlue_CSB_ccsv5evaluation.out
    Internal Builder: Cannot run program "@echo": Launching failed