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.

[参考译文] Processor-SDK-AM64X:tisdk Build failure

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1092850/processor-sdk-am64x-tisdk-build-failure

部件号:processor-SDK-AM64X

我按照 software-dl.ti.com/.../Release_Specific_Release_Notes.html上的指示操作

使用“~”/tisdk/configs/processor-sdk-linux/processor-sdk-linux-08_01_00.txt config和“machine=am64xx-EVM bitbake tisdk-base-image”可以提供以下输出:

警告:onnxruntime-url.0-r0_psdkla_3 do_fetch:无法获取1.7 git://github.com/onnx/onnx-tensorrt;protocol=https;branch=master;destsuffix=~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7 url.0-r0_psdkla_3/git/cmake/external/onnx-tensorrt;name=cmake-external-onnx-tensorrt,正在尝试镜像(如果可用)
错误:onnxruntime-1.7 .0-r0_psdkla_3 do_fetch:fetcher故障:即使从上游,也无法在分支主机中找到修订版dc22bb323ece3c6541.9717万be8a0d3d0f318a61fa
错误:onnxruntime-1.7 url.0-r0_psdkla_3 do_fetch:Bitbake Fetcher错误:FetchError('无法从任何源获取url.','git://github.com/onnx/onnx-tensorrt;protocol=https;branch=master;destsuffix=~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7 url.0-r0_psdkla_3/git/cmake /external/onnx-tensorrt;name=nontrt -
错误:故障日志文件存储在以下位置:~/tisdk/build/arago-tmp-external_arm-glibc/work /Aarch64-linux/onnxruntime / 1.7 .0-r0_psdkla_3/temp/log.do_fetch.4551
错误:任务(~/tisdk/sources/meta-psdkla/fipes-core/packagegroups/onnxruntime.bb:do_fetch)失败,退出代码为'1'
注意:任务摘要:尝试执行2768个任务,其中2627个任务不需要重新运行,1个任务失败。
注意:正在编写buildhistory
注:写入buildhistory需要1秒
注意:正在编写buildhistory
注:写入buildhistory需要1秒

摘要:1个任务失败:
 ~/tisdk/sources/meta-psdkla/fipmes-core/packagegroups/onnxruntime.bb:do_fetch
摘要:显示了7条警告消息。
摘要:显示了172条错误消息,返回非零退出代码。

尝试按照 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/107.2575万/j7expcxevm-building-of-tisdk-fails-due-to-fetch-from-incorrect-git-repo-branch-name/3969162中396.9162万中的建议,通过 更改/tisdk/sources/meta-psdkla/fecus-core/packagegroups/onnxruntime.bb来选择commit,如下所示:

git diff onnxruntime.bb
diff --git a/cipese-core/packagegroups/onnxrunruntime.bb b/cipese-core/packagegroups/onnxruntime.bb
索引c8fef5f..bc36d2710.0644万
-- a/cipse-core/packagegroups/onnxruntime.bb
+++ b/pipnes-core/packagegroups/onnxruntime.bb
@@-52,7+52,7 @@ LIC_FILE_CHKSUM ="file://license;MD5=0f7e3b1308cb5c00b372a6e78835732d \7883.5732万 \
                    文件://cdm/external/FeaturesLibrary/src/3rdParty/RE2/license;md5=3b5c31eb512bdf3cb11ffd5713963760 \
 "
 
-SRC_URI ="git://github.com/microsoft/onnxruntime;protocol=https;branch=master;name=base \
+SRC_URI ="git.ti.com/gitweb \
           Git://github.com/gabime/spdlog;protocol=https;branch=v2.x;destsuffix=${S}/server/external/spdlog;name=server-external-spdlog \
           Git://github.com/apple/coremltools;protocol=https;branch=main;destsuffix=${S}/cmake/external/coremltools;name=cmake-external-coremltools \
           Git://github.com/microsoft/onnxruntime-tvm;protocol=https;branch=nuphar;destsuffix=${S}/cmake/external/tvm;name=cmake-external-tvm \

将生成以下输出:

警告:onnxruntime-url.0-r0_psdkla_3 do_fetch:无法获取1.7 git.ti.com/gitweb,正在尝试镜像(如果可用)
错误:onnxruntime-1.7 .0-r0_psdkla_3 do_fetch:URL为'git.ti.com/gitweb的提取器失败。 fetch命令返回URL git.ti.com/gitweb的成功, 但~ë/tisdk/downloads/meta-psdkla.git不存在?!
错误:onnxruntime-1.7 url.0-r0_psdkla_3 do_fetch:Bitbake Fetcher错误:FetchError('无法从任何源获取url.','git.ti.com/gitweb
错误:故障日志文件存储在以下位置:~/tisdk/build/arago-tmp-external_arm-glibc/work /Aarch64-linux/onnxruntime / 1.7 .0-r0_psdkla_3/temp/log.do_fetch.1.7693万
错误:任务(~/tisdk/sources/meta-psdkla/fipes-core/packagegroups/onnxruntime.bb:do_fetch)失败,退出代码为'1'
注意:任务摘要:尝试了2251项任务,其中2206项无需重新运行,1项失败。
注意:正在编写buildhistory
注:写入buildhistory需要1秒
注意:正在编写buildhistory
注:写入buildhistory需要1秒

摘要:1个任务失败:
 ~/tisdk/sources/meta-psdkla/fipmes-core/packagegroups/onnxruntime.bb:do_fetch
摘要:显示了5条警告消息。
摘要:显示2条错误消息,返回非零退出代码。

尝试 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/94.8986万/faq-tda4vm-how-to-resolve-yocto-build-failure-while-trying-to-fetch-repository中建议的解决方案 ,如下所示:

git diff onnxruntime.bb
diff --git a/cipese-core/packagegroups/onnxrunruntime.bb b/cipese-core/packagegroups/onnxruntime.bb
索引c8fef5f..b0.9524万f 10.0644万
-- a/cipse-core/packagegroups/onnxruntime.bb
+++ b/pipnes-core/packagegroups/onnxruntime.bb
@@-52,7+52,9 @@ LIC_FILE_CHKSUM ="file://license;MD5=0f7e3b1308cb5c00b372a6e78835732d \7883.5732万 \
                    文件://cdm/external/FeaturesLibrary/src/3rdParty/RE2/license;md5=3b5c31eb512bdf3cb11ffd5713963760 \
 "
 
-SRC_URI ="git://github.com/microsoft/onnxruntime;protocol=https;branch=master;name=base \
+SRC_URI ="git.ti.com/gitweb \
+           文件://0001-DO-not-strip-pdata_tools-at-DO-install.patch \
+           文件://use-sh-on路径.patch \
           Git://github.com/gabime/spdlog;protocol=https;branch=v2.x;destsuffix=${S}/server/external/spdlog;name=server-external-spdlog \
           Git://github.com/apple/coremltools;protocol=https;branch=main;destsuffix=${S}/cmake/external/coremltools;name=cmake-external-coremltools \
           Git://github.com/microsoft/onnxruntime-tvm;protocol=https;branch=nuphar;destsuffix=${S}/cmake/external/tvm;name=cmake-external-tvm \
@@-224,7 + 226,7 @@ Extra _OECMAKE ="\
    -Donnxruntime使用Tidl=on \
 "
 
-DO安装(){
+DO安装(){
    cmake操作安装
 
    安装-d ${B}/docs/python

失败如下:

警告:onnxruntime-url.0-r0_psdkla_3 do_fetch:无法获取1.7 git.ti.com/gitweb,正在尝试镜像(如果可用)
错误:onnxruntime-1.7 .0-r0_psdkla_3 do_fetch:URL为'git.ti.com/gitweb的提取器失败。 fetch命令返回URL git.ti.com/gitweb的成功, 但~ë/tisdk/downloads/meta-psdkla.git不存在?!
错误:onnxruntime-1.7 url.0-r0_psdkla_3 do_fetch:Bitbake Fetcher错误:FetchError('无法从任何源获取url.','git.ti.com/gitweb
错误:故障日志文件存储在以下位置:~/tisdk/build/arago-tmp-external_arm-glibc/work /Aarch64-linux/onnxruntime / 1.7 .0-r0_psdkla_3/temp/log.do_fetch.1.7101万
错误:任务(~/tisdk/sources/meta-psdkla/fipes-core/packagegroups/onnxruntime.bb:do_fetch)失败,退出代码为'1'
注意:任务摘要:尝试执行2704项任务,其中2666项无需重新运行,1项失败。
注意:正在编写buildhistory
注:写入buildhistory需要1秒
注意:正在编写buildhistory
注:写入buildhistory需要1秒

摘要:1个任务失败:
 ~/tisdk/sources/meta-psdkla/fipmes-core/packagegroups/onnxruntime.bb:do_fetch
摘要:显示了9条警告消息。
摘要:显示2条错误消息,返回非零退出代码。

如何构建SDK? 是否有可用的修复程序?

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

    您好!

    我最近在尝试从源代码构建AM64x SDK 08.01 v时遇到了这个问题,是的,它与一些上游存储库重命名其分支有关,不幸的是,这并没有很好地反映在错误消息Yocto outputs...  但是,一个系统信息库也更改了其URL (Github项目)。

    附件是我几天前为了让AM64x SDK 08.01 v从源代码构建而进行的所有更改的摘要,请给出一个例子。

    此致,Andreas

    e2e.ti.com/.../am64_2D00_sdk_2D00_08.01_2D00_yocto_2D00_fix.txt

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

    您好,

    感谢您的建议!

    我调整了onnxruntime.bb文件,如下所示:

    用户@host:../tisdk/sources/meta-psdkla/fipmes-core/packagegroups$ git diff
    diff --git a/cipese-core/packagegroups/onnxrunruntime.bb b/cipese-core/packagegroups/onnxruntime.bb
    索引c8fef5f..879.8219万 10.0644万
    -- a/cipse-core/packagegroups/onnxruntime.bb
    +++ b/pipnes-core/packagegroups/onnxruntime.bb
    @@-68,20 + 68,20 @@ SRC_URI ="git://github.com/microsoft/onnxruntime;protocol=https;branch=master;n
               Git://github.com/tensorflow/tensorboard;protocol=https;branch=master;destsuffix=${S}/cmake/external/tensorboard;name=cmake-external-tensorboard \
               Git://github.com/HowardHinnant/date;protocol=https;branch=master;destsuffix=${S}/cmake/external/date;name=cmake-external-date \
               Git://github.com/google/flatbuffers;protocol=https;branch=master;destsuffix=${S}/cmake/external/flatbuffers;name=cmake-external-flatbuffers \
    -          git://github.com/onnx/onnx-tensorrt;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx-tensorrt;name=cmake-external-onnx-tensorrt \
    +          git://github.com/onnx/onnx-tensorrt;protocol=https;branch=main;destsuffix=${S}/cmake/external/onnx-tensorrt;name=cmake-external-onnx-tensorrt \
               git://gest.1;destsuffix=${S}/cmake github.com/onnx/onnx;protocol=https;branch=rel-/external/onnx-tensorrt/thire_party/onnx;name=cmake-external-onnx-tensorrt-thir-party-onnx \ 1.6
               Git://github.com/google/benchmark;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx-tensorrt/third_party/onnx/third_party/benchmark;name=cmake-external-onnx-tensorrt-third-party-onnx-third-party-benchmark \
               Git://github.com/pybind/pybind11;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx-tensorrt/third_party/onnx/third_party/pybind11;name=cmake-external-onnx-tensorrt-third-party-onnx-third-party-pybind11 \
               Git://github.com/wjakob/clang-cindex-python3;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang;name=cmake-external-onnx-tensorrt-third-party-onnx-third-party-pybind11-tools-clang \
               Git://github.com/google/re2;protocol=https;branch=main;destsuffix=${S}/cmake/external/re2;name=cmake-external-re2 \
    -          git://github.com/onnx/onnx;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx;name=cmake-external-onnx \
    +          git://github.com/onnx/onnx;protocol=https;branch=main;destsuffix=${S}/cmake/external/onnx;name=cmake-external-onnx \
               Git://github.com/google/benchmark;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx/third_party/benchmark;name=cmake-external-onnx-third-party-benchmark \
               Git://github.com/pybind/pybind11;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx/third_party/pybind11;name=cmake-external-onnx-third-party-pybind11 \
               Git://github.com/martinmoene/optional-lite;protocol=https;branch=master;destsuffix=${S}/cmake/external/optional-lite;name=cmake-external-optional-lite \
               Git://github.com/microsoft/wil;protocol=https;branch=master;destsuffix=${S}/cmake/external/wil;name=cmake-external-wil \
               Git://github.com/NVlabs/cub;protocol=https;branch=main;destsuffix=${S}/cmake/external/cub;name=cmake-external-cub \
               Git://github.com/google/nsync;protocol=https;branch=master;destsuffix=${S}/cmake/external/nsync;name=cmake-external-nsync \
    -          git://github.com/protocolbuffers/protobuf;protocol=https;branch=master;destsuffix=${S}/cmake/external/protobuf;name=cmake-external-protobuf \
    +          git://github.com/protocolbuffers/protobuf;protocol=https;branch=main;destsuffix=${S}/cmake/external/protobuf;name=cmake-external-protobuf \
               Git://github.com/google/googletest;protocol=https;branch=master;destsuffix=${S}/cmake/external/protobuf/third_party/googletest;name=cmake-external-protobuf-third-party-googletest \
               Git://github.com/google/benchmark;protocol=https;branch=master;destsuffix=${S}/cmake/external/protobuf/third_party/benchmark;name=cmake-external-protobuf-third-party-benchmark \
               Git://github.com/jarro2783/cxxopts;protocol=https;branch=master;destsuffix=${S}/cmake/external/cxxopts;name=cmake-external-cxxopts \
    @@-224,7 + 224,7 @@ Extra _OECMAKE ="\
        -Donnxruntime使用Tidl=on \
     "
     
    -DO安装(){
    +DO安装(){
        cmake操作安装
     
        安装-d ${B}/docs/python
    (完)
               Git://github.com/pybind/pybind11;protocol=https;branch=master;destsuffix=${S}/cmake/external/onnx/third_party/pybind11;name=cmake-external-onnx-third-party-pybind11 \
               Git://github.com/martinmoene/optional-lite;protocol=https;branch=master;destsuffix=${S}/cmake/external/optional-lite;name=cmake-external-optional-lite \
               Git://github.com/microsoft/wil;protocol=https;branch=master;destsuffix=${S}/cmake/external/wil;name=cmake-external-wil \
               Git://github.com/NVlabs/cub;protocol=https;branch=main;destsuffix=${S}/cmake/external/cub;name=cmake-external-cub \
               Git://github.com/google/nsync;protocol=https;branch=master;destsuffix=${S}/cmake/external/nsync;name=cmake-external-nsync \
    -          git://github.com/protocolbuffers/protobuf;protocol=https;branch=master;destsuffix=${S}/cmake/external/protobuf;name=cmake-external-protobuf \
    +          git://github.com/protocolbuffers/protobuf;protocol=https;branch=main;destsuffix=${S}/cmake/external/protobuf;name=cmake-external-protobuf \
               Git://github.com/google/googletest;protocol=https;branch=master;destsuffix=${S}/cmake/external/protobuf/third_party/googletest;name=cmake-external-protobuf-third-party-googletest \
               Git://github.com/google/benchmark;protocol=https;branch=master;destsuffix=${S}/cmake/external/protobuf/third_party/benchmark;name=cmake-external-protobuf-third-party-benchmark \
               Git://github.com/jarro2783/cxxopts;protocol=https;branch=master;destsuffix=${S}/cmake/external/cxxopts;name=cmake-external-cxxopts \
    @@-224,7 + 224,7 @@ Extra _OECMAKE ="\
        -Donnxruntime使用Tidl=on \
     "
     
    -DO安装(){
    +DO安装(){
        cmake操作安装
     
        安装-d ${B}/docs/python

    这似乎已解决了onnxruntime问题。

    我没有protobuf_probub.4.bb 3.11 文件,而是3.11 有一个我更改过的protobuf_probuf_probub.4.bbappend文件:

    diff --git a/fipes-devtools/protobuf/protobuf_f.4.bbappend 3.11 b/fipes-devtools/protobuf_protobuf_protobuf_pros.4.bbappend 3.11
    索引872ccfa..068cb7b 10.0644万
    -- a/fipse-devtools/protobuf/protobuf_protobuf.4.bbappend 3.11
    ++ b/fipes-devtools/protobuf/protobuf_protobuf.4.bbappend 3.11
    @@-5,7 + 5,7 @@ SRC_URI_REMOVE ="\
     "
     
     src_URI_append ="\
    -   git://github.com/google/protobuf.git;branch=master \
    -"
    +           git://github.com/protocolbuffers/protobuf.git;branch=3.11 https:x;protocol=https \
    +"            
     
     pr_append ="_psdkla"

    这似乎是目前处理我的问题的方法。 很遗憾,这会产生以下错误消息:

    ERROR: linux-ti-staging-5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32 do_package: Error executing a python function in exec_func_python() autogenerated:
    
    The stack trace of python calls that resulted in this exception/failure was:
    File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
         0001:
     *** 0002:do_package(d)
         0003:
    File: '../tisdk/sources/oe-core/meta/classes/package.bbclass', lineno: 2315, function: do_package
         2311:
         2312:    cpath = oe.cachedpath.CachedPath()
         2313:
         2314:    for f in (d.getVar('PACKAGESPLITFUNCS') or '').split():
     *** 2315:        bb.build.exec_func(f, d)
         2316:
         2317:    ###########################################################################
         2318:    # Process PKGDEST
         2319:    ###########################################################################
    File: '../tisdk/sources/bitbake/lib/bb/build.py', lineno: 254, function: exec_func
         0250:    with bb.utils.fileslocked(lockfiles):
         0251:        if ispython:
         0252:            exec_func_python(func, d, runfile, cwd=adir)
         0253:        else:
     *** 0254:            exec_func_shell(func, d, runfile, cwd=adir)
         0255:
         0256:    try:
         0257:        curcwd = os.getcwd()
         0258:    except:
    File: '../tisdk/sources/bitbake/lib/bb/build.py', lineno: 455, function: exec_func_shell
         0451:    with open(fifopath, 'r+b', buffering=0) as fifo:
         0452:        try:
         0453:            bb.debug(2, "Executing shell function %s" % func)
         0454:            with open(os.devnull, 'r+') as stdin, logfile:
     *** 0455:                bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
         0456:        finally:
         0457:            os.unlink(fifopath)
         0458:
         0459:    bb.debug(2, "Shell function %s finished" % func)
    File: '../tisdk/sources/bitbake/lib/bb/process.py', lineno: 184, function: run
         0180:
         0181:    if pipe.returncode != 0:
         0182:        if log:
         0183:            # Don't duplicate the output in the exception if logging it
     *** 0184:            raise ExecutionError(cmd, pipe.returncode, None, None)
         0185:        raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
         0186:    return stdout, stderr
    Exception: bb.process.ExecutionError: Execution of '../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/run.populate_srcipk_package.7555' failed with exit code 1
    
    ERROR: Logfile of failure stored in: ../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/log.do_package.7555
    ERROR: Task (../tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_package) failed with exit code '1'

    我不确定对.bb文件所做的更改是否会导致python脚本失败。

    再次感谢您的建议

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

    您好,Floki,

    我认为.bb的更改与此无关,错误消息指出内核源代码的IPK打包失败。 我最近自己也看到过类似的问题,目前我正在与内部团队进行核实,以便更好地了解根本原因。 在此期间,我通过将以下内容添加到local.conf中,专门禁用内核源代码的IPK打包(以及对我来说也失败的U-Boot),从而完成了我的构建。

    create_SRCIPK_pn-linux-ti-staging ="0"
    create_SRCIPK_pn-u-boot-ti-staging ="0"

    请您尝试一下,并告诉我是否允许您继续构建。

    此致,Andreas

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

    您好,Andreas:

    感谢您的建议。

    在./tisdk/build/conf/local.conf的结尾添加建议的行时,在尝试bitbake时会显示以下错误消息:

    ERROR: linux-ti-staging-5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32 do_compile: oe_runmake failed
    ERROR: linux-ti-staging-5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32 do_compile: Execution of '../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/run.do_compile.28961' failed with exit code 1
    ERROR: Logfile of failure stored in: ../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/log.do_compile.28961
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: make -j 9 HOSTCC=gcc  -isystem../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/include -O2 -pipe -L../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/lib                         -L../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/lib                         -Wl,-rpath,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/lib                         -Wl,-rpath,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/lib                         -Wl,-O1 HOSTCPP=gcc  -E HOSTCXX=g++  -isystem../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/include -O2 -pipe -L../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/lib                         -L../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/lib                         -Wl,-rpath,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/usr/lib                         -Wl,-rpath,../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native/lib                         -Wl,-O1 Image CC=aarch64-none-linux-gnu-gcc   -fuse-ld=bfd -fmacro-prefix-map=../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32=/usr/src/debug/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32                      -fdebug-prefix-map=../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32=/usr/src/debug/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32                      -fdebug-prefix-map=../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot=                      -fdebug-prefix-map=../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/recipe-sysroot-native=  -fdebug-prefix-map=../tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source=/usr/src/kernel   LD=aarch64-none-linux-gnu-ld.bfd   LOADADDR=0x80008000 DTC_FLAGS=-@
    |   GEN     Makefile
    |   CALL    ../tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/scripts/atomic/check-atomics.sh
    |   CALL    ../tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/scripts/checksyscalls.sh
    |   CHK     include/generated/compile.h
    |   GEN     .version
    |   CHK     include/generated/compile.h
    |   LD      vmlinux.o
    |   MODPOST vmlinux.symvers
    | WARNING: modpost: EXPORT symbol "msi_desc_to_pci_sysdata" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "msi_desc_to_pci_dev" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_msix_vec_count" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_enable_msi" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_free_irq_vectors" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_restore_msi_state" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_irq_get_affinity" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_disable_msi" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_enable_msix_range" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_alloc_irq_vectors_affinity" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_msi_mask_irq" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_disable_msix" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_irq_vector" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_msi_unmask_irq" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_write_msi_msg" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_msi_create_irq_domain" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_msi_enabled" [vmlinux] version generation failed, symbol will not be versioned.
    | WARNING: modpost: EXPORT symbol "pci_msi_vec_count" [vmlinux] version generation failed, symbol will not be versioned.
    |   MODINFO modules.builtin.modinfo
    |   GEN     modules.builtin
    |   LD      .tmp_vmlinux.kallsyms1
    | aarch64-none-linux-gnu-ld.bfd: drivers/pci/msi.o: relocation R_AARCH64_ABS32 against `__crc_pci_msi_mask_irq' can not be used when making a shared object
    | ../tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/Makefile:1179: recipe for target 'vmlinux' failed
    | make[1]: *** [vmlinux] Error 1
    | ../tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/Makefile:185: recipe for target '__sub-make' failed
    | make: *** [__sub-make] Error 2
    | ERROR: oe_runmake failed
    | WARNING: ../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/run.do_compile.28961:1 exit 1 from 'exit 1'
    | ERROR: Execution of '../tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/run.do_compile.28961' failed with exit code 1
    ERROR: Task (../tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_compile) failed with exit code '1'
    

    此致,
    Floki

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

    您是否可以尝试 machine=am64xx-EVM bitbake -c cleanall linux-ti-staging,然后尝试重建 tisdk-base-image目标?

    如果这会导致相同的错误,请尝试 machine=am64xx-EVM bitbake -c cleanall tisdk-base-image并进行重建?

    这是一个很长的过程,但有时清理构建(和/或重试)可以修复间歇性构建问题,尤其是在对配置或配方进行更新之后。

    如果仍然导致相同的错误,您是否可以确保在没有任何其他自定义的情况下,以TI提供的源代码(加上讨论的local.conf修改)按原样获取工作版本? 或许最好从头开始在新文件夹中设置它,以确保它是100 % 清理的。

    此致,Andreas

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

    谢谢安德烈亚斯! 我在清理后成功地烤了一个面包。

    快速提问;我收到许多消息,其中"../path/name由uid 1000所有,这与运行bitbake的用户相同。 这可能是由于构建输出中的主机污染[host-user-contamed]"。

    这是否正常?

    此致,Floki

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

    您好,Floki,

    我认为我没有看到过这个问题,但在谷歌上快速研究一下,这种情况似乎并不罕见。 UID为1000,指向新Linux安装上的第一个用户帐户设置,该UID与触发警告的某些配方中使用的UID相同。 除非您故意“污染”构建目录,否则这似乎无害。 如果您喜欢冒险,可以在Linux计算机上设置新的用户帐户,然后重新设置Yocto版本并重试,则很可能不会产生相同的警告(因为您的新用户帐户具有不同的UID)。 这将确认警告确实无害。

    这里有更多信息: https://www.openembedded.org/pipermail/openembedded-core/2017-February/132178.html</s>13.2178万

    此致,
    Andreas