OE4T / meta-tegra

BSP layer for NVIDIA Jetson platforms, based on L4T
MIT License
419 stars 230 forks source link

[Styhead] gcc-for-nvcc-cross-canadian-aarch64 fails with QA issue during SDK build #1727

Closed lms-jk closed 1 month ago

lms-jk commented 1 month ago

Describe the bug With Styhead, the QA warnings are now treated as errors. Building the SDK fails with a QA error when packaging gcc-for-nvcc-cross-canadian-aarch64:

ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-lms-linux/aarch64-lms-linux-lto-dump-10.3.0 in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-lms-linux/aarch64-lms-linux-g++-10.3.0 in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-lms-linux/aarch64-lms-linux-c++-10.3.0 in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-lms-linux/aarch64-lms-linux-cpp-10.3.0 in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/lib/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/include-fixed/pthread.h in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/lib/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/include-fixed/bits/statx.h in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/lib/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/include-fixed/bits/unistd_ext.h in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/lib/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/include-fixed/sys/rseq.h in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/lib/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/include-fixed/sys/mount.h in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/lib/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/plugin/include/configargs.h in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/libexec/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/cc1plus in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/libexec/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/cc1 in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/libexec/aarch64-lms-linux/gcc/aarch64-lms-linux/10.3.0/lto1 in package gcc-for-nvcc-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
ERROR: gcc-for-nvcc-cross-canadian-aarch64-10.3.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/lmsjk/lms-yocto/project-nvidia-base/build/tmp/work/x86_64-nativesdk-oesdk-linux/gcc-for-nvcc-cross-canadian-aarch64/10.3.0/temp/log.do_package_qa.1185
ERROR: Task (/home/lmsjk/lms-yocto/project-nvidia-base/build/../layers/meta-tegra/recipes-devtools/gcc-for-nvcc/gcc-for-nvcc-cross-canadian_10.3.bb:do_package_qa) failed with exit code '1'

To Reproduce Steps to reproduce the behavior:

  1. Build meta-tegra branch 'styhead' with MACHINE based on 'jetson-agx-orin-devkit'
  2. Build with command 'bitbake gcc-for-nvcc-cross-canadian-aarch64'
lms-jk commented 1 month ago

Backports from poky's gcc recipes fix the build errors:

Preparing a PR, but still need to check if gcc is useable with these fixes: https://github.com/lms-jk/meta-tegra/tree/bugfix/gcc_cross_canadian_qa_errors