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.

NSP buil fail with xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.targets.elf'

Other Parts Discussed in Thread: SYSBIOS

Hello,

I am trying to build nsp_gmacsw_4_15_00_00.

using below versions of libs: 

set NDK_ROOT=c:/ti/ndk_2_24_02_31
set BIOS_ROOT=c:/ti/bios_6_46_04_53
set TIARMCGT_ROOT=C:/ti/compiler/arm_5.2.4
set GCC_ROOT=C:/ti/compiler/gcc-arm-none-eabi-4_7-2013q3
set CGT6X_ROOT=C:/ti/compiler/c6000_7.4.2
set XDC_ROOT=c:/ti/xdctools_3_32_01_22_core

using "xdc all" for building and i see below error: 

"making package.mak (because of package.bld) ...
js: "./config.bld", line 85: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.targets.elf' along the path: 'c:
/ti/xdctools_3_32_01_22_core/packages;../../..;'. Ensure that the package path is set correctly.
xdctools_3_32_01_22_core\gmake.exe: *** No rule to make target `package.mak', needed by `.interfaces'. Stop.
Done."

Any suggestion, what could be the issue? 

Regards,

Tejeswini

  • Hi Tejeswini,

    Can you attach the full build log and not just the error? Please attach the output in a file instead of copying/pasting into the thread (to keep the thread shorter).

    Also, what host OS and version are you using (e.g. Linux, Windows or MacOS)? How are you trying to build it?

    Todd
  • Hello Todd,

    I am using Windows 7, I am trying to build with the build.bat attached and build log is build_log.txt attached. 

    Regards,

    Tejeswini

    build_bat.txt
    @echo off
    
    cd packages/ti/nsp/drv
    
    set NDK_ROOT=c:/ti/xyz/ndk_2_24_02_31
    set BIOS_ROOT=c:/ti/xyz/bios_6_46_04_53
    set TIARMCGT_ROOT=C:/ti/xyz/compiler/arm_5.2.4
    set GCC_ROOT=C:/ti/xyz/compiler/gcc-arm-none-eabi-4_7-2013q3
    set CGT6X_ROOT=C:/ti/xyz/compiler/c6000_7.4.2
    set XDC_ROOT=c:/ti/xyz/xdctools_3_32_01_22_core
    
    if %1 == clean goto clean
    if %1 == all goto all
    
    :clean
    %XDC_ROOT%/xdc clean
    goto end
    
    :all
    %XDC_ROOT%/xdc all
    goto end
    
    :end
    cd ../../../../
    
    echo Done.
    
    7651.build_log.txt
    C:\ti\xyz\nsp_gmacsw_4_15_00_00>build.bat all
    making package.mak (because of package.bld) ...
    js: "./config.bld", line 85: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.targets.elf' along the path: 'c:
    /ti/xyz/xdctools_3_32_01_22_core/packages;../../..;'. Ensure that the package path is set correctly.
    xdctools_3_32_01_22_core\gmake.exe: *** No rule to make target `package.mak', needed by `.interfaces'.  Stop.
    Done.
    
    C:\ti\xyz\nsp_gmacsw_4_15_00_00>

  • Hello Todd,

    I found this "Beginning with the 3.31 release, all embedded targets and platforms have been removed. They are now delivered with middleware products, such as TI-RTOS and Grace, that have dependencies on specific targets and platforms". I also see that NSP builds without issue with XDC_3_25_05_94. 

    So, in order to use XDC_3_32_01_22_core and build NSP,  where should i add the config for embedded targets and platforms?  Any reference to this will be appreciated. Thanks.

    Regards,

    Tejeswini

  • Hi Teju,

    ti.target.elf is moved to SYSBIOS now.

    When building NSP, you have to add SYSBIOS path to xdcpath.

    For examples, in NSP Makefile, you can do the following.

    export BIOS_ROOT=c:/ti/bios_6_46_04_53

    xdc --xdcpath="$(BIOS_ROOT)/packages" -P packages/ti/nsp/drv/

    Regards,
    Stanley

  • Tejeswini,

    Can I mark this as resolved?

    Todd
  • Sure. It is resolved.

    Regards,

    Tejeswini