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.

TMS320C6678: Build error ... client example in the MCSDK 2.1.2.6

Part Number: TMS320C6678

Hi.

The following error occurs when trying to execute client example for ethernet link test.
How should I use it? 

 

My development environment is as follows.

 - CCS 6.11

 - COMPILER 7.4.0

 - MCSDK 2.1.2.6

 - NDK 2.21.2..43

 - SYS/BIOS 6.33.6.50

 - XDC 3.23.4.60

 

 I did with the client example program in MCSDK 2.1.2.6.
When you import and build a project in CCS 6.11, the following error occurs:
   ( Folder path : C:\ti\mcsdk_2_01_02_06\examples\ndk\client )
How can I remove this error?

 [Error status]

**** Build of configuration Debug for project client_evmc6678l ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../client.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_23_04_60/xs" --xdcpath="C:/ti/pdk_C6678_1_1_2_6/packages;C:/ti/ndk_2_21_02_43/packages;C:/ti/bios_6_33_06_50/packages;C:/ti/mcsdk_2_01_02_06/demos;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r debug -c "C:/ti/C6000 Code Generation Tools 7.4.0" "../client.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring client.xe66 from package/cfg/client_pe66.cfg ...
cle66 package/cfg/client_pe66.c ...
'Finished building: ../client.cfg'
' '
'Building file: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/client.c'
'Invoking: C6000 Compiler'
"C:/ti/C6000 Code Generation Tools 7.4.0/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/C6000 Code Generation Tools 7.4.0/include" --include_path="C:/ti/mcsdk_2_01_02_06/examples/ndk/client" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/qmss" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/cppi" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="client.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/mcsdk_2_01_02_06/examples/ndk/client/client.c"
'Finished building: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/client.c'
' '
'Building file: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/platform_osal.c'
'Invoking: C6000 Compiler'
"C:/ti/C6000 Code Generation Tools 7.4.0/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/C6000 Code Generation Tools 7.4.0/include" --include_path="C:/ti/mcsdk_2_01_02_06/examples/ndk/client" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/qmss" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/cppi" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="platform_osal.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/mcsdk_2_01_02_06/examples/ndk/client/platform_osal.c"
'Finished building: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/platform_osal.c'
' '
'Building file: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/resourcemgr.c'
'Invoking: C6000 Compiler'
"C:/ti/C6000 Code Generation Tools 7.4.0/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/C6000 Code Generation Tools 7.4.0/include" --include_path="C:/ti/mcsdk_2_01_02_06/examples/ndk/client" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/qmss" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/cppi" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="resourcemgr.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/mcsdk_2_01_02_06/examples/ndk/client/resourcemgr.c"
'Finished building: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/resourcemgr.c'
' '
'Building file: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/webpage.c'
'Invoking: C6000 Compiler'
"C:/ti/C6000 Code Generation Tools 7.4.0/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/C6000 Code Generation Tools 7.4.0/include" --include_path="C:/ti/mcsdk_2_01_02_06/examples/ndk/client" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/qmss" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/drv/cppi" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="webpage.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/mcsdk_2_01_02_06/examples/ndk/client/webpage.c"
'Finished building: C:/ti/mcsdk_2_01_02_06/examples/ndk/client/webpage.c'
' '
'Building target: client_evmc6678l.out'
'Invoking: C6000 Linker'
"C:/ti/C6000 Code Generation Tools 7.4.0/bin/cl6x" -mv6600 --abi=eabi -g --display_error_number --diag_warning=225 -z -m"client_evmc6678l.map" -i"C:/ti/C6000 Code Generation Tools 7.4.0/lib" -i"C:/ti/C6000 Code Generation Tools 7.4.0/include" --reread_libs --warn_sections --xml_link_info="client_evmc6678l_linkInfo.xml" --rom_model -o "client_evmc6678l.out" "./client.obj" "./platform_osal.obj" "./resourcemgr.obj" "./webpage.obj" -l"configPkg/linker.cmd" -l"libc.a"
<Linking>
error #10319-D: symbols in the reserved far sections cannot be accessed as
   near; symbol "qmssLObjIsValid" in the far section
   "C:\ti\pdk_C6678_1_1_2_6\packages\ti\drv\qmss\lib\ti.drv.qmss.ae66<qmss_drv.
   oe66>(.far:local:init)" is accessed as near in the section
   "C:\ti\pdk_C6678_1_1_2_6\packages\ti\drv\qmss\lib\ti.drv.qmss.ae66<qmss_acc.
   oe66>(.text:Qmss_disableAccumulator)"
error #10319-D: symbols in the reserved far sections cannot be accessed as
   near; symbol "qmssLObjIsValid" in the far section
   "C:\ti\pdk_C6678_1_1_2_6\packages\ti\drv\qmss\lib\ti.drv.qmss.ae66<qmss_drv.
   oe66>(.far:local:init)" is accessed as near in the section
   "C:\ti\pdk_C6678_1_1_2_6\packages\ti\drv\qmss\lib\ti.drv.qmss.ae66<qmss_acc.
   oe66>(.text:Qmss_programAccumulator)"
error #10010: errors encountered during linking; "client_evmc6678l.out" not
   built

>> Compilation failure
gmake: *** [client_evmc6678l.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Hi,

    Have you modified anything in the project? Did you setup the environment using source pdksetupenv.sh? The errors you face point that your linker.cmd is messed up. See: processors.wiki.ti.com/.../C6000_Memory_models

    Also this issue might be caused if you have multiple SDK versions installed and your project configuration point packages from different releases. Make sure you check that as well.

    Best Regards,
    Yordan
  • Thank you for your reply.

    Nothing has been modified in the project.
    However, PDK and OpenMP were built to use OpenMP 2.1.16.3.

    (By supplied Wiki site information...                  http://processors.wiki.ti.com/index.php/Porting_OpenMP_2.x_to_KeyStone_1    )
    Is this a problem with using client sample projects?


    So I only reinstalled MCSDK 2.1.16.3 and ran the client project. However, the same error occurred.
    Is there a problem with installing and using both the CCS and MCSDK 2.1.16.3 product lines?

    If there is no problem, I will try to create a development environment on another PC.

  • Hi Yordan.

    I have identified the cause of the error.
    Reason is PDK build process to use OpenMP 2.x. The contents are as follows.



    If you do not build a PDK, the building of the project is completed, but the same error occurs after the PDK build progresses.

    How do we get out of this error and use NDK and OpenMP 2.x?

  • Please move to Processor SDK for C667x www.ti.com/.../PROCESSOR-SDK-C667X , MCSDK 2.x is obsolete.

    Regards,
    Garrett