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.

Issues with getting NDK to work on a OMAPL138

So I am trying to get a TCP/IP messaging program to work and am using ndk_2_24_01_18 for this purpose. When i try to build the program however i get the following errors:


unresolved symbol _CfgNew, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _CfgFree, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _CfgAddEntry, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _NDK_hookCreate, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _NC_SystemOpen, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _NC_SystemClose, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _NC_NetStart, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _inet_addr, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
<a href="file:/c:/ti/ccsv6/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain TCPIPTest    C/C++ Problem
#10010 errors encountered during linking; "TCPIPTest.out" not built TCPIPTest    C/C++ Problem
unresolved symbol _NDK_hookExit, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _NDK_hookInit, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol _TCPMessageProcess, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
unresolved symbol __oscfg, first referenced in C:\TI_RTOS\Workspace\TCPIPTest\Debug\configPkg\package\cfg\TCPIPTest_p674.o674 TCPIPTest    C/C++ Problem
library "C:\ti\ndk_2_24_01_18\packages\ti\ndk\config\..\stack\lib\stk.a674" does not exist.  Please follow the steps to build this NDK library at http://processors.wiki.ti.com/index.php/Rebuilding_The_NDK_Core_Using_Gmake TCPIPTest.cfg /TCPIPTest   C/C++ Problem

 

I assume the root problem is that i am missing stk.a674, but when i go to build it using the instructions found on

http://processors.wiki.ti.com/index.php/Rebuilding_The_NDK_Core_Using_Gmake

I get the following when i try to make the file:

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\windows\system32>CD\ti\ndk_2_24_01_18

C:\ti\ndk_2_24_01_18>gmake -f ndk.mak building ndk packages ... making all: Wed Dec 10 09:40:38 EST 2014 ... ======== .interfaces [./packages/ti/ndk] ======== making package.mak (because of package.bld) ... C:\ti\xdctools_3_30_03_47_core\xs.exe: error: can't create session manager: can' t find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the a bsolute path of any directory containing a 32-bit Java Runtime Environment (1.6 or greater); e.g., 'C:\Program Files (x86)\Java\jre7'. gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'.  St op. xdctools_3_30_03_47_core\gmake.exe: *** [packages/ti/ndk,.interfaces] Error 2 gmake: *** [all] Error 2

C:\ti\ndk_2_24_01_18>

 

I check XDCTOOLS_JAVA_HOME and it is set to C:\Program Files (x86)\Java\jre7 and I have the 32-bit java virtual machine installed in that directory.

 

Some other infromation in case it proves useful:

using the following versions:

ccsv6

bios_6_41_00_26

xdctools_3_30_03_47_core

nsp_1_00_00_09

CCS v6.0.1.00040

 

