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.

Error: xdc.cfg.INCOMPATIBLE_TARGET_VERSION

Other Parts Discussed in Thread: SYSBIOS

Hello ..

I'm trying to build sys/bios sw(ethercat). But there are some errors

1. Logged that some files is not a inner/outter command or executable program or batch file .

2. Error in xdc/cfg/main.xs line 156. 

Can I guide about it?

Thanks.

Log as below:


**** Build of configuration Debug for project ethercat ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
making ../src/sysbios/sysbios.lib ...
clea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/BIOS.c ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다. --> it is not a executable program or batch file. 
gmake[1]: *** [BIOS.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [arm_IntrinsicsSupport_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [arm_TaskSupport_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [exc_Exception_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm.asm ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [a8_TimestampProvider_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/Mmu_asm.asm ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [a8_Mmu_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/Cache_asm.asm ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [a8_Cache_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm.s470 ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [intcps_Hwi_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_switch.s470 ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [intcps_Hwi_asm_switch.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/timers/gptimer/Timer_asm.s470 ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [gptimer_Timer_asm.obj] Error 1
asmea8fnv C:/ti/bios_6_33_04_39/packages/ti/sysbios/timers/dmtimer/Timer_asm.s470 ...
'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
gmake[1]: *** [dmtimer_Timer_asm.obj] Error 1
gmake[1]: Target `all' not remade because of errors.
gmake: *** [../src/sysbios/sysbios.lib] Error 2
'Building file: ../ethercat.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_23_03_53/xs" --xdcpath="C:/ti/bios_6_33_04_39/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p ti.platforms.evmAM3359 -r debug -b "C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/.config/xconfig_ethercat/config.bld" -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2" --compileOptions "-g --optimize_with_debug" "../ethercat.cfg"
making package.mak (because of package.bld) ...
ti.targets.arm.elf.A8Fnv: warning: exec of 'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/cl470 --compiler_revision' failed:java.io.IOException: CreateProcess: C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.2\bin\cl470 --compiler_revision error=2; check tools installation
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring ethercat.xea8fnv from package/cfg/ethercat_pea8fnv.cfg ...
js: "C:/ti/xdctools_3_23_03_53/packages/xdc/cfg/Main.xs", line 156: Error: xdc.cfg.INCOMPATIBLE_TARGET_VERSION: current target 'ti.targets.arm.elf.A8Fnv' [] is not compatible with targets used to build the following packages; package ti.targets.arm.rtsarm [in C:/ti/xdctools_3_23_03_53/packages/ti/targets/arm/rtsarm/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.family.arm [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.hal [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/hal/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.family.arm.a8 [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.knl [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/knl/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.family.arm.exc [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/exc/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.family.arm.a8.intcps [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/intcps/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.heaps [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/heaps/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.gates [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/gates/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.xdcruntime [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/xdcruntime/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.timers.dmtimer [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/timers/dmtimer/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.family.arm.a8.ti81xx [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/family/arm/a8/ti81xx/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]
; package ti.sysbios.utils [in C:/ti/bios_6_33_04_39/packages/ti/sysbios/utils/] was built using 'ti.targets.arm.elf.A8Fnv' [1,0,4.9,0]

Adding the following line to your program configuration script:
environment['xdc.cfg.check.fatal'] = 'false';
converts this incompatibility error into a warning. Please, check the documentation for the package xdc.cfg for more information.
gmake.exe: *** [package/cfg/ethercat_pea8fnv.xdl] Error 1
js: "C:/ti/xdctools_3_23_03_53/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 ****

  • The real cause of the problem is that 'C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin' doesn't have the executable cl470, but has armcl.The command line is automatically generated by XDCtools 3.23.03.53, which might have been released before that version of the compiler and does not know about the change of the compiler executable.
    I'll have to check the use case in more details and I'll post more.

  • Actually, XDCtools 3.23 was supposed to deal with the compiler name change, but there is a bug in that code. The bug was fixed in XDCtools 3.24, so you'll need to update the version of XDCtools. I can't tell which version of CCS 6 you are using, and the latest version of XDCtools 3.31 does not run in anything older than CCS 6.1, but you should consider upgrading to at least XDCtools 3.30.
  • Thanks Sasah,

    I tried as your advice than now above problem was clear.

    There is new problem in compile. Please let me guide.

    Compile log message as below:



    <Linking>
    warning: creating output section ".text" without a SECTIONS specification
    warning: creating output section ".data" without a SECTIONS specification
    warning: creating output section ".const" without a SECTIONS specification
    warning: creating output section "ti.sysbios.family.arm.a8.mmuTableSection"
    without a SECTIONS specification
    warning: creating output section ".bss" without a SECTIONS specification
    warning: creating output section "xdc.meta" without a SECTIONS specification
    warning: creating output section ".vecs" without a SECTIONS specification
    warning: creating output section ".bss:.common" without a SECTIONS
    specification
    warning: creating output section ".cinit" without a SECTIONS specification

    undefined first referenced

    symbol in file
    --------- ----------------
    IND_CALL C:\ti\xdctools_3_24_07_73\packages\ti\targets\arm\rtsarm\lib\auto_init.aea8fnv<auto_init.oea8fnv>
    >> Compilation failure
    app_reload_code_run ./tiescutils.obj
    app_reload_code_size ./tiescutils.obj
    app_reload_code_start ./tiescutils.obj
    ti_sysbios_family_arm_a8_intcps_Hwi_create C:\ti\am335x_sysbios_ind_sdk_1.1.0.6\sdk/os_drivers/lib/sys_bios_driver.lib<osdrv_uart.obj>
    ti_sysbios_family_arm_a8_intcps_Hwi_delete C:\ti\am335x_sysbios_ind_sdk_1.1.0.6\sdk/os_drivers/lib/sys_bios_driver.lib<osdrv_uart.obj>
    ti_sysbios_knl_Semaphore_create C:\ti\am335x_sysbios_ind_sdk_1.1.0.6\sdk/protocols/ethercat_slave/stack_lib/ecat_slave_stack.lib<tiescbsp.obj>
    ti_sysbios_knl_Semaphore_delete C:\ti\am335x_sysbios_ind_sdk_1.1.0.6\sdk/protocols/ethercat_slave/stack_lib/ecat_slave_stack.lib<tiescbsp.obj>

    error: unresolved symbols remain
    error: errors encountered during linking; "ethercat.out" not built
    gmake: *** [ethercat.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****