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.tools.configuro问题



平台是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";

错误依旧...

无解中...

期待回复中...



 

  • 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

     

  • 解决办法:

    参照rtsc.eclipse.org/.../index.html

    自己创建一个config.bld文件,内容如下:

    /*

    *  ======== config.bld ========

    */

    var Build = xdc.useModule('xdc.bld.BuildEnvironment');

    //var C64P = xdc.useModule('ti.targets.C64P');

    var GCC = xdc.useModule('gnu.targets.arm.GCArmv5T');

    /* modify to match %c6xtools% */

    //C64P.rootDir = "/opt/dvsdk/cgt6x_6_1_14";

    //C64P.ccOpts.prefix = "--no_compress";

    //C64P.platform = 'ti.platforms.evm3530';

    /* modify to match %gcctools% */

    GCC.rootDir = "/opt/toolchains/arm-2009q1";

    GCC.ccOpts.prefix = "-O2"

    GCC.platform = 'ti.platforms.evm3530'

    GCC.LONGNAME = '/bin/arm-none-linux-gnueabi-gcc'

    Build.targets = [GCC];

    在使用xdc.tools.configuro工具是使用参数-b指定config.bld文件。

  • 敬佩楼主的钻研精神