Any ideas?

 

 

  • So Update to the above item. I Installed nsp_1_10_02_09 which fixed several of the errors. I currrenly only have the following now:

    #10010 errors encountered during linking; "TCPIPTest.out" not built

    #10234-D unresolved symbols remain

    library "C:\ti\ndk_2_24_01_18\packages\ti\ndk\config\..\stack\lib\stk.a674" does not exist. Please follow the steps to build this NDK library at http://processors.wiki.ti.com/index.php/Rebuilding_The_NDK_Core_Using_Gmake

    Still unable to rebuild stk.a674.
  • Can you add this into the ndk.mak file?

    export XDCTOOLS_JAVA_HOME ?= c:/ti/ccsv6/eclipse/jre

    Please change the "c:/ti/ccsv6" if you have it installed somewhere else.

    Now try building the NDK.

    Why were the libraries not there in the NDK? Did you clean it?

    Todd

  • Added: export XDCTOOLS_JAVA_HOME ?= c:/ti/ccsv6/eclipse/jre

    to the make file.

    Why were the libraries not there in the NDK? Did you clean it?

    Not sure. Should of been a clean install of the NDK. Tried it again after getting it from the zip file and the same error occurs 

     

    after adding the XDCTOOLS line i now get the following when i try to build it:

     

    Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    C:\windows\system32>CD\ti\ndk_2_24_01_18

    C:\ti\ndk_2_24_01_18>gmake -f ndk.mak building ndk packages ... making all: Thu Dec 11 09:28:45 EST 2014 ... ======== .interfaces [./packages/ti/ndk] ======== making package.mak (because of package.bld) ... generating interfaces for package ti.ndk (because package/package.xdc.inc is old er than package.xdc) ... ======== .interfaces [./packages/ti/ndk/config] ======== making package.mak (because of package.bld) ... generating interfaces for package ti.ndk.config (because package/package.xdc.inc  is older than package.xdc) ...     translating Global     translating Http     translating Telnet     translating DhcpClient     translating DhcpServer     translating Dns     translating Nat     translating Tcp     translating Ip     translating Route     translating Icmp     translating Udp     translating Emac     translating Ppp     translating Pppoe ======== .interfaces [./packages/ti/ndk/hal/eth_stub] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.hal.eth_stub (because package/package.x dc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/hal/ser_stub] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.hal.ser_stub (because package/package.x dc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/hal/timer_bios] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.hal.timer_bios (because package/package .xdc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/hal/userled_stub] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.hal.userled_stub (because package/packa ge.xdc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/netctrl] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.netctrl (because package/package.xdc.in c is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/nettools] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.nettools (because package/package.xdc.i nc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/os] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.os (because package/package.xdc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/productview] ======== making package.mak (because of package.bld) ... generating interfaces for package ti.ndk.productview (because package/package.xd c.inc is older than package.xdc) ...     translating NdkProductView ======== .interfaces [./packages/ti/ndk/rov] ======== making package.mak (because of package.bld) ... generating interfaces for package ti.ndk.rov (because package/package.xdc.inc is  older than package.xdc) ...     translating Ndk ======== .interfaces [./packages/ti/ndk/stack] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.stack (because package/package.xdc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/tools/cgi] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.tools.cgi (because package/package.xdc. inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/tools/console] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.tools.console (because package/package. xdc.inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/tools/hdlc] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.tools.hdlc (because package/package.xdc .inc is older than package.xdc) ... ======== .interfaces [./packages/ti/ndk/tools/servers] ======== making package.mak (because of package.bld) ... ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion ti.targets.arm.elf.Arm9: warning: exec of 'C:\ti\ccsv6\tools\compiler\c6000_7.4. 11/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program  "C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/cl470" (in directory "."): CreateP rocess error=2, The system cannot find the file specified; check tools installat ion generating interfaces for package ti.ndk.tools.servers (because package/package. xdc.inc is older than package.xdc) ... .interfaces files complete: Thu Dec 11 09:29:51 EST 2014. ======== .libraries [./packages/ti/ndk] ======== ======== .libraries [./packages/ti/ndk/config] ======== ======== .libraries [./packages/ti/ndk/hal/eth_stub] ======== cl674 package/package_ti.ndk.hal.eth_stub.c ... cl674 llpktstb.c ... archiving package/lib/lib/hal_eth_stub/package/package_ti.ndk.hal.eth_stub.o674 package/lib/lib/hal_eth_stub/llpktstb.o674 into lib/hal_eth_stub.a674 ... cle9 package/package_ti.ndk.hal.eth_stub.c ... process_begin: CreateProcess(NULL, C:\ti\ccsv6\tools\compiler\c6000_7.4.11/bin/c l470 -c -qq -pdsw225 -me -mv5e --abi=eabi -eo.oe9 -ea.se9 -ms -Dxdc_target_name_ _=Arm9 -Dxdc_target_types__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_ -O2 -I../../../../ti/ndk//inc -I../../../../ti/ndk//inc/tools - I. -IC:/ti/bios_6_41_00_26/packages -IC:/ti/xdctools_3_30_03_47_core/packages -I ../../../.. -IC:\ti\ccsv6\tools\compiler\c6000_7.4.11/include/rts -IC:\ti\ccsv6\ tools\compiler\c6000_7.4.11/include -fs=./package/lib/lib/hal_eth_stub/package - fr=./package/lib/lib/hal_eth_stub/package -fc package/package_ti.ndk.hal.eth_stu b.c, ...) failed. make (e=2): The system cannot find the file specified. gmake[1]: *** [package/lib/lib/hal_eth_stub/package/package_ti.ndk.hal.eth_stub. oe9] Error 2 xdctools_3_30_03_47_core\gmake.exe: *** [packages/ti/ndk/hal/eth_stub,.libraries ] Error 2 gmake: *** [all] Error 2

    C:\ti\ndk_2_24_01_18>

    Same compiler errors still occur when i try to build the ccs project as well.

  • I missed that you were trying to use COFF. BIOS and NDK do not ship COFF libraries anymore. You can build them to generate them, but we strongly recommend that either you move to ELF or if you really need COFF, move to an older version of BIOS and the NDK. 

    Note: we do no COFF regression testing now, just ELF.

    Todd

  • Ah ok that. Fixed it. Thank You.