Skip to content

Yocto parsec build reports warnings related to build paths #645

Open

Description

@gowthamsk-arm

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.

Activity

  1. anta5010 commented on Oct 18, 2022

    @anta5010
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions