Yocto Project Discussions
 help / color / mirror / Atom feed
* Perl populate sysroot fails (yocto 2.0.3)
@ 2020-10-06 20:36 Varangu-Booth, Valen
  2020-10-06 21:01 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Varangu-Booth, Valen @ 2020-10-06 20:36 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]

Hi all,

I'm trying to re-create a build that was previously made by someone else (in an effort to reproduce an exact old build). This is based on Yocto 2.0.3.
I'm encountering an issue in do_populate_sysroot for Perl, where it fails because /usr/lib/perl5 already exists. (See details below:)

Exception: CalledProcessError: Command 'cd YOCTO_ROOT/build/tmp/work/corei7-64-poky-linux/perl/5.22.0-r0/sysroot-destdir; find . -type d -print | tar -cf - -C YOCTO_ROOT/build/tmp/work/corei7-64-poky-linux/perl/5.22.0-r0/sysroot-destdir -p --files-from - --no-recursion | tar -xf - -C YOCTO_ROOT/build/tmp/sysroots/intel-corei7-64' returned non-zero exit status 2 with output tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists
tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists
tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists

The issue seems to always occur when the sstate-cache is present, so do_populate_sysroot_setscene fails first, then it tries to build from scratch and do_populate_sysroot fails as well.
I have seen it in a completely fresh build as well, though this seems intermittent (or I haven't yet nailed down what changes when it does/doesn't happen).

It seems like somehow some recipe ahead of Perl is putting something in /usr/lib/perl5 and perhaps some kind of race condition caused this to be intermittent?

Any input would be greatly appreciated, eventually I will get this onto a newer version of Yocto but first I need to be able to reliably re-create this exact build.

[-- Attachment #2: Type: text/html, Size: 1614 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-08 17:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-06 20:36 Perl populate sysroot fails (yocto 2.0.3) Varangu-Booth, Valen
2020-10-06 21:01 ` [yocto] " Khem Raj
2020-10-07 18:36   ` Varangu-Booth, Valen
2020-10-07 22:23     ` [yocto] " Khem Raj
2020-10-08 17:27       ` Varangu-Booth, Valen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox