-
Notifications
You must be signed in to change notification settings - Fork 736
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
QA Issue: File xxx.c in package xxx-project contains reference to TMPDIR #675
Comments
run |
I still have a lot of buildpaths QA issues in the big builds I'm using, but recently I've noticed also buildpaths QA issue in oe-core recipe which shouldn't have these anymore (as AB would catch that).
It turned out, it's caused by ld-is-gold in DISTRO_FEATURES and gold linker generates the library path in .gnu.version_d section which seems to be missing completely when default bfd is used:
I'm not recommending to use gold, we have it mostly from historic reasons until I finish switch to lld or mold. Just wanted to mention it here in case you're using it as well or @kraj having some ideas how to teach gold not to do that (I haven't looked properly yet). |
@shr-project I would be happy to help if you have this issue with |
Understood, same here :). I was mentioning gold just so you're aware of this side-effect with buildpaths and in case you know some magic flag off the top of your head.
Yeah if I'm not ready to switch to lld before we're ready to upgrade to next LTS release I'll consider switching back to BFD. I don't have any issue with lld, other than lack of time to do the switch and test it. |
@shr-project can you post the linker command which is building |
If I just add -fuse-ld=bfd in wrapper/target-rust-ccld then the path disappears with whole .gnu.version_d····VERDEF section, will upload diffoscope output somewhere if it helps. |
I have been seeing loads of these TMPDIR warning on Langdale and now on mickedore. I can send a full listing to the oe mailing list with a call for help. It would be nice if they got cleaned up before the next LTS and before RP decide to turn those warnings into errors. |
- The project uses poetry now, so inherit python_poetry_core - Add python3-asyncio and python3-compression to RDEPENDS Changelog (https://github.com/amoffat/sh/blob/develop/CHANGELOG.md): 2.0.4 - 5/13/22 - Allow ok_code to be used with fg openembedded#665 - Make sure new_group never creates a new session openembedded#675 2.0.2 / 2.0.3 (misversioned) - 2/13/22 - Performance regression when using a generator with _in openembedded#650 - Adding test support for python 3.11 2.0.0 - 2/9/22 - Executed commands now return a unicode string by default - Removed magical module-like execution contexts openembedded#636 - Added basic asyncio support via _async - Dropped support for Python < 3.8 - Bumped default tty size to more standard (24, 80) - First argument being a RunningCommand no longer automatically passes it as stdin - RunningCommand.__eq__ no longer has the side effect of executing the command openembedded#518 - _tee now supports both "err" and "out" openembedded#215 - Removed the builtin override cd link - Altered process launching model to behave more expectedly openembedded#495 - Bugfix where _no_out isn't allowed with _iter="err" openembedded#638 - Allow keyword arguments to have a list of values openembedded#529 Signed-off-by: Trevor Gamblin <[email protected]> Signed-off-by: Khem Raj <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
* gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) * gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. Signed-off-by: Martin Jansa <[email protected]>
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-13301] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield [WRP-32141] Switch from gold linker to lld Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield [WRP-32141] Switch from gold linker to lld Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield [WRP-32141] Switch from gold linker to lld Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
:Release Notes: gold causes TMPDIR references in binaries leading to a lot of QA issues which aren't easy to fix and hide other possible causes for TMPDIR references. See: openembedded/meta-openembedded#675 (comment) openembedded/meta-openembedded#675 (comment) :Detailed Notes: gold is getting much less attention in last years than lld, mold or even good old bfd, most of the improvements from gold were already imported to bfd. As we're already using meta-clang and clang for building webruntime recipes, it makes sense to switch to lld now. :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRQ-691] Create GPVB with Yocto 4.3 Nanbield [WRP-32141] Switch from gold linker to lld Change-Id: I9090adf11869771ddfd954b5eb417697a2c4b934
Hi all,
I encounter so many QA issues about contains reference to TMPDIR, and I can use
WARN_QA:remove = "buildpaths"
disable this warning message, but I'm still curious about this issue.I tried tracking down the issue and came to the following conclusions, but not sure if is it right or not.
I check this guideline
This check ensures that build system paths (including TMPDIR) do not appear in output files, which not only leaks build system configuration into the target, but also hinders binary reproducibility as the output will change if the build system configuration changes.
I guess this warning message is because we use some relevant env. So I check openembedded-core/bitbake/conf/bitbake.conf file
I think if we use relevant env that will get this warning message.
and I think we can use this method avoid this issue e.g.
Does anyone have a better solution? Or is my deduction wrong?
The text was updated successfully, but these errors were encountered: