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.

xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

Other Parts Discussed in Thread: CC3200SDK, CC3200, SYSBIOS, CC2650

Hi

I have installed CCS v6.0 and was working fine but then updated to   CCS 6.1.

Now i am not able to run the CCS Project0 for pinging the Wlan station.

So uninstalled CCS6.1 deleted all the files from C drive, run CC cleaner.

Then installed CCS6.1 but again the same issue.

Unable to resolve it,  checked the forum but no proper issue resolution.

I even disabled the antivirus but same issue.

I have installed CCS6.0 again but didnt worked please guide!!!!

Please find the snap shots for the properties for the ti_rtos_config

**** Build of configuration Default for project ti_rtos_config ****

"C:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
'Building target: configPkg/linker.cmd'
'Invoking: XDCtools'
"C:/TI/xdctools_3_31_01_33_core/xs" --xdcpath="C:/TI/ccsv6/ccs_base;C:/TI/tirtos_simplelink_2_13_01_09/packages;C:/TI/tirtos_simplelink_2_13_01_09/products/bios_6_42_00_08/packages;C:/TI/tirtos_simplelink_2_13_01_09/products/uia_2_00_02_39/packages;C:/TI/tirtos_simplelink_2_13_01_09/products/bios_6_40_03_39/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.simplelink:CC3200 -r release -c "C:/TI/ccsv6/tools/compiler/ti-cgt-arm_5.2.4" C:/TI/CC3200SDK_1.1.0/cc3200-sdk/ti_rtos/ti_rtos_config/app.cfg
configuring app.xem4 from package/cfg/app_pem4.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/TI/CC3200SDK_1.1.0/cc3200-sdk/ti_rtos/ti_rtos_config/src/sysbios/sysbios.aem4 ...
gmake[1]: Entering directory `C:/TI/CC3200SDK_1.1.0/cc3200-sdk/ti_rtos/ti_rtos_config/src/sysbios'
C:\TI\CC3200SDK_1.1.0\cc3200-sdk\ti_rtos\ti_rtos_config\src\sysbios\sysbios.aem4
The process cannot access the file because it is being used by another process.
arem4 BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...
--> error: Cannot create new archive
gmake[1]: *** [sysbios.aem4] Error 1
gmake: *** [C:/TI/CC3200SDK_1.1.0/cc3200-sdk/ti_rtos/ti_rtos_config/src/sysbios/sysbios.aem4] Error 2
gmake[1]: Leaving directory `C:/TI/CC3200SDK_1.1.0/cc3200-sdk/ti_rtos/ti_rtos_config/src/sysbios'
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/TI/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/app_pem4.xdl] Error 1
xdctools_3_31_01_33_core\gmake.exe: *** Deleting file `package/cfg/app_pem4.xdl'
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/app_pem4.xdl] Deleting file `package/cfg/app_pem4.h'
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/app_pem4.xdl] Deleting file `package/cfg/app_pem4.c'
Warning: directory "C:/TI/tirtos_simplelink_2_13_01_09/products/bios_6_40_03_39/packages" on package path does not exist
js: "C:/TI/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Amir,

    Interesting. Somebody just reported a similar issue. Can you check the threads and recommendations at the thread below?
    e2e.ti.com/.../1551678

    Regards,
    Rafael
  • Hi,

    My CCS6.0 was installed in C drive whereas my workspace was in D drive and there was no issue in CCS6.0

    But now also my CCS6.1 is installed in C drive and my workspace is in D drive.

    I have changed the workspace and created more than 5 workspaces also but same issue persists.

    As for the project it is the wlan station project in the CCS sdk   examples, which also i am not able to work it out.

  • Amir,


    Thanks for sending the additional details. When I compared the screenshots you mentioned with the SDK getting started guide, I found that all support components (TI-RTOS, XDC Tools, compiler) have different versions.

    I don't expect the compiler to change things radically, therefore I used the default 5.2.4, but when I downloaded and installed the exact same releases for the TI-RTOS and XDC Tools, the projects built fine.

    Therefore, it is a problem with the SDK itself and the incompatibility with the updated component releases that were shipped with CCSv6.1.

    In this case there are two options:
    - Install the previous releases and keep the project that way;
    - Ask the experts on the LPRF Tools forum for an updated SDK that uses newer tools;
    - Ask the experts at the TI-RTOS forum to help with the migration to the newer components.

    Unfortunately we at the CCS forum will not be able to address this adequately.

    I apologize for the trouble,
    Rafael

    Downloads:
    SDK getting Started guide: www.ti.com/.../swru376b.pdf

    TI-RTOS: software-dl.ti.com/.../index.html
    (the TI-RTOS already comes with the compatible XDC tools release)
  • Finally uninstalled all the TI applications even from the CCsv6 folder run ccleaner and then started the installation.
    Last time i didnt uninstalled the applications from the ccsv6 folder may be due to that it was not working again when i installed it.
    Dont know how but now my [xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:] error is solved.

    Thanks for the support!!!!
  • Hi Amir,

    What did you do exactly? Because I am facing the same problem. I have windows 10 pc. I have uninstalled and reinstalled all the TI softwares / extensions several times. Also deleted ti folder from C drive. But still same error is occurring. 

    Thanks in advance

  • I had uninstalled all the TI applications even from the CCsv6 folder, ran ccleaner and then started the installation again.
    This time select a new workspace and check if the same issue persists.
    If solved please revert so that others if have similar issues get a ready solution.
    Good Luck!!!
  • Sorry that didn't work out for me..

    Actually I am getting following error logs:

    **** Build of configuration Debug for project SimpleAP ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../TOOLS/appBLE_ScUartLog.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_13_00_06/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/ble_simple_ap_launchpad/Source/Application\" --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/support_files/Components/SCIF_UART\" --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/support_files/common/keys\" --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/support_files/boards/CC2650_LAUNCHXL/SAP\" --include_path=\"G:/workspace/SimpleAP/Profiles\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SimpleProfile/SAP\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/SAP\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SAP/CC26xx/Source\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleAP/CC26xx/Source/Application\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/CC26xx\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/applib/heap\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/hci\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/CC2650TIRTOS\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/_common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/sdata\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/saddr\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/npi/unified\" --include_path=\"c:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include\" -g --gcc --define=DEBUG --define=POWER_SAVING --define=NPI_USE_UART --define=NPI_MASTER --define=xFEAUTRE_OAD --define=HEAPMGR_SIZE=2672 --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=USE_DEFAULT_USER_CFG --define=CC26XXWARE --define=CC26XX --define=ccs --define=xdc_FILE=\"\\"\\"\" --diag_wrap=off --diag_warning=225 --diag_warning=255 --display_error_number --gen_func_subsections=on " "../TOOLS/appBLE_ScUartLog.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring appBLE_ScUartLog.xem3 from package/cfg/appBLE_ScUartLog_pem3.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making G:/workspace/SimpleAP/TOOLS/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `G:/workspace/SimpleAP/TOOLS/src/sysbios'
    clem3 C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages/ti/sysbios/BIOS.c ...
    0 [main] sh 32036 sync_with_child: child 34532(0x1D4) died before initialization with status code 0xC0000142
    3209 [main] sh 32036 sync_with_child: *** child state waiting for longjmp
    G:/workspace/SimpleAP/TOOLS/src/sysbios/make32056-1.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [BIOS.obj] Error 128
    gmake[1]: Leaving directory `G:/workspace/SimpleAP/TOOLS/src/sysbios'
    gmake: *** [G:/workspace/SimpleAP/TOOLS/src/sysbios/sysbios.aem3] Error 2
    Build of libraries failed.
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/appBLE_ScUartLog_pem3.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/appBLE_ScUartLog_pem3.xdl'
    gmake.exe: *** [package/cfg/appBLE_ScUartLog_pem3.xdl] Deleting file `package/cfg/appBLE_ScUartLog_pem3.h'
    gmake.exe: *** [package/cfg/appBLE_ScUartLog_pem3.xdl] Deleting file `package/cfg/appBLE_ScUartLog_pem3.c'
    js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [configPkg/linker.cmd] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    so after searching i found one more way to avoid this problem. As shown in screenshot I put the address of file "appBLE_UartLog.cfg" from where the program was fetched in Command Pattern.line Means suppose I am using simplelink academy sample program then I searched for this file in simplelink academy folder. And then after rebuilding program,the error got cleared.

    Error is not occurring. But after checking the console log I found this:


    **** Clean-only build of configuration Debug for project SimpleAP ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k clean
    DEL /F "SimpleAP.out" "configPkg\linker.cmd" "configPkg\compiler.opt" "SimpleAP.hex"
    Could Not Find G:\workspace\SimpleAP\Debug\SimpleAP.out
    Could Not Find G:\workspace\SimpleAP\Debug\configPkg\linker.cmd
    Could Not Find G:\workspace\SimpleAP\Debug\SimpleAP.hex
    RMDIR /S/Q "TOOLS\configPkg\"
    The system cannot find the file specified.
    gmake: [clean] Error 2 (ignored)
    DEL /F "Startup\CC2650_LAUNCHXL_SAP.pp" "Startup\ccfg_appBLE.pp" "Startup\main.pp" "Profiles\simpleGATTprofile.pp" "Drivers\ScifLog\scif.pp" "Drivers\ScifLog\scif_framework.pp" "Drivers\ScifLog\scif_osal_tirtos.pp" "Drivers\ScifLog\scif_uart_logs.pp" "Drivers\KEY\board_key.pp" "Application\SimpleAP_LP.pp" "Application\util.pp"
    Could Not Find G:\workspace\SimpleAP\Debug\Startup\CC2650_LAUNCHXL_SAP.pp
    Could Not Find G:\workspace\SimpleAP\Debug\Profiles\simpleGATTprofile.pp
    Could Not Find G:\workspace\SimpleAP\Debug\Drivers\ScifLog\scif.pp
    Could Not Find G:\workspace\SimpleAP\Debug\Drivers\KEY\board_key.pp
    Could Not Find G:\workspace\SimpleAP\Debug\Application\SimpleAP_LP.pp
    DEL /F "Startup\CC2650_LAUNCHXL_SAP.obj" "Startup\ccfg_appBLE.obj" "Startup\main.obj" "Profiles\simpleGATTprofile.obj" "Drivers\ScifLog\scif.obj" "Drivers\ScifLog\scif_framework.obj" "Drivers\ScifLog\scif_osal_tirtos.obj" "Drivers\ScifLog\scif_uart_logs.obj" "Drivers\KEY\board_key.obj" "Application\SimpleAP_LP.obj" "Application\util.obj"
    Could Not Find G:\workspace\SimpleAP\Debug\Startup\CC2650_LAUNCHXL_SAP.obj
    Could Not Find G:\workspace\SimpleAP\Debug\Profiles\simpleGATTprofile.obj
    Could Not Find G:\workspace\SimpleAP\Debug\Drivers\ScifLog\scif.obj
    Could Not Find G:\workspace\SimpleAP\Debug\Drivers\KEY\board_key.obj
    Could Not Find G:\workspace\SimpleAP\Debug\Application\SimpleAP_LP.obj
    'Finished clean'
    ' '

    **** Build Finished ****

    **** Build of configuration Debug for project SimpleAP ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../TOOLS/appBLE_ScUartLog.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_13_00_06/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/ble_simple_ap_launchpad/Source/Application\" --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/support_files/Components/SCIF_UART\" --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/support_files/common/keys\" --include_path=\"C:/ti/simplelink_academy_01_07_00_0000/modules/projects/support_files/boards/CC2650_LAUNCHXL/SAP\" --include_path=\"G:/workspace/SimpleAP/Profiles\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SimpleProfile/SAP\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/SAP\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SAP/CC26xx/Source\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleAP/CC26xx/Source/Application\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/CC26xx\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/applib/heap\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/hci\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/CC2650TIRTOS\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/_common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/sdata\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/saddr\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/include\" --include_path=\"c:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/npi/unified\" --include_path=\"c:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include\" -g --gcc --define=DEBUG --define=POWER_SAVING --define=NPI_USE_UART --define=NPI_MASTER --define=xFEAUTRE_OAD --define=HEAPMGR_SIZE=2672 --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=USE_DEFAULT_USER_CFG --define=CC26XXWARE --define=CC26XX --define=ccs --define=xdc_FILE=\"\\"\\"\" --diag_wrap=off --diag_warning=225 --diag_warning=255 --display_error_number --gen_func_subsections=on " "../TOOLS/appBLE_ScUartLog.cfg""C:\ti\simplelink_academy_01_07_00_0000\modules\projects\ble_projectzero\CCS\Config\appBLE_UartLog.cfg"
    js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: Error: can't open input file '../TOOLS/appBLE_ScUartLog.cfg"C:\ti\simplelink_academy_01_07_00_0000\modules\projects\ble_projectzero\CCS\Config\appBLE_UartLog.cfg'
    gmake: *** [configPkg/linker.cmd] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    But in the second case no any error is occurred. Please tell me whether it is right or wrong.Because I think i have just excluded error from the error log file. So that it is not showing error. Almost same build log is generated.

  • Please help me this is getting so much frustrating. I read that this error is caused due auto generated path by windows. But I didn't found any.