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:如何获取mklib.exe的副本,以便在6.1 7上运行CCS C6000 8.1 .0编译器?

Guru**** 2535590 points
Other Parts Discussed in Thread: TMS320C6678, SYSBIOS, TI-CGT

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/566978/compiler-tms320c6678-how-do-i-get-a-copy-of-mklib-exe-for-ccs-6-1-2-compiler-c6000-8-1-0-that-will-run-on-windows-7

部件号:TMS320C6678
主题中讨论的其他部件: TI-CGTSysBIOS

工具/软件:TI C/C++编译器

我正在尝试编译C++示例bigTime_tms320c6678,其中包含C++异常处理,--exceptions,使用Windows 7上的CCS 6.1 Tm2。 这会导致链接错误,因为库rts6600_elf_eh.lib不存在。 由于CCS 6安装中缺少Windows版本的mklib.exe这一已知问题,因此无法生成该文件。

如何获取8.1 0编译器的mklib.exe副本?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    此问题已在更高版本的编译器中修复。  我建议您升级到最新的8.1 .x版本,目前为8.1 .2。  有关 如何升级的详细信息,请参阅Wiki文章编译器发行版。

    谢谢,此致,

    -George

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我已升级到8.1 Tm2,现在可以选择升级的编译器。 我删除了bigtime项目并使用资源管理器重新导入它。 现在,它尝试生成库,但失败。 我怀疑是某种类型的路径配置,但我似乎无法弄清楚。

    环境变量C6000_CG_ROOT = C:/ti/ccsv6/tools/compiler/ti-CGT-C6000_C6x_C_DIR 8.1 = C:8.1 .2\lib

    以下是生成控制台输出的一部分。



    gmake.exe[1]:***[c:\users/111.7692万/appdata/local/temp/ti9359~9359~1/obj/wcscmp.obj]错误2
    process_begin:CreateProcess(NUL, cl6x negl.sa -O3 --diag_warning=225 --quiet -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_enapp-m_en662-m_m/sr_exceptions -m_local_excepts -m_l_l_~1.2 -m_l_~-m/f_~-m/f_excepts -m/f_l_exc/f_l=enabi/-m_excepts -f_l_exc/f_exp -f_exp -m_excepts -m/f_excabi/-f_exc-c-cabi/-f_exp -f_exp -f_exp -f_exp -d/~
    make (e=2):系统找不到指定的文件。

    gmake.exe[1]:***[c:\users/111.7692万/appdata/local/temp/ti9359~9359~1/obj/wcsncmp.obj]错误2
    make (e=2):系统找不到指定的文件。

    gmake.exe[1]:***[c:\users/111.7692万/appdata/local/temp/ti9359~9359~1/obj/wcsncpy.obj]错误2
    make (e=2):系统找不到指定的文件。

    gmake.exe[1]:***[c:\users/111.7692万/appdata/local/temp/ti9359~9359~1/obj/ascii.obj]错误2
    make (e=2):系统找不到指定的文件。

    gmake.exe[1]:***[c:\users/111.7692万/appdata/local/temp/ti9359~9359~1/obj/negll.obj]错误2
    gmake.exe[1]:目标`library'由于错误而未重制。
    >>错误:mklib: gmake error during rts6600_elf_eh.lib buil
    警告#1.0207万-D:自动RTS选择:将索引库"libc.a"解析为"rts6600_elf_eh.lib",但未找到"rts6600_elf_eh.lib"

    未定义 首次引用
    符号 在文件中
    ------------------- --------
    HOSTwrite C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66
    __TI_decpress_none
    __TI_decpress_rle24.
    __TI_ZERO_INIT
    __c6xabi_divu C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66
    __c6xabi_divull C:\Users\111.7692万\workspace_v6_1\bigtime_TMS320C6678\src\SysBIOS\SysBIOS.ae66<BIOS.OBJ></s>6678
    __c6xabi_llshuru C:\Users\111.7692万\workspace_v6_1\bigtime_TMS320C6678\src\SysBIOS\SysBIOS.ae66<BIOS.OBJ></s>6678
    __c6xabi_Remi ./bigtime.obj
    __c6xabi_remu C:\Users\111.7692万\workspace_v6_1\bigtime_TMS320C6678\src\SysBIOS\SysBIOS.ae66<BIOS.OBJ></s>6678
    __c6xabi_reending_cpp_pr3 ./bigtime.obj
    __c6xabi_reending_cpp_pr4 ./bigtime.obj
    __cxa_atexit ./bigtime.obj
    __DSO_HANDLE ./bigtime.obj
    _args_main C:\ti\BIOS_6_45_00_19\packages\ti\targets\rts6000\lib\boot.ae66<boot.oe66>
    不会 C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66
    _注册_锁定 C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66
    _注册_解锁 C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66
    中止 C:\ti\BIOS_6_45_00_19\packages\ti\targets\rts6000\lib\tiTargets.rts6000.ae66<System.oe66></s>6000.
    退出 C:\ti\BIOS_6_45_00_19\packages\ti\targets\rts6000\lib\tiTargets.rts6000.ae66<System.oe66></s>6000.
    memcpy C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66
    Memset C:\Users\111.7692万\workspace_v6_1\bigtime _TMS320C6678\Debug\configPkg\package\cgbigtime _pe66.oe66

    错误#1.0234万-D:仍存在未解析的符号
    错误#1.001万:链接期间发生错误;未构建"BigTime_TMS320C6678.out

    >>编译失败
    gmake:***[bigTime_TMS320C6678.out ]错误1
    gmake:target `all' not remake because of errors.

    ****构建已完成****
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    是使用命令行上的mklib来构建库,还是让CCS自动执行?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我试过这两种。 CCS失败后,我在C:\ti\ccsv6\tools\compiler\ti-CGT-C6000_CCS.2\lib中打开了一个cmd窗口8.1。 我运行了--all命令,但它失败了,它看起来像是temp dir的路径问题,所以我添加了verbose选项和--tmpdir标志。 我仍然失败了。

    mklib --all -v --tmpdir="C:\tmp"

    是否有附加文件的方法,或者我是否应该直接在回复中粘贴输出?

    C:\ti\ccsv6\tools\compiler\ti-CGT-C6000_mklib 8.1 --all -v --tmpdir="C:\tmp"

    选项--index未指定,使用C:\ti\ccsv6\tools\compiler\ti-CGT-C6000_C6000_LIB\libc.a<xmt-block0>6000 8.1

    从1.2 pattern rts6740_elf_eh.lib中构建c:\ti/ccsv6/tools/compiler/ti-CGT~rts/lib/\rts6740_elf_eh.lib

    工作目录:c:/tmp/rts674~1.lib

    mkdir c:/tmp/rts674~1.lib

    mkdir c:/tmp/rts674~1.lib\obj

    cd c:/ti/ccsv6/tools/compiler/ti-cGT~1.2 /lib/src.

    C:/ti/ccsv6/utils/bin/gmake.exe -r -j 4 library Extra _FLAGS="" INC="c:/ti/ccsv6/tools/compiler/ti-CGT~1.2 OBC/lib/src=" obj=

    "C:/tmp/rts674~1.lib/obj" LIB="c:/tmp/rts674~1.lib/rts6740_elf_eh.lib" exceptions=1 EABI_TDEH=1 C6740=1

    '['不被识别为内部或外部命令,

    可操作程序或批处理文件。

    '['不被识别为内部或外部命令,

    可操作程序或批处理文件。

    cl6x catrigf.c -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_enums -mv6740 -c --ti_lib --keep_un

    needed_types=false --abi=eabi -D__TI_table_drived_exceptions --vectypes --c99 -ic:/ti/ccsv6/tools/compiler/ti-CGT~1.2 /l

    ib/src -fr c:/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/obj -ppa -ppd --pp_directory=c:/t

    mP/rts674~1.lib/obj

    process_begin:CreateProcess(NULL),cl6x catrigf.c -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_e.

    nums -mv6740 -c --ti_lib --keep_unneeded_types=false --abi=eabi -D__TI_table_drived_exceptions --vectypes --c99 -ic:/ti/

    ccsv6/tools/compiler/ti-cGT~ccsv/lib/src 1.2 -fr c:/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/

    obj -ppa -ppd --pp_directory=c:/tmp/rts674~1.lib/obj,...)失败。

    cl6x k_expf.c -o3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_enums -mv6740 -c --ti_lib --keep_unn.

    eded_types=false --abi=eabi -D__TI_table_drived_exceptions --vectTypes --c99 -ic:/ti/ccsv6/tools/compiler/ti-CGT~1.2 /li

    b/src -fr c:/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/obj -ppa -ppd --pp_directory=c:/tm

    P/rts674~1.lib/obj

    process_begin:CreateProcess(NULL),cl6x k_expf.c -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_en

    ums -mv6740 -c --ti_lib --keep_unneed_types=false --abi=eabi -D__TI_table_drived_exceptions --vectypes --c99 -ic:/ti/c.

    csv6/tools/compiler/ti-cGT~1.2 c/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/o

    bj -ppa -ppd --pp_directory=c:/tmp/rts674~1.lib/obj,...)失败。

    cl6x s_carg.c -o3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_enums -mv6740 -c --ti_lib --keep_unn.

    eded_types=false --abi=eabi -D__TI_table_drived_exceptions --vectTypes --c99 -ic:/ti/ccsv6/tools/compiler/ti-CGT~1.2 /li

    b/src -fr c:/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/obj -ppa -ppd --pp_directory=c:/tm

    P/rts674~1.lib/obj

    process_begin:CreateProcess(NULL),cl6x s_carg.c -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_en

    ums -mv6740 -c --ti_lib --keep_unneed_types=false --abi=eabi -D__TI_table_drived_exceptions --vectypes --c99 -ic:/ti/c.

    csv6/tools/compiler/ti-cGT~1.2 c/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/o

    bj -ppa -ppd --pp_directory=c:/tmp/rts674~1.lib/obj,...)失败。

    cl6x s_cargf.c -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_enums -mv6740 -c --ti_lib --keep_un

    needed_types=false --abi=eabi -D__TI_table_drived_exceptions --vectypes --c99 -ic:/ti/ccsv6/tools/compiler/ti-CGT~1.2 /l

    ib/src -fr c:/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/obj -ppa -ppd --pp_directory=c:/t

    mP/rts674~1.lib/obj

    process_begin:CreateProcess(NULL),cl6x s_cargf.c -O3 --diag_warning=225 --quiet -mo --mem_model:data=far --no_visible_e.

    nums -mv6740 -c --ti_lib --keep_unneeded_types=false --abi=eabi -D__TI_table_drived_exceptions --vectypes --c99 -ic:/ti/

    ccsv6/tools/compiler/ti-cGT~ccsv/lib/src 1.2 -fr c:/tmp/rts674~1.lib/obj -fs c:/tmp/rts674~1.lib/obj -ft c:/tmp/rts674~1.lib/

    obj -ppa -ppd --pp_directory=c:/tmp/rts674~1.lib/obj,...)失败。

    make (e=2):系统找不到指定的文件。

    gmake.exe:***[c:\tmp/rts674~1.lib/obj/Catrigf.obj]错误2

    gmake.exe:***正在等待未完成的作业...

    make (e=2):系统找不到指定的文件。

    gmake.exe:***[c:\tmp/rts674~1.lib/obj/k_expf.obj]错误2

    make (e=2):系统找不到指定的文件。

    gmake.exe:***[c:\tmp/rts674~1.lib/obj/s_carg.obj]错误2

    make (e=2):系统找不到指定的文件。

    gme.exe:***[c:\tmp/rts674~1.lib/obj/s_cargf.obj]错误2.

    >>错误:mklib:gtmake error during rts6740_elf_eh.lib buil

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    首先,请参阅

    processors.wiki.ti.com/.../Mklib

    您的路径中需要有一个正确的sh.exe;默认情况下,mklib应该从C:\ti\ccsv6\utils\cygwin\sh.exe中选取它

    mklib正在选取c:\ti\ccsv6\utils\bin\gmake.exe,这是正确的。

    从命令行运行mklib时,请确保将环境变量CCS_UTIL_DIR设置为C:\ti\ccsv6\utils,或安装了CCS6的任何位置。 我怀疑您没有设置此变量,但确实设置了XDCTOOLS。

    但我不知道为什么CCS系统失败。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这很有效。 我向PATH变量添加了PATH。 环境变量CCS_UTIL_DIR的名称也不正确。 我有CCS_UTILS_DIR。 我现在可以在命令行和CCS上编译。

    谢谢