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: SYSBIOS

hi,

I am using CCS v5.2. I installed av_bios_sdk_00_08_00_00 to my pc. when i try to run the BIOS_AVSDK project for BOP(back over prevention) program i got this error. I am using xdctools_3_24_03_33.  please help me in solving his error..

**** Build of configuration M3-Master for project BIOS_AVSDK_videoM3 ****
C:\ti\ccsv5\utils\bin\gmake -k all 
'Building file: ../BIOS_AVSDK_videoM3.cfg'
'Invoking: XDCtools'
"C:\av_bios_sdk_00_08_00_00\xdctools_3_24_03_33/xs" --xdcpath="C:/av_bios_sdk_00_08_00_00/bios_6_34_02_18/packages;C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/build/tools/Platform Repository/packages;C:/av_bios_sdk_00_08_00_00/edma3_lld_02_11_06_01/packages;C:/av_bios_sdk_00_08_00_00/pdk/biospsp_03_10_06_00;C:/av_bios_sdk_00_08_00_00/pdk/nsp_dm814x_01_00_00_10/packages;C:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38/packages;C:/av_bios_sdk_00_08_00_00/ipc_1_25_00_04/packages;C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages;C:/av_bios_sdk_00_08_00_00/framework_components_3_24_00_02_eng/packages;C:/av_bios_sdk_00_08_00_00/framework_components_3_24_00_02_eng/fctools/packages;C:/av_bios_sdk_00_08_00_00/ivahd_hdvicp20api_01_00_00_19_production/packages;C:/av_bios_sdk_00_08_00_00/ivahd_jpegvdec_01_00_06_00_production/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p evmC6A8149.video -r debug -c "C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/tools/tms470_5_0_1" --cfgArgs {APP_ON_M3:"1"} "../BIOS_AVSDK_videoM3.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring BIOS_AVSDK_videoM3.xem3 from package/cfg/BIOS_AVSDK_videoM3_pem3.cfg ...
warning: ti.ndk.config.Global: "C:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38/packages/ti/ndk/config/Global.xs", line 344: ti.ndk.config.Global : The NDK relies on the the SYS/BIOS Task module to have 'Task.deleteTerminatedTasks = true'. The NDK has over-written your selection.
warning: ti.ndk.config.Http: "C:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38/packages/ti/ndk/config/Http.xs", line 144: ti.ndk.config.Http : Non-standard value specified for Http configuration parameter 'port': '10001'.  Please ensure that port 10001 will not be used by another program.
warning: xdc.cfg.Program: "C:/av_bios_sdk_00_08_00_00/ipc_1_25_00_04/packages/ti/sdo/io/package.xs", line 111: ti.sdo.io : This package is deprecated
generating custom ti.sysbios library makefile ... 
Auto-registering resource manager for HDVICP2
generating custom ti.sdo.ipc library makefile ... 
Inside EDMA3 Drv Sample getLibs
    will link with ti.sdo.edma3.drv.sample:lib/ti814x-evm/m3/debug/edma3_lld_drv_sample.aem3
Inside EDMA3 Drv getLibs
    will link with ti.sdo.edma3.drv:lib/m3/debug/edma3_lld_drv.aem3
Inside EDMA3 RM getLibs
    will link with ti.sdo.edma3.rm:lib/ti814x-evm/m3/debug/edma3_lld_rm.aem3
    will link with ti.sdo.codecs.jpegvdec:lib/jpegvdec_ti_host.lib
    will link with ti.sdo.codecs.hdvicp20api:lib/ivahd_ti_api_vM3.lib
Starting build of library sources ...
making C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc.aem3 ...
process_begin: CreateProcess(NULL, C:\ti\ccsv5\utils\bin --no-print-directory -C C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc, ...) failed.
make (e=5): Access is denied.
Build of libraries failed.

