Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892239 - Broken Perl install during prefix bootstrap (/home/vm/gentoo/tmp/usr/bin/perl: error while loading shared libraries: libperl.so.5.36: cannot open shared object file: No such file or directory)
Summary: Broken Perl install during prefix bootstrap (/home/vm/gentoo/tmp/usr/bin/perl...
Status: UNCONFIRMED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: High blocker with 1 vote (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 907487 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-01-27 16:14 UTC by dnkmmr69420
Modified: 2023-09-10 11:02 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Here is the error. I can't upload the entire log (file_892239.txt,18.52 KB, text/plain)
2023-01-27 16:16 UTC, dnkmmr69420
Details
stage 3 log (stage3.tar.xz,942.55 KB, application/x-xz)
2023-01-27 22:44 UTC, dnkmmr69420
Details
stage 2 log (stage2.tar.xz,333.57 KB, application/x-xz)
2023-01-27 22:45 UTC, dnkmmr69420
Details
stage 1 log (stage1.tar.xz,97.19 KB, application/x-xz)
2023-01-27 22:45 UTC, dnkmmr69420
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dnkmmr69420 2023-01-27 16:14:00 UTC
to reproduce this bug do the following

1. install arch linux in QEMU/KVM using the gnome desktop eviroment and install both the LTS kernel and Latest Kernel (don't know how significant this will be but will include this just in case)

2. install base-devel package also too

3. Follow the prefix bootstrap instructions

4. Let it install until it reaches the error and you should see this bug happen
Comment 1 dnkmmr69420 2023-01-27 16:16:11 UTC
Created attachment 849291 [details]
Here is the error. I can't upload the entire log
Comment 2 dnkmmr69420 2023-01-27 18:06:28 UTC
this is also happening on my actual hardware too
Comment 3 dnkmmr69420 2023-01-27 20:36:39 UTC
(In reply to dnkmmr69420 from comment #2)
> this is also happening on my actual hardware too

it just happened again
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-27 22:00:51 UTC
Please compress the entire log then upload it as an attachment. The collisions aren't the issue here (it says "merged despite").
Comment 5 dnkmmr69420 2023-01-27 22:44:25 UTC
Created attachment 849303 [details]
stage 3 log
Comment 6 dnkmmr69420 2023-01-27 22:45:09 UTC
Created attachment 849305 [details]
stage 2 log
Comment 7 dnkmmr69420 2023-01-27 22:45:34 UTC
Created attachment 849307 [details]
stage 1 log
Comment 8 dnkmmr69420 2023-01-27 22:45:58 UTC
(In reply to Sam James from comment #4)
> Please compress the entire log then upload it as an attachment. The
> collisions aren't the issue here (it says "merged despite").

Just uploaded all 3 logs
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-28 07:37:36 UTC
The Perl is installs in stage3 is broken for some reason.
```
[...]
 * Linking /home/vm/gentoo//usr/share/man/man1/pod2man-4.140.0-perl-5.36.0.1.bz2 to /home/vm/gentoo//usr/share/man/man1/pod2man.1.bz2 (relative)
 * Linking /home/vm/gentoo//usr/bin/pod2text-4.140.0-perl-5.36.0 to /home/vm/gentoo//usr/bin/pod2text (relative)
 * Linking /home/vm/gentoo//usr/share/man/man1/pod2text-4.140.0-perl-5.36.0.1.bz2 to /home/vm/gentoo//usr/share/man/man1/pod2text.1.bz2 (relative)
 * Linking /home/vm/gentoo//usr/share/man/man1/perlpodstyle-4.140.0-perl-5.36.0.1.bz2 to /home/vm/gentoo//usr/share/man/man1/perlpodstyle.1.bz2 (relative)
 * Removing old .ph files
>>> dev-lang/perl-5.36.0-r1 merged.
>>> Regenerating /etc/ld.so.cache...
```

Then we get all the way down and it's hosed:
```
checking for perl... /home/vm/gentoo/tmp/usr/bin/perl
/home/vm/gentoo/tmp/usr/bin/perl: error while loading shared libraries: libperl.so.5.36: cannot open shared object file: No such file or directory
configure: error: Perl 5.006 or better is required
```

But note that it's using /tmp/usr/bin/perl and note /usr/bin/perl. Not sure if that's right given it's just installed Perl.
Comment 10 dnkmmr69420 2023-01-28 13:25:43 UTC
(In reply to Sam James from comment #9)
> The Perl is installs in stage3 is broken for some reason.
> ```
> [...]
>  * Linking
> /home/vm/gentoo//usr/share/man/man1/pod2man-4.140.0-perl-5.36.0.1.bz2 to
> /home/vm/gentoo//usr/share/man/man1/pod2man.1.bz2 (relative)
>  * Linking /home/vm/gentoo//usr/bin/pod2text-4.140.0-perl-5.36.0 to
> /home/vm/gentoo//usr/bin/pod2text (relative)
>  * Linking
> /home/vm/gentoo//usr/share/man/man1/pod2text-4.140.0-perl-5.36.0.1.bz2 to
> /home/vm/gentoo//usr/share/man/man1/pod2text.1.bz2 (relative)
>  * Linking
> /home/vm/gentoo//usr/share/man/man1/perlpodstyle-4.140.0-perl-5.36.0.1.bz2
> to /home/vm/gentoo//usr/share/man/man1/perlpodstyle.1.bz2 (relative)
>  * Removing old .ph files
> >>> dev-lang/perl-5.36.0-r1 merged.
> >>> Regenerating /etc/ld.so.cache...
> ```
> 
> Then we get all the way down and it's hosed:
> ```
> checking for perl... /home/vm/gentoo/tmp/usr/bin/perl
> /home/vm/gentoo/tmp/usr/bin/perl: error while loading shared libraries:
> libperl.so.5.36: cannot open shared object file: No such file or directory
> configure: error: Perl 5.006 or better is required
> ```
> 
> But note that it's using /tmp/usr/bin/perl and note /usr/bin/perl. Not sure
> if that's right given it's just installed Perl.

so how can this error be fixed?
Comment 11 James Le Cuirot gentoo-dev 2023-01-29 09:32:14 UTC
It's very odd. The log is hard to follow because there were several retries. The first sign of trouble is on line 147376, where it fails to configure dev-libs/openssl while on the way to installing sys-apps/coreutils.

 147375  * ./Configure linux-x86_64 enable-camellia enable-ec enable-ec2m enable-sm2 enable-srp enable-idea enable-mdc2 enable-rc5 no-ssl3 no-ssl3-method enable-asm no-rfc3779 no-sctp no-tests no-zlib no-heartbeats no-weak-ssl-ciphers --prefix=/home/vm/gentoo/usr --openssldir=/home/vm/gentoo/etc/ssl --libdir=lib64 shared threads
 147376 /home/vm/gentoo/var/tmp/portage/dev-libs/openssl-1.1.1s/temp/environment: line 1171: ./Configure: cannot execute: required file not found

dev-lang/perl was successfully installed prior to that on line 127322 and it is used plenty of times between there and when it fails later. It's even used right before it fails in the src_prepare phase of dev-libs/openssl. On the next attempt, Perl is successfully used in openssl's src_prepare again, but it still fails in src_configure.

The openssl error does not mention Perl specifically but the Configure shebang does have: #! /usr/bin/env perl

Later parts of the log are confusing, but it appears to try to install things that were previously already installed. Perhaps something was deleted before retrying?

I'm not personally invested in Prefix enough to look further into this, sorry.
Comment 12 dnkmmr69420 2023-01-29 17:49:33 UTC
(In reply to James Le Cuirot from comment #11)
> It's very odd. The log is hard to follow because there were several retries.
> The first sign of trouble is on line 147376, where it fails to configure
> dev-libs/openssl while on the way to installing sys-apps/coreutils.
> 
>  147375  * ./Configure linux-x86_64 enable-camellia enable-ec enable-ec2m
> enable-sm2 enable-srp enable-idea enable-mdc2 enable-rc5 no-ssl3
> no-ssl3-method enable-asm no-rfc3779 no-sctp no-tests no-zlib no-heartbeats
> no-weak-ssl-ciphers --prefix=/home/vm/gentoo/usr
> --openssldir=/home/vm/gentoo/etc/ssl --libdir=lib64 shared threads
>  147376
> /home/vm/gentoo/var/tmp/portage/dev-libs/openssl-1.1.1s/temp/environment:
> line 1171: ./Configure: cannot execute: required file not found
> 
> dev-lang/perl was successfully installed prior to that on line 127322 and it
> is used plenty of times between there and when it fails later. It's even
> used right before it fails in the src_prepare phase of dev-libs/openssl. On
> the next attempt, Perl is successfully used in openssl's src_prepare again,
> but it still fails in src_configure.
> 
> The openssl error does not mention Perl specifically but the Configure
> shebang does have: #! /usr/bin/env perl
> 
> Later parts of the log are confusing, but it appears to try to install
> things that were previously already installed. Perhaps something was deleted
> before retrying?
> 
> I'm not personally invested in Prefix enough to look further into this,
> sorry.

is this also happening to you too. keep in mind that this is a blocker so with this bug unfixed, people won't be able to install gentoo prefix.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-29 19:03:26 UTC
We understand, it's not really a helpful comment though. Prefix is complicated. I haven't yet had time to try reproduce it.
Comment 14 dnkmmr69420 2023-01-29 21:30:46 UTC
(In reply to Sam James from comment #13)
> We understand, it's not really a helpful comment though. Prefix is
> complicated. I haven't yet had time to try reproduce it.

I am gonna give it a try tommorow when I have time. I will report back if the error is the same.
Comment 15 Fabian Groffen gentoo-dev 2023-05-03 19:12:45 UTC
I believe perl was bumped in the meanwhile, does this persist by chance?
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-01 03:20:16 UTC
*** Bug 907487 has been marked as a duplicate of this bug. ***
Comment 17 Martin Mokrejš 2023-06-01 08:54:15 UTC
(In reply to Fabian Groffen from comment #15)
> I believe perl was bumped in the meanwhile, does this persist by chance?

Still happens, see bug #907487 .
Comment 18 Fabian Groffen gentoo-dev 2023-09-10 11:02:01 UTC
This is a RAP bootstrap, do this seems unrelated to bug 910396