[FAQ] 【分享】工程编译报错“Permission denied”

Q: 在使用TDA2X(DRA7XX), VISION_SDK_02_05_00_00编译多核工程时出现如下
D:\avm_out\srvsd_proj\src\main_app\ipu1_0>E:/ti/VISION_SDK_02_05_00_00/ti_components/os_tools/windows/xdctools_3_30_04_52_core/xs xdc.tools.configuro --generationOnly -o D:/avm_out/srvsd_proj/binaries/obj/vision_sdk/tda2xx-evm/ipu1_0/release/vision_sdk_configuro -t ti.targets.arm.elf.M4 -p ti.platforms.evmDRA7XX:IPU_1_0 -r release -b D:/avm_out/srvsd_proj/build/tda2xx/config_m4.bld --cfgArgs "{mode: \"\", coreName: \"IPU1-CORE0\", platformMem: \"DDR_MEM_256M\"}" MAIN_APP_ipu1_0.cfg
/cygdrive/e/ti/VISION_SDK_02_05_00_00/ti_components/os_tools/windows/xdctools_3_30_04_52_core/bin/cp: cannot create regular file `D:/avm_out/srvsd_proj/binaries/obj/vision_sdk/tda2xx-evm/ipu1_0/release/vision_sdk_configuro/linker_mod.cmd': Permission denied
gmake[3]: *** [xdc_configuro] Error 1
gmake[2]: *** [apps] Error 2
gmake[1]: *** [chains] Error 2
gmake: *** [vision_sdk_chains] Error 2

linker_mod.cmd这个文件在路径下是存在的,为什么会报错?

A: 编译器报错问题的解决思路,可以从报错信息的提示着手。根据上述“linker_mod.cmd': Permission denied”报错信息,提示没有权限访问该cmd文件,可以猜测可能是cmd文件的属性里访问权限的设置问题, 通过右击 linker_mod.cmd属性里的Security修改访问权限,改为Allow之后可以编译成功。