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.

Rebuilding NDK 2.20 issues

I am rebuilding my NDK 2.20.3.24 library. i am getting errors.

 

I am using CCSv4

XDIS tools 3.21.0.27.eng

BIOS version 5.41.10.36

 

the errors  i get are:

 Severity and Description Path Resource Location Creation Time Id
#5: could not open source file "std.h" ndk_core_build/os intmgmt.c line 49 1304525447083 17157

Severity and Description Path Resource Location Creation Time Id
#225-D: function declared implicitly ndk_core_build/tools/hdlc hdlc.c line 124 1304525447083 17155
#225-D: function declared implicitly ndk_core_build/tools/hdlc hdlc.c line 243 1304525447083 17156
Error launching external scanner info generator (gcc -E -P -v -dD C:/CCv4 Projects/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)  ndk_core_build Unknown 1304525447098 17158

the function declared implicitly was:

IFSetPad(4, 2);

i don't know what other information is necessary.

  • cobsonchae,

    Which target are you building for? (C64P, C66, C674, ARM?)

    Also, did you make sure to edit the build properties of the project "ndk_core_build" to specify the full path to the copy of your NDK installation that you are rebuilding?


     

    Also, can you please take a screen shot of the CCSv4 preferences for RTSC?  You can find this from the CCSv4 menu: Window -> Preferences, then under CCS -> RTSC.  For example, here's a screen shot from my CCSv4 install:

     


  • I am building for the C674x

     

    yes, i followed those steps.

  • Also, can you please take a screen shot of the CCSv4 preferences for RTSC?  You can find this from the CCSv4 menu: Window -> Preferences, then under CCS -> RTSC.  For example, here's a screen shot from my CCSv4 install (please see previous post):

  • I am still having this problem.  any help?

  • cobsonchael,

    I'm having trouble reproducing the problem you are seeing here.  I configured my set up to use the same versions of XDC, NDK and BIOS and everything built OK.

    Would you be able to save your entire build output into a file and attach it to this thread?

    Could you also attach the file "config.bld" to this thread?  This should be in your ti/ndk directory.  For example, on my machine, the file is located here:

    C:\myNdkBuilds\ndk_2_20_03_24\packages\ti\ndk\config.bld

    Steve

  • well late yesterday i found the problem. the default NDK BIOS5 version was a version that i didn't have. when i changed my BIOS5 path it compiled. i get warnings that i don't quite understand but not only was i able to build the NDK but i was also able to operate it and pull DHCP. i don't think i need any help right now. thanks for your efforts!

  • Ok, that's great news!

    Steve

  • If I just  want to rebuild the OS.lib of the NDK, what should I do? Rebuilding the NDK Core need a long time.

  • Hi gangling xu,

    You can prune the NDK build in a couple of places.  The first place you would need to look is the file:

     

    ti/ndk/src/stack/Build.xs

     

    In this file, you’ll find a function at the very end, called ‘buildLibrary’.  This function is what controls the various library permutations that should be built.  I’ve added comments to show you which calls build which library:

     

    function buildLibrary (target)

    {

        /* Build all possible variants of the NDK Core Stack Library */

        buildCoreLib (target);          // à stk.lib

        buildPPPLib (target);           // à stk_ppp.lib, stk6_ppp.lib

        buildPPPOELib (target);         // à stk_ppp_pppoe.lib, stk6_ppp_pppoe.lib

        buildNATLib (target);           // à stk_nat.lib, stk6_nat.lib

        buildNATPPPLib (target);       // à stk_nat_ppp.lib, stk6_nat_ppp.lib

        buildNATPPPoELib (target);      // à stk_nat_ppp_pppoe.lib, stk6_nat_ppp_pppoe.lib

        buildCoreV6Lib (target);       // à stk6.lib

    }

     

    So, when you need to rebuild the core, you can comment out the build of whichever libs you don’t  want to build in the above code.

     

    You can prune the build further in the file:

     

    ti/ndk/src/Module.xs

     

    This file also has an array that you can comment things out of:

     

    /* List of all subdirectories that combine to make the NDK Core stack. */

    var subDirectories = [

        "src/miniPrintf",

        "src/os",

        "src/netctrl",

        "src/nettools",

        "src/stack",

        "src/hal",

        "src/tools"

    ];