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.

[参考译文] Yocto 构建不再工作。

Guru**** 2562120 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1216609/yocto-build-is-no-longer-working

您好!

它能正常工作、但当它不能工作时、我尝试了这台已使用 TI/Yocto 构建生成图像的机器、它也失败了。

~/tisdk/build$ MACHINE=am62-evm bitbake -k tisdk-base-image
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/fred/tisdk/build/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 2657 at 2023-04-14 09:23:49.908110 ---
ERROR: Failed to obtain external Arm toolchain version: Execution of '${DEF_TOOLCHAIN_PATH}/bin/INVALID-linux-gcc -v' failed: command not found
ERROR: Failed to obtain external Arm toolchain version: Execution of '${DEF_TOOLCHAIN_PATH}/bin/INVALID-linux-gcc -v' failed: command not found
ERROR: Error: EXTERNAL_TOOLCHAIN path '${DEF_TOOLCHAIN_PATH}' does not exist

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

    您能否仔细检查您的 Linux 环境是否根据 SDK v8.x 指令设置了正确的交叉工具链变量? 如果正确执行、以下命令输出应如下所示(路径可能不同、如果有效、没问题):

    $ env | grep TOOLCHAIN
    TOOLCHAIN_PATH_ARMV8=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
    TOOLCHAIN_PATH_ARMV7=/opt/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf

    请注意、这些更改不会持续存在、每次都需要重新输入、除非将它们添加到.bashrc 中。 在我的构建机器上、我已经完成了以下操作、因此不需要一直重新定义这些 env 变量:

    $ tail -n5 ~/.bashrc 
    # Toolchain definitions as required by TI SDK Yocto builds
    export TOOLCHAIN_PATH_ARMV7=/opt/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf
    export TOOLCHAIN_PATH_ARMV8=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
    

    此致、Andreas

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

    哦、我只是注意到您的机器定义不正确。 应该是这样  MACHINE=am62xx-EVM 那么这个特定的错误应该会消失。

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

    "哦,我知道了。" 这将会进行试用、看看会发生什么、谢谢。