Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yocto parsec build reports warnings related to build paths #645

Open
gowthamsk-arm opened this issue Oct 18, 2022 · 1 comment
Open

Yocto parsec build reports warnings related to build paths #645

gowthamsk-arm opened this issue Oct 18, 2022 · 1 comment

Comments

@gowthamsk-arm
Copy link
Contributor

When the parsec service is compiled in yocto, build warnings are reported as shown below.

WARNING: parsec-service-1.1.0-r0 do_package_qa: QA Issue: File /usr/libexec/parsec/.debug/parsec in package parsec-service-dbg contains reference to TMPDIR [buildpaths]

This is because the parsec binary contains build paths.

$ strings parsec |grep yocto
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-service/1.1.0-r0/cargo_home/bitbake/libsqlite3-sys-0.23.2
/data/shared/yocto/poky/build/tmp/work/cortexa57-poky-linux/parsec-service/1.1.0-r0/cargo_home/bitbake/psa-crypto-sys-0.9.3

The RUST_DEBUG_REMAP yocto variable which does the remap is included in the compilation of the above 2 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.

@anta5010
Copy link
Collaborator

This issue can be reproduced without Yocto:

After building parsec with

RUSTFLAGS="--remap-path-prefix=/parsec/target/debug/=/remapped/" cargo build

command I still see:

# strings target/debug/parsec |grep "^/parsec"
/parsec
/parsec/target/debug/build/psa-crypto-sys-f97fd2c114b75a94/out/build/library
/parsec/target/debug/build/psa-crypto-sys-f97fd2c114b75a94/out
/parsec/target/debug/build/psa-crypto-sys-f97fd2c114b75a94/out/include/psa
/parsec/target/debug/build/psa-crypto-sys-f97fd2c114b75a94/out/include/mbedtls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants