When the parsec tool is compiled in yocto, build warnings are reported as shown below.
WARNING: parsec-tool-0.5.4-r0 do_package_qa: QA Issue: File /usr/bin/.debug/parsec-tool in package parsec-tool-dbg contains reference to TMPDIR [buildpaths]
This is because the parsec tool binary contains build paths.
$ strings parsec-tool |grep yocto
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20/pregenerated/armv8-mont-linux64.S
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20/pregenerated/ecp_nistz256-armv8-linux64.S
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20/pregenerated/sha512-armv8-linux64.S
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20/pregenerated/sha256-armv8-linux64.S
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-tool/0.5.3-r0/cargo_home/bitbake/ring-0.16.20/pregenerated
The RUST_DEBUG_REMAP yocto variable which does the remap is included in the compilation of the above libraries but the issue still exists.
poky/meta/classes-recipe/rust-common.bbclass
RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
Currently, the QA check has been disabled by using INSANE_SKIP.
INSANE_SKIP:${PN}-dbg += "buildpaths"
Thanks to @anta5010 for reporting the issue.
When the parsec tool is compiled in yocto, build warnings are reported as shown below.
This is because the parsec tool binary contains build paths.
The RUST_DEBUG_REMAP yocto variable which does the remap is included in the compilation of the above libraries but the issue still exists.
poky/meta/classes-recipe/rust-common.bbclass
Currently, the QA check has been disabled by using INSANE_SKIP.
Thanks to @anta5010 for reporting the issue.