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.

CCS/CCSTUDIO-WCS: Simplelink example does not build

Part Number: CCSTUDIO-WCS

Tool/software: Code Composer Studio

Hello

I tried to build different simplelink examples but I always get the same error message: "Build of generated source libraries failed: exit status = 2"

I was looking in the forum and I found different questions about the same topic, but I couldn't solve the problem.

Installed versions:

CCS: 7.1.0

Simplelink CC13xx SDK: 1.0.0.13

XDC Tools: 3.50.1.12

Windows 7 SP1 

**** Build of configuration Debug for project tirtos_builds_CC1350_LAUNCHXL_release_ccs ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all 
'Building file: ../release.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_01_12_core/xs" --xdcpath="C:/ti/simplelink_cc13x0_sdk_1_00_00_13/source;C:/ti/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1350F128 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.2.LTS" --compileOptions " -DDEVICE_FAMILY=cc13x0 " -v "../release.cfg"
#
# configuring release.xem3 from package/cfg/release_pem3.cfg ...
C:/ti/xdctools_3_50_01_12_core/xs -Dxdc.path="C:/ti/simplelink_cc13x0_sdk_1_00_00_13/source;C:/ti/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;C:/ti/xdctools_3_50_01_12_core/packages;.." -Dxdc.root=C:/ti/xdctools_3_50_01_12_core -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/ti/simplelink_cc13x0_sdk_1_00_00_13/source;C:/ti/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;C:/ti/xdctools_3_50_01_12_core/packages;..;C:/ti/xdctools_3_50_01_12_core;C:/ti/xdctools_3_50_01_12_core/etc" -Dxdc.bld.targets="" -DTOOLS=   xdc.cfg release.xem3 package/cfg/release_pem3.cfg package/cfg/release_pem3
generating custom ROM library makefile ... 
Starting build of library sources ...
    cd C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src
    C:/ti/xdctools_3_50_01_12_core/gmake.exe -f C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/makefile.libs GEN_SRC_DIR=C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src
making C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...
Build of libraries failed.
subdir_rules.mk:12: recipe for target 'build-62969583-inproc' failed
c:/temp/make10792-1.sh: 1: Syntax error: "(" unexpected
gmake: *** [C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_50_01_12_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Error 1
xdctools_3_50_01_12_core\gmake.exe: *** Deleting file `package/cfg/release_pem3.xdl'
xdctools_3_50_01_12_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.h'
xdctools_3_50_01_12_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.c'
js: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[2]: *** [build-62969583-inproc] Error 1
gmake[1]: *** [build-62969583] Error 2
gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.
gmake: *** [all] Error 2
subdir_rules.mk:9: recipe for target 'build-62969583' failed
makefile:127: recipe for target 'all' failed

**** Build Finished ****

  • Hi,

    Which projects did you try to build? I tested both the TI-RTOS bigtime and the rfpacketrx and they both built fine for me.

    Actually, I just spotted one difference: the companion project <tirtos_builds_CC1350_LAUNCHXL_release_ccs> was built with XDC tools 3.32.01.22.

    **** Build of configuration Debug for project tirtos_builds_CC1350_LAUNCHXL_release_ccs ****
    
    "C:\\CCSv7_1_0\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
    'Building file: ../release.cfg'
    'Invoking: XDCtools'
    "C:/CCSv7_1_0/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/source;C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages;C:/CCSv7_1_0/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1350F128 -r release -c "C:/CCSv7_1_0/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS" --compileOptions " -DDEVICE_FAMILY=cc13x0 " "../release.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring release.xem3 from package/cfg/release_pem3.cfg ...
    generating custom ROM library makefile ... 
    Starting build of library sources ...
    making C:/Users/a0356111/workspace_v7_1/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...
    gmake[1]: Entering directory `C:/Users/a0356111/workspace_v7_1/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios'
    clem3 C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages/ti/sysbios/BIOS.c ...
    asmem3 C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...
    asmem3 C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...
    asmem3 C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...
    asmem3 C:/ti/tirex-content/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...
    arem3 rom_sysbios.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...
    gmake[1]: Leaving directory `C:/Users/a0356111/workspace_v7_1/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios'
    Build of libraries done.
    clem3 package/cfg/release_pem3.c ...
    'Finished building: ../release.cfg'
    ' '
    gmake[1]: Nothing to be done for 'main-build'.
    
    **** Build Finished ****
    

    In this case, I would change the XDC tools of this project to match the version above (the SDK should have installed this). 

    Hope this helps,

    Rafael

  • Hi

    Thanks for your answer. I changed the XDC tools to the version 3.32.1.22. But still the error is the same.

    **** Build of configuration Debug for project tirtos_builds_CC1350_LAUNCHXL_release_ccs ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O 
    'Building file: ../release.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/simplelink_cc13x0_sdk_1_00_00_13/source;C:/ti/simplelink_cc13x0_sdk_1_00_00_13/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1350F128 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS" --compileOptions " -DDEVICE_FAMILY=cc13x0 " "../release.cfg"
    configuring release.xem3 from package/cfg/release_pem3.cfg ...
    generating custom ROM library makefile ... 
    Starting build of library sources ...
        cd C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src
        C:/ti/xdctools_3_32_01_22_core/gmake.exe -f C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/makefile.libs GEN_SRC_DIR=C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src
    making C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...
    Build of libraries failed.
    subdir_rules.mk:12: recipe for target 'build-62969583-inproc' failed
    C:/Users/scp/AppData/Local/Temp/make3340-1.sh: 1: Syntax error: "(" unexpected
    gmake: *** [C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_01_22_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
    
    js: "C:/ti/xdctools_3_32_01_22_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    xdctools_3_32_01_22_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Error 1
    xdctools_3_32_01_22_core\gmake.exe: *** Deleting file `package/cfg/release_pem3.xdl'
    xdctools_3_32_01_22_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.h'
    xdctools_3_32_01_22_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.c'
    js: "C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[2]: *** [build-62969583-inproc] Error 1
    gmake[1]: *** [build-62969583] Error 2
    gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.
    gmake: *** [all] Error 2
    subdir_rules.mk:9: recipe for target 'build-62969583' failed
    makefile:127: recipe for target 'all' failed
    
    **** Build Finished ****
    

    If I build the libraries manually with the following commando:

    cd C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src
    C:/ti/xdctools_3_32_01_22_core/gmake.exe -f C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src/makefile.libs GEN_SRC_DIR=C:/Users/scp/workspace_v7/tirtos_builds_CC1350_LAUNCHXL_release_ccs/src

    then the libraries are build without error.