平台是omap3730使用xdc.tools.configuro帮助编译连接资源。
toolchain是arm-2009q1/bin/arm-none-linux-gnueabi-gcc
参照例子,xdctarget是gnu.targets.arm.GCArmv5T
报错:
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: xdc.services.global.XDCException: gnu.targets.UNDEFINED_EXECUTABLE: 'LONGNAME' must be defined for the target gnu.targets.arm.GCArmv5T
查RTSC文档的确没有gnu.targets.arm.GCArmv5T
于是尝试gnu.targets.MVArm9和UCArm9
gnu.targets.MVArm9:
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: Error: /opt/env/toolchain/arm-2009q1/bin/arm_v5t_le-gcc cannot be found. Ensure that rootDir for the MVArm9 target is set correctly in ./config.bld
gnu.targets.UCArm9:
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: Error: /opt/env/toolchain/arm-2009q1//bin/arm-linux-gcc cannot be found. Ensure that rootDir for the UCArm9 target is set correctly in ./config.bld
都没有去找arm-none-linux-gnueabi-gcc
于是.bld和.cfg尝试添加
var GCArmv5T = xdc.useModule('gnu.targets.XXXXX');
GCArmv5T.platform = 'ti.platforms.evm3530';
GCArmv5T.rootDir = "/opt/env/toolchain/arm-2009q1";
GCArmv5T.LONGNAME = "bin/arm-none-linux-gnueabi-gcc";
错误依旧…
无解中…
期待回复中…
TH Wang:
metaonly module gnu.targets.arm.GCArmv5T:
rtsc.eclipse.org/…/index.html
查到了…
纠正一下 查RTSC文档的确没有gnu.targets.arm.GCArmv5T 的错误
简介一下问题:
使用xdc.tools.configuro帮助编译ARM端调用程序时,-t $(XDCTARGET) 使用gnu.targets.arm.GCArmv5T,make时报错(如下)
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: xdc.services.global.XDCException: gnu.targets.UNDEFINED_EXECUTABLE: 'LONGNAME' must be defined for the target gnu.targets.arm.GCArmv5T
Feng Dong:
回复 TH Wang:
敬佩楼主的钻研精神