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: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

Other Parts Discussed in Thread: CC2640R2F, SYSBIOS

Tool/software: Code Composer Studio

Hi The example project "tirtos_builds_CC2640R2_LAUNCHXL_release_ccs" meet the problem during the build.

I noticed that the "$<" missed in this command below, but instructions in troubleshoot didn't tell me how to add the "../filename.cfg" at the end of "${command} ${flags} ${inputs}" in Project Properties.

"C:/ti/xdctools_3_61_00_16_core/xs" --xdcpath="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source;C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS" --compileOptions " -DDeviceFamily_CC26X0R2 " "../release.cfg"

I didn't see any whitespace in my directory

Below is the history in console:

Building file: "../release.cfg"

Invoking: XDCtools

"C:/ti/xdctools_3_61_00_16_core/xs" --xdcpath="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source;C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS" --compileOptions " -DDeviceFamily_CC26X0R2 " "../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/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...

clem3 C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages/ti/sysbios/BIOS.c ...

Build of libraries failed.

subdir_rules.mk:12: recipe for target 'build-1046842913-inproc' failed

      0 [main] sh 612 sync_with_child: child 252(0x21C) died before initialization with status code 0xC0000142

     19 [main] sh 612 sync_with_child: *** child state waiting for longjmp

C:/Users/siyan/AppData/Local/Temp/make4644-3.sh: fork: Resource temporarily unavailable

gmake[1]: *** [makefile:61: rom_sysbios.obj] Error 128

