Bug 14096 - perl install race (pod2text)
Summary: perl install race (pod2text)
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 4.1
Assignee: Sakib Sajal
QA Contact:
URL:
Whiteboard: AB-INT
: 13244 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-19 06:00 UTC by Richard Purdie
Modified: 2025-02-14 16:48 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2020-10-19 06:00:49 UTC
|   /home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/build-st-42781/reproducibleB/tmp/work/x86_64-linux/perl-native/5.32.0-r0/recipe-sysroot-native/usr/share/man/man3/autodie::hints.3
|   /home/pokybuild/yocinstallman: Can't open cpan/podlators/blib/script/pod2text: No such file or directory
| ABORTED
| to-worker/oe-selftest-ubuntu/build/build-st-42781/reproducibleB/tmp/work/x86_64-linux/perl-native/5.32.0-r0/recipe-sysroot-native/usr/share/man/man3/autodie::skip.3

Full log in:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1453/steps/8/logs/step2d
Comment 1 Alexander Kanavin 2020-10-19 07:43:44 UTC
Reported upstream here:
https://github.com/arsv/perl-cross/issues/75
Comment 2 Randy MacLeod 2020-10-22 07:46:15 UTC
Likely a very rare failure that happened with 14095, 14097.
recurrence of 13244; dup?
Comment 4 Randy MacLeod 2021-10-14 14:57:12 UTC
Sakib, can you try to reproduce this or better still review the code to find the race.
Comment 5 Alexander Kanavin 2021-10-14 15:31:16 UTC
FWIW, this is a fiendishly difficult issue. The race happens on the AB every once in a blue moon, upstream, RP and O had all taken a look at the failing build tree and the code, and we still couldn't see how it could happen.
Comment 7 Alexandre Belloni 2021-12-15 22:41:27 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/47/builds/4422/steps/17/logs/stdio

https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/3740/steps/15/logs/stdio

In the logs, we can see:

|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/thread.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/time64.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linuxCouldn't copy cpan/podlators/blib/script/pod2text to /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/aarch64-nativesdk-pokysdk-linux/nativesdk-perl/5.34.0-r0/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/bin/pod2text: No such file or directory
| Couldn't chmod 755 /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/aarch64-nativesdk-pokysdk-linux/nativesdk-perl/5.34.0-r0/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/bin/pod2text: No such file or directory
| /usr/lib/perl5/5.34.0/aarch64-linux/CORE/time64_config.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/try.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/uconfig.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/uni_keywords.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/unicode_constants.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/unixish.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/utf8.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/utfebcdic.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/util.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/uudmap.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/vutil.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/warnings.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/xconfig.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/perl5/5.34.0/aarch64-linux/CORE/zaphod32_hash.h
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/lib/libperl.so.5.34.0
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/bin/perl
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/bin/pod2man
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/bin/pod2text
|   /usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-pokysdk-linux/usr/bin/pod2usage

So pod2text seems to be compiled after trying to install it.
Comment 8 Alexander Kanavin 2021-12-15 22:46:38 UTC
It's a bit more involved than that. pod2text is supposed to be built in do_compile, and most of the time it is. But not all of the time. We've discussed this with upstream: https://github.com/arsv/perl-cross/issues/75
Comment 9 Steve Sakoman 2022-02-24 16:42:21 UTC
Dunfell occurrence:

https://autobuilder.yoctoproject.org/typhoon/#/builders/119/builds/1322

reproducible-ubuntu ubuntu1604-ty-1
Comment 10 Randy MacLeod 2022-04-28 14:39:07 UTC
Keeping open, we suspect this will happen again due to an actual race in the code.
Comment 11 Richard Purdie 2022-06-04 12:42:41 UTC
*** Bug 13244 has been marked as a duplicate of this bug. ***
Comment 12 Richard Purdie 2022-06-04 12:43:48 UTC
Details in email form with extracted Makefile and links:

https://lists.yoctoproject.org/g/swat/topic/oe_core_perl_makefile_race/91539210
Comment 13 Alexandre Belloni 2022-06-09 13:03:08 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/37/builds/5315/steps/11/logs/stdio

genericx86-64 ubuntu1804-ty-3
Comment 14 Alexandre Belloni 2022-06-09 13:17:19 UTC
https://autobuilder.yoctoproject.org/typhoon/#builders/37/builds/5315/steps/11/logs/stdio
genericx86-64 ubuntu1804-ty-3
Comment 15 Randy MacLeod 2022-06-09 14:57:11 UTC
There were some issues with rare races in older versions of make so add a dependency on our own version.

https://git.openembedded.org/openembedded-core/log/?qt=range&q=692b7c518637c77804caf7b3cfc60a83afa2e4f4
Comment 16 Randy MacLeod 2025-02-14 16:46:20 UTC
bulk change to add Saul's non-WR address.
Comment 17 Randy MacLeod 2025-02-14 16:48:19 UTC
Bulk change: Remove Saul's old WR address.