Skip to contentSkip to conversation

perl5 do_install() fails (libperl.so: No such file or directory) #dunfell

DISCUSSION [email protected] 4 participants 4 messages Dec 4, 2020 – Dec 8, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I've got a weird problem when trying to build perl5 (from perl_5.30.1.bb, "dunfell" branch): the do_install() fails :

Quoted 4 lines

rm: cannot remove '/home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so':
No such file or directory'

The thing is, there IS a 'libperl.so', which is a symlink, in a "x86_64-linux" subfolder :

Quoted 10 lines
$ ls -la
/home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

lrwxrwxrwx 1 frank frank 26 2020-12-04 12:23 /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/x86_64-linux/CORE/libperl.so -> /usr/lib/libperl.so.5.30.0

And if I try to manually delete it using the same command it works :

Quoted 4 lines

& rm /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

Quoted 9 lines

& ls -la /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

zsh: no matches found:
/home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

So... I'm kind of confused to tell the truth. My guess is it's related to my setup (or PEBCAK) or else everybody would have encountered this.

Quoted 5 lines
$ uname -a
Linux laptop-frwol 5.9.0-3-amd64 #1 SMP Debian 5.9.9-1 (2020-11-19) x86_64
GNU/Linux

I've made absolutely no modification whatsoever. I've just cloned the "dunfell" branch from poky and launched a "bitbake perl". Thanks in advance for your help.

Regards,

Frank.

#1 lore raw
Quoted 20 lines · On Fri, Dec 4, 2020 at 3:08 AM <[email protected]> wrote:

Hi,

I've got a weird problem when trying to build perl5 (from perl_5.30.1.bb, "dunfell" branch): the do_install() fails :

rm: cannot remove '/home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so': No such file or directory'

The thing is, there IS a 'libperl.so', which is a symlink, in a "x86_64-linux" subfolder :

$ ls -la /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

lrwxrwxrwx 1 frank frank 26 2020-12-04 12:23 /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/x86_64-linux/CORE/libperl.so -> /usr/lib/libperl.so.5.30.0

And if I try to manually delete it using the same command it works :

& rm /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so & ls -la /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

zsh: no matches found: /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

Quoted 7 lines

So... I'm kind of confused to tell the truth. My guess is it's related to my setup (or PEBCAK) or else everybody would have encountered this.

$ uname -a
Linux laptop-frwol 5.9.0-3-amd64 #1 SMP Debian 5.9.9-1 (2020-11-19) x86_64 GNU/Linux

I've made absolutely no modification whatsoever. I've just cloned the "dunfell" branch from poky and launched a "bitbake perl". Thanks in advance for your help.

Just tried this on Ubuntu 18.04: fresh clone of dunfell branch, source oe-init-build-env, then bitbake perl

The build was completed successfully, so I am confused too! I do regular autobuilder runs on debian workers and haven't seen this issue there either.

Sorry I can't be of more help :-(

Steve

Quoted 6 lines

Regards,

Frank.

#2 lore raw
In reply to [email protected]
Quoted 20 lines · On Fri, 4 Dec 2020 at 23:08, <[email protected]> wrote:

Hi,

I've got a weird problem when trying to build perl5 (from perl_5.30.1.bb, "dunfell" branch): the do_install() fails :

rm: cannot remove '/home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so': No such file or directory'

The thing is, there IS a 'libperl.so', which is a symlink, in a "x86_64-linux" subfolder :

$ ls -la /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

lrwxrwxrwx 1 frank frank 26 2020-12-04 12:23 /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/x86_64-linux/CORE/libperl.so -> /usr/lib/libperl.so.5.30.0

And if I try to manually delete it using the same command it works :

& rm /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so & ls -la /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

zsh: no matches found: /home/frwol/Sources/yocto/build/tmp/work/core2-64-poky-linux/perl/5.30.1-r0/image//usr/lib/perl5/5.30.1/*/CORE/libperl.so

Quoted 7 lines

So... I'm kind of confused to tell the truth. My guess is it's related to my setup (or PEBCAK) or else everybody would have encountered this.

$ uname -a
Linux laptop-frwol 5.9.0-3-amd64 #1 SMP Debian 5.9.9-1 (2020-11-19) x86_64 GNU/Linux

I've made absolutely no modification whatsoever. I've just cloned the "dunfell" branch from poky and launched a "bitbake perl". Thanks in advance for your help.

I hit this recently too, on master though. Same distro Debian, likely similar package versions (testing/unstable).

Just with some preliminary testing this looks like an issue caused by pseudo, maybe something to do with path length? as I only see the failure when building nativesdk-perl but not target/native.

Regards,
Nathan

Quoted 7 lines

Regards,

Frank.

#3 lore raw

Hi,

debian testing here, dunfell branch. I was able to get rid of the error with following patch. Not sure what's the reason though.

meta/recipes-devtools/perl/perl_5.30.1.bb +0 -0
@@ -146,7 +146,7 @@ do_install() {

install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/

# Fix up shared library
-    rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
+    rm ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so
ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so }

BR,
Pavel