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.

OpenMP application and errors

Other Parts Discussed in Thread: MATHLIB

**** Build of configuration Debug for project omptest2 ****

/opt/ti/ccsv6/utils/bin/gmake -k all
Building file: ../omp_config.cfg
Invoking: XDCtools
"/opt/ti/xdctools_3_32_00_06_core/xs" --xdcpath="/opt/ti/ipc_3_43_01_03/packages;/opt/ti/openmp_dsp_k2x_2_03_01_00/packages;/opt/ti/bios_6_45_01_29/packages;/opt/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6630K2L -r release -c "/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0" "../omp_config.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...
subdir_rules.mk:14: recipe for target 'configPkg/linker.cmd' failed
js: "/root/workspace_v6_1_3/omptest2/omp_config.cfg", line 90: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.csl' along the path: '/opt/ti/ipc_3_43_01_03/packages;/opt/ti/openmp_dsp_k2x_2_03_01_00/packages;/opt/ti/bios_6_45_01_29/packages;/opt/ti/ccsv6/ccs_base;/opt/ti/xdctools_3_32_00_06_core/packages;..;'. Ensure that the package path is set correctly.
    "./package/cfg/omp_config_pe66.cfg", line 188
gmake: *** [package/cfg/omp_config_pe66.xdl] Error 1
js: "/opt/ti/xdctools_3_32_00_06_core/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 ****

root@am:/opt/ti/openmp_dsp_k2x_2_03_01_00/packages/examples# ls hello_with_make/config.bld  Makefile          omp_config_bm.cfg
hello.c     omp_config_api.c  omp_config.cfg

I created RTSC project and copied  hello.c and omp_config.cfg to the project and tried to build the project by CCSv6. How can i remove the errors?

  • Hello,

    I have notified OpenMP experts to address the above query. They will get back to as soon as possible. Thank you.

  • js: "/root/workspace_v6_1_3/omptest2/omp_config.cfg", line 90: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.csl' along the path: '/opt/ti/ipc_3_43_01_03/packages;/opt/ti/openmp_dsp_k2x_2_03_01_00/packages;/opt/ti/bios_6_45_01_29/packages;/opt/ti/ccsv6/ccs_base;/opt/ti/xdctools_3_32_00_06_core/packages;..;'. Ensure that the package path is set correctly.

    It seems you have not installed/added the PDK package for K2L (from processor SDK) ?
    If not, install it and select pdk of k2l while in RTSC section of CCS project settings.

    C:\ti\pdk_k2l_4_0_2
    C:\ti\pdk_k2l_4_0_2\packages\ti\csl
  • Is this still open? Can you close it or report back what is your status?
  • I have ticked k2l PDK , 4.0.2 by CCSv6 menu, RTSC tab. Is that enough? there are still errors though it was selected before too:


    **** Build of configuration Debug for project omptest2 ****

    /opt/ti/ccsv6/utils/bin/gmake -k all
    Building file: ../hello.c
    Invoking: C6000 Compiler
    "/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" --include_path="/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --diag_wrap=off --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="hello.d" --cmd_file="configPkg/compiler.opt" "../hello.c"

    >> Compilation failure
    subdir_rules.mk:7: recipe for target 'hello.obj' failed
    "../hello.c", line 13: fatal error #1965: cannot open source file "omp.h"
    1 catastrophic error detected in the compilation of "../hello.c".
    Compilation terminated.
    gmake: *** [hello.obj] Error 1
    Building file: ../omp_config.cfg
    Invoking: XDCtools
    "/opt/ti/xdctools_3_32_00_06_core/xs" --xdcpath="/opt/ti/ctoolslib_2_2_0_0/packages;/opt/ti/dsplib_c66x_3_4_0_0/packages;/opt/ti/edma3_lld_2_12_01_24/packages;/opt/ti/framework_components_3_40_02_07/packages;/opt/ti/framework_components_3_40_02_07/examples;/opt/ti/imglib_c66x_3_1_1_0/packages;/opt/ti/ipc_3_43_01_03/packages;/opt/ti/mathlib_c66x_3_1_1_0/packages;/opt/ti/ndk_2_24_03_35/packages;/opt/ti/openmp_dsp_k2x_2_03_01_00/packages;/opt/ti/bios_6_45_01_29/packages;/opt/ti/uia_2_00_03_43/packages;/opt/ti/xdais_7_24_00_04/packages;/opt/ti/xdais_7_24_00_04/examples;/opt/ti/pdk_k2l_4_0_2/packages;/opt/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6630K2L -r release -c "/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0" "../omp_config.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...
    subdir_rules.mk:14: recipe for target 'configPkg/linker.cmd' failed
    js: "/root/workspace_v6_1_3/omptest2/omp_config.cfg", line 126: TypeError: Cannot read property "base" from undefined (/root/workspace_v6_1_3/omptest2/omp_config.cfg#126)
    "./package/cfg/omp_config_pe66.cfg", line 188
    gmake: *** [package/cfg/omp_config_pe66.xdl] Error 1
    js: "/opt/ti/xdctools_3_32_00_06_core/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 error is about finding omp.h file at first. and when i change #include <omp.h> , to #include "/opt/ti/openmp_dsp_k2x_2_03_01_00/packages/ti/runtime/openmp/omp.h"
    I have other errors:

    **** Build of configuration Debug for project omptest2 ****

    /opt/ti/ccsv6/utils/bin/gmake -k all
    Building file: ../hello.c
    Invoking: C6000 Compiler
    "/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" --include_path="/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --diag_wrap=off --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="hello.d" --cmd_file="configPkg/compiler.opt" "../hello.c"
    "../hello.c", line 22: warning #163-D: unrecognized #pragma
    Finished building: ../hello.c

    Building file: ../omp_config.cfg
    Invoking: XDCtools
    "/opt/ti/xdctools_3_32_00_06_core/xs" --xdcpath="/opt/ti/ctoolslib_2_2_0_0/packages;/opt/ti/dsplib_c66x_3_4_0_0/packages;/opt/ti/edma3_lld_2_12_01_24/packages;/opt/ti/framework_components_3_40_02_07/packages;/opt/ti/framework_components_3_40_02_07/examples;/opt/ti/imglib_c66x_3_1_1_0/packages;/opt/ti/ipc_3_43_01_03/packages;/opt/ti/mathlib_c66x_3_1_1_0/packages;/opt/ti/ndk_2_24_03_35/packages;/opt/ti/openmp_dsp_k2x_2_03_01_00/packages;/opt/ti/bios_6_45_01_29/packages;/opt/ti/uia_2_00_03_43/packages;/opt/ti/xdais_7_24_00_04/packages;/opt/ti/xdais_7_24_00_04/examples;/opt/ti/pdk_k2l_4_0_2/packages;/opt/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6630K2L -r release -c "/opt/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0" "../omp_config.cfg"
    configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...
    subdir_rules.mk:14: recipe for target 'configPkg/linker.cmd' failed
    js: "/root/workspace_v6_1_3/omptest2/omp_config.cfg", line 126: TypeError: Cannot read property "base" from undefined (/root/workspace_v6_1_3/omptest2/omp_config.cfg#126)
    "./package/cfg/omp_config_pe66.cfg", line 188
    gmake: *** [package/cfg/omp_config_pe66.xdl] Error 1
    js: "/opt/ti/xdctools_3_32_00_06_core/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 ****