gmake[1]: *** [C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc.aem3] Error 5
error: xdc.cfg.SourceDir: "C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages/xdc/cfg/SourceDir.xs", line 155: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
js: "C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages/xdc/cfg/Main.xs", line 149: Error: Configuration failed!
gmake.exe: *** [package/cfg/BIOS_AVSDK_videoM3_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/BIOS_AVSDK_videoM3_pem3.xdl'
gmake.exe: *** [package/cfg/BIOS_AVSDK_videoM3_pem3.xdl] Deleting file `package/cfg/BIOS_AVSDK_videoM3_pem3.h'
gmake.exe: *** [package/cfg/BIOS_AVSDK_videoM3_pem3.xdl] Deleting file `package/cfg/BIOS_AVSDK_videoM3_pem3.c'
js: "C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake: *** [configPkg/compiler.opt] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Regards,
shalini
  • Hi Shalini,

    for what device is this for? I'm not familiar with what product you are using.

  • Hi Tom,

    Thanks for your reply.I am using

    • VISION MID EVE Board.
    • Windows 7 OS
    • The project that I am trying to run is demo application(i.e, Back Over Prevention) provided by TI.
    • I am following the steps according to the av bios document which has been attached..The mentioned error in my previous post is in CCS Based Build. 7180.av_bios_sdk_userguide.pdf.
    Regards,
    Shalini
  • Shalini,
    to help debugging the problem you can do a couple of things:

    1. Open the config script BIOS_AVSDK_videoM3.cfg, and add the following line at the end:
    xdc.module("xdc.cfg.SourceDir").verbose = 4;
    You should get a little bit more output in the console window. 

    2. Check the access permissions on the directory C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src and on files in it. The directory or files in it could be readonly, while gmake is trying to change files or add new ones.

  • Hi Sasha,

    Thanks for the reply.

    I added xdc.module("xdc.cfg.SourceDir").verbose = 4; line in BIOS_AVSDK_videoM3.cfg. In spite of that also i am getting the same error.

    And also i checked the access permission. It is read only as you said. So what I have to do further.

    Regards,

    Shalini

  • Shalini,

    you need to have write access to build the libraries.

    Can you give "C:/av_bios_sdk_00_08_00_00" write access for all its sub-directories?

  • Tom,

    After giving write access permission also i am getting same error with no change.

    Regards,

    Shalini 

  • Shalini,
    setting
    xdc.module("xdc.cfg.SourceDir").verbose = 4;
    is not going to correct any error. It is supposed to display more output that could help debugging. Can you check if there is more output in the console window, and then post that new output?

    The error you are getting happens at the moment when XDCtools is executing some shell commands, and we need to find out which command is failing.

  • Sasha,
    After adding  xdc.module("xdc.cfg.SourceDir").verbose = 4; line in BIOS_AVSDK_videoM3.cfg i am getting this output..
    **** Build of configuration M3-Master for project BIOS_AVSDK_videoM3 ****
    C:\ti\ccsv5\utils\bin\gmake -k all 
    'Building file: ../BIOS_AVSDK_videoM3.cfg'
    'Invoking: XDCtools'
    "C:\av_bios_sdk_00_08_00_00\xdctools_3_24_03_33/xs" --xdcpath="C:/av_bios_sdk_00_08_00_00/bios_6_34_02_18/packages;C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/build/tools/Platform Repository/packages;C:/av_bios_sdk_00_08_00_00/edma3_lld_02_11_06_01/packages;C:/av_bios_sdk_00_08_00_00/pdk/biospsp_03_10_06_00;C:/av_bios_sdk_00_08_00_00/pdk/nsp_dm814x_01_00_00_10/packages;C:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38/packages;C:/av_bios_sdk_00_08_00_00/ipc_1_25_00_04/packages;C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages;C:/av_bios_sdk_00_08_00_00/framework_components_3_24_00_02_eng/packages;C:/av_bios_sdk_00_08_00_00/framework_components_3_24_00_02_eng/fctools/packages;C:/av_bios_sdk_00_08_00_00/ivahd_hdvicp20api_01_00_00_19_production/packages;C:/av_bios_sdk_00_08_00_00/ivahd_jpegvdec_01_00_06_00_production/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p evmC6A8149.video -r debug -c "C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/tools/tms470_5_0_1" --cfgArgs {APP_ON_M3:"1"} "../BIOS_AVSDK_videoM3.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring BIOS_AVSDK_videoM3.xem3 from package/cfg/BIOS_AVSDK_videoM3_pem3.cfg ...
    warning: ti.ndk.config.Global: "C:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38/packages/ti/ndk/config/Global.xs", line 344: ti.ndk.config.Global : The NDK relies on the the SYS/BIOS Task module to have 'Task.deleteTerminatedTasks = true'. The NDK has over-written your selection.
    warning: ti.ndk.config.Http: "C:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38/packages/ti/ndk/config/Http.xs", line 144: ti.ndk.config.Http : Non-standard value specified for Http configuration parameter 'port': '10001'.  Please ensure that port 10001 will not be used by another program.
    warning: xdc.cfg.Program: "C:/av_bios_sdk_00_08_00_00/ipc_1_25_00_04/packages/ti/sdo/io/package.xs", line 111: ti.sdo.io : This package is deprecated
    generating custom ti.sysbios library makefile ... 
    Auto-registering resource manager for HDVICP2
    generating custom ti.sdo.ipc library makefile ... 
    Inside EDMA3 Drv Sample getLibs
        will link with ti.sdo.edma3.drv.sample:lib/ti814x-evm/m3/debug/edma3_lld_drv_sample.aem3
    Inside EDMA3 Drv getLibs
        will link with ti.sdo.edma3.drv:lib/m3/debug/edma3_lld_drv.aem3
    Inside EDMA3 RM getLibs
        will link with ti.sdo.edma3.rm:lib/ti814x-evm/m3/debug/edma3_lld_rm.aem3
        will link with ti.sdo.codecs.jpegvdec:lib/jpegvdec_ti_host.lib
        will link with ti.sdo.codecs.hdvicp20api:lib/ivahd_ti_api_vM3.lib
    Starting build of library sources ...
        cd C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src
        C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/gmake.exe -f C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/makefile.libs GEN_SRC_DIR=C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src
    making C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc.aem3 ...
    process_begin: CreateProcess(NULL, C:\ti\ccsv5\utils\bin --no-print-directory -C C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc, ...) failed.
    make (e=5): Access is denied.
    gmake[1]: *** [C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc.aem3] Error 5
    Build of libraries failed.
    error: xdc.cfg.SourceDir: "C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages/xdc/cfg/SourceDir.xs", line 155: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
    js: "C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages/xdc/cfg/Main.xs", line 149: Error: Configuration failed!
    gmake.exe: *** [package/cfg/BIOS_AVSDK_videoM3_pem3.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/BIOS_AVSDK_videoM3_pem3.xdl'
    gmake.exe: *** [package/cfg/BIOS_AVSDK_videoM3_pem3.xdl] Deleting file `package/cfg/BIOS_AVSDK_videoM3_pem3.h'
    gmake.exe: *** [package/cfg/BIOS_AVSDK_videoM3_pem3.xdl] Deleting file `package/cfg/BIOS_AVSDK_videoM3_pem3.c'
    js: "C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [configPkg/compiler.opt] Error 1
    gmake: Target `all' not remade because of errors.
    **** Build Finished ****
    Regards,
    shalini
  • shalini c said:
    Starting build of library sources ...
        cd C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src
        C:/av_bios_sdk_00_08_00_00/xdctools_3_24_03_33/gmake.exe -f C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/makefile.libs GEN_SRC_DIR=C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src
    making C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc.aem3 ...
    process_begin: CreateProcess(NULL, C:\ti\ccsv5\utils\bin --no-print-directory -C C:/av_bios_sdk_00_08_00_00/avsdk_00_08_00_00/demos/avsk_app/video_m3/ccs_build/src/ipc, ...) failed.
    make (e=5): Access is denied.

    Shalini,
    it seems that your project is trying to execute a directory (marked in red), which causes the error message "Access is denied". I don't really know how that could happen, the only way I could replicate the problem is to open src/makefile.libs in a text editor and then manually change the value of $(MAKE) to point to C:\ti\ccsv5\utils\bin. What's the content of that file in your project?
    I also think you should post this to the CCS forum too. They may have more experience with this kind of problem.