gmake: *** [C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/makefile.libs:57: C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2

error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_61_00_16_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_61_00_16_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!

gmake.exe: *** [package.mak:202: package/cfg/release_pem3.xdl] Error 1

gmake.exe: *** Deleting file 'package/cfg/release_pem3.xdl'

gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.h'

gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.c'

js: "C:/ti/xdctools_3_61_00_16_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake[1]: *** [build-1046842913-inproc] Error 1

Building file: "../release.cfg"

Invoking: XDCtools

"C:/ti/xdctools_3_61_00_16_core/xs" --xdcpath="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source;C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS" --compileOptions " -DDeviceFamily_CC26X0R2 " "../release.cfg"

configuring release.xem3 from package/cfg/release_pem3.cfg ...

generating custom ROM library makefile ... 

Starting build of library sources ...

making C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...

clem3 C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages/ti/sysbios/BIOS.c ...

Build of libraries failed.

subdir_rules.mk:12: recipe for target 'build-1046842913-inproc' failed

      0 [main] sh 14416 sync_with_child: child 2456(0x214) died before initialization with status code 0xC0000142

     18 [main] sh 14416 sync_with_child: *** child state waiting for longjmp

C:/Users/siyan/AppData/Local/Temp/make2032-3.sh: fork: Resource temporarily unavailable

gmake[1]: *** [makefile:61: rom_sysbios.obj] Error 128

gmake: *** [C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/makefile.libs:57: C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2

error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_61_00_16_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_61_00_16_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!

xdctools_3_61_00_16_core\gmake.exe: *** [package.mak:202: package/cfg/release_pem3.xdl] Error 1

xdctools_3_61_00_16_core\gmake.exe: *** Deleting file 'package/cfg/release_pem3.xdl'

xdctools_3_61_00_16_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.h'

xdctools_3_61_00_16_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.c'

js: "C:/ti/xdctools_3_61_00_16_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-1046842913-inproc] Error 1

gmake[1]: *** [build-1046842913] Error 2

gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.

subdir_rules.mk:9: recipe for target 'build-1046842913' failed

makefile:127: recipe for target 'all' failed

gmake: *** [all] Error 2

**** Build Finished ****

Building file: "../release.cfg"Invoking: XDCtools"C:/ti/xdctools_3_61_00_16_core/xs" --xdcpath="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source;C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS" --compileOptions " -DDeviceFamily_CC26X0R2 " "../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/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...clem3 C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages/ti/sysbios/BIOS.c ...Build of libraries failed.subdir_rules.mk:12: recipe for target 'build-1046842913-inproc' failed      0 [main] sh 612 sync_with_child: child 252(0x21C) died before initialization with status code 0xC0000142     19 [main] sh 612 sync_with_child: *** child state waiting for longjmpC:/Users/siyan/AppData/Local/Temp/make4644-3.sh: fork: Resource temporarily unavailablegmake[1]: *** [makefile:61: rom_sysbios.obj] Error 128gmake: *** [C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/makefile.libs:57: C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_61_00_16_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_61_00_16_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!gmake.exe: *** [package.mak:202: package/cfg/release_pem3.xdl] Error 1gmake.exe: *** Deleting file 'package/cfg/release_pem3.xdl'gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.h'gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.c'js: "C:/ti/xdctools_3_61_00_16_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.gmake[1]: *** [build-1046842913-inproc] Error 1Building file: "../release.cfg"Invoking: XDCtools"C:/ti/xdctools_3_61_00_16_core/xs" --xdcpath="C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source;C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS" --compileOptions " -DDeviceFamily_CC26X0R2 " "../release.cfg"configuring release.xem3 from package/cfg/release_pem3.cfg ...generating custom ROM library makefile ... Starting build of library sources ...making C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...clem3 C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/kernel/tirtos/packages/ti/sysbios/BIOS.c ...Build of libraries failed.subdir_rules.mk:12: recipe for target 'build-1046842913-inproc' failed      0 [main] sh 14416 sync_with_child: child 2456(0x214) died before initialization with status code 0xC0000142     18 [main] sh 14416 sync_with_child: *** child state waiting for longjmpC:/Users/siyan/AppData/Local/Temp/make2032-3.sh: fork: Resource temporarily unavailablegmake[1]: *** [makefile:61: rom_sysbios.obj] Error 128gmake: *** [C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/makefile.libs:57: C:/Users/siyan/workspacev20/tirtos_builds_CC2640R2_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_61_00_16_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_61_00_16_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!xdctools_3_61_00_16_core\gmake.exe: *** [package.mak:202: package/cfg/release_pem3.xdl] Error 1xdctools_3_61_00_16_core\gmake.exe: *** Deleting file 'package/cfg/release_pem3.xdl'xdctools_3_61_00_16_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.h'xdctools_3_61_00_16_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file 'package/cfg/release_pem3.c'js: "C:/ti/xdctools_3_61_00_16_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-1046842913-inproc] Error 1gmake[1]: *** [build-1046842913] Error 2gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.subdir_rules.mk:9: recipe for target 'build-1046842913' failedmakefile:127: recipe for target 'all' failedgmake: *** [all] Error 2
**** Build Finished ****

  • Hi Xin,

    Do you have another shell in your path? Can you do a "echo %Path%" from a command prompt (I'm assuming you are on Windows). Do you see another shell in that path. If you do not, can you attach the results of the echo to this thread.

    Todd

  • Hi Todd

    Here is the result

    C:\Users\siyan\workspacev20>echo %Path%
    C:\Users\siyan\AppData\Local\Programs\Python\Python37-32\;
    C:\Python27\;
    C:\Users\siyan\AppData\Local\Programs\Python\Python37-32\Scripts;
    C:\Python27\Scripts;
    C:\Program Files\Espressif\ESP-IDF Tools\mconf-idf;
    C:\Program Files\Espressif\ESP-IDF Tools\tools\bin;
    C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
    C:\WinAVR-20100110\bin;
    C:\WinAVR-20100110\utils\bin;
    C:\TwinCAT\Common64;
    C:\TwinCAT\Common32;
    C:\WINDOWS\system32;
    C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
    C:\WINDOWS\System32\OpenSSH\;
    C:\etcher-cli;
    C:\MinGW\bin;
    C:\Users\siyan\AppData\Roaming\Python\Python37\Scripts;
    C:\Program Files\Git\cmd;
    C:\Program Files\nodejs\;
    C:\Program Files\CMake\bin;
    C:\Program Files\PuTTY\;
    C:\Strawberry\c\bin;
    C:\Strawberry\perl\site\bin;
    C:\Strawberry\perl\bin;
    C:\Program Files\dotnet\;
    C:\texlive\2019\bin\win32;
    C:\Users\siyan\.cargo\bin;
    C:\Users\siyan\AppData\Local\Programs\Python\Python37-32\Scripts\;
    C:\Users\siyan\AppData\Local\Programs\Python\Python37-32\;
    C:\Users\siyan\AppData\Local\Microsoft\WindowsApps;
    C:\Users\siyan\AppData\Local\Programs\Microsoft VS Code\bin;
    C:\etcher-cli;
    C:\Users\siyan\AppData\Roaming\npm;
    C:\Users\siyan\AppData\Local\Microsoft\WindowsApps;
    C:\MinGW\bin;
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64;
    C:\Users\siyan\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\;
    C:\Program Files\mosquitto\;
  • Hi Xin,

    I see a couple items that might include a shell (e.g. perl, python, MinGW). Can you remove those and see if the build works. For more details on this, please refer to https://e2e.ti.com/support/processors/f/791/p/926619/3423087#3423087

    Todd

  • Hi Todd

    Thank you, I finally found that the shell of WinAVR caused the error. After removing it, the build finished.