* [gentoo-user] glibc can't find /lib/libdl.so.2
@ 2023-03-18 18:36 Michael
2023-03-18 19:37 ` Peter Böhm
2023-03-19 2:46 ` Matt Connell
0 siblings, 2 replies; 5+ messages in thread
From: Michael @ 2023-03-18 18:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1998 bytes --]
It's only been a couple of weeks since I updated this system, so I don't know
why it fails with a glibc update, while other systems have no problem:
>>> Emerging (1 of 62) sys-libs/glibc-2.36-r7::gentoo
* glibc-2.36.tar.xz BLAKE2B SHA512 size ;-) ...
[ ok ]
* glibc-2.36-patches-9.tar.xz BLAKE2B SHA512 size ;-) ...
[ ok ]
* locale-gen-2.22.tar.gz BLAKE2B SHA512 size ;-) ...
[ ok ]
* Checking whether python3_11 is suitable ...
* >=dev-lang/python-3.11.1-r1:3.11 ...
[ ok ]
* Using python3.11 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
* Checking general environment sanity.
make -j5 -l6 glibc-test
x86_64-pc-linux-gnu-gcc -m64 -march=native -pipe -O2 -fcf-protection=none -
Wl,-O1 -Wl,--as-needed -march=native -pipe -O2 -fcf-protection=none -Wl,-O1
-Wl,--as-needed glibc-test.c -o glibc-test
* Checking that IA32 emulation is enabled in the running kernel ...
/var/tmp/portage/sys-libs/glibc-2.36-r7/temp/check-ia32-emulation.elf32: error
[ !! ]oading shared libraries: /lib/libdl.so.2: cannot read file data: Input/
output error
* ERROR: sys-libs/glibc-2.36-r7::gentoo failed (unpack phase):
* CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib
glibc.
*
* Call stack:
* ebuild.sh, line 136: Called src_unpack
* environment, line 3766: Called sanity_prechecks
* environment, line 3486: Called die
* The specific snippet of code:
* [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be
enabled in the kernel to compile a multilib glibc.";
*
The kernel has IA32_EMULATION compiled in:
# grep IA32_EMULATION /usr/src/linux/.config
CONFIG_IA32_EMULATION=y
and /lib/libdl.so.2 appears to be present and correct:
$ ls -l /lib/libdl.so.2
-rwxr-xr-x 1 root root 13660 Nov 20 13:59 /lib/libdl.so.2
So, why does it fail and more importantly ... how can I get past it? ;-)
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] glibc can't find /lib/libdl.so.2
2023-03-18 18:36 [gentoo-user] glibc can't find /lib/libdl.so.2 Michael
@ 2023-03-18 19:37 ` Peter Böhm
2023-03-18 21:11 ` Michael
2023-03-19 2:46 ` Matt Connell
1 sibling, 1 reply; 5+ messages in thread
From: Peter Böhm @ 2023-03-18 19:37 UTC (permalink / raw
To: gentoo-user, Michael
Michael,
is this a systemd machine ? If yes: We had the same problem before some days
in our Gentoo forum:
https://forums.gentoo.org/viewtopic-t-1162393.html
Here it was SystemCallFilter from systemd.
Regards,
Peter
Am Samstag, 18. März 2023, 19:36:10 CET schrieb Michael:
> It's only been a couple of weeks since I updated this system, so I don't
> know
> why it fails with a glibc update, while other systems have no problem:
[...]
> * The specific snippet of code:
> * [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be
> enabled in the kernel to compile a multilib glibc.";
> *
>
> The kernel has IA32_EMULATION compiled in:
>
> # grep IA32_EMULATION /usr/src/linux/.config
> CONFIG_IA32_EMULATION=y
>
> and /lib/libdl.so.2 appears to be present and correct:
>
> $ ls -l /lib/libdl.so.2
> -rwxr-xr-x 1 root root 13660 Nov 20 13:59 /lib/libdl.so.2
>
> So, why does it fail and more importantly ... how can I get past it? ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] glibc can't find /lib/libdl.so.2
2023-03-18 19:37 ` Peter Böhm
@ 2023-03-18 21:11 ` Michael
0 siblings, 0 replies; 5+ messages in thread
From: Michael @ 2023-03-18 21:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
On Saturday, 18 March 2023 19:37:50 GMT Peter Böhm wrote:
> Michael,
>
> is this a systemd machine ? If yes: We had the same problem before some
> days in our Gentoo forum:
>
> https://forums.gentoo.org/viewtopic-t-1162393.html
>
> Here it was SystemCallFilter from systemd.
>
> Regards,
> Peter
Thanks Peter, no this is a openrc system. I don't even understand what a
SystemCallFilter thing is ... :-/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] glibc can't find /lib/libdl.so.2
2023-03-18 18:36 [gentoo-user] glibc can't find /lib/libdl.so.2 Michael
2023-03-18 19:37 ` Peter Böhm
@ 2023-03-19 2:46 ` Matt Connell
2023-03-19 11:27 ` Michael
1 sibling, 1 reply; 5+ messages in thread
From: Matt Connell @ 2023-03-19 2:46 UTC (permalink / raw
To: gentoo-user
On Sat, 2023-03-18 at 18:36 +0000, Michael wrote:
> The kernel has IA32_EMULATION compiled in:
>
> # grep IA32_EMULATION /usr/src/linux/.config
> CONFIG_IA32_EMULATION=y
Small nit-pick: Is it enabled in the kernel that is actually running?
zgrep CONFIG_IA32_EMULATION /proc/config.gz
> and /lib/libdl.so.2 appears to be present and correct
Is the file (or the filesystem, or the disk) possibly corrupted? The
"cannot real file data: Input/output error" is troubling. I would try
fsck'ing the file system from a live USB if possible.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] glibc can't find /lib/libdl.so.2
2023-03-19 2:46 ` Matt Connell
@ 2023-03-19 11:27 ` Michael
0 siblings, 0 replies; 5+ messages in thread
From: Michael @ 2023-03-19 11:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 958 bytes --]
On Sunday, 19 March 2023 02:46:18 GMT Matt Connell wrote:
> On Sat, 2023-03-18 at 18:36 +0000, Michael wrote:
> > The kernel has IA32_EMULATION compiled in:
> >
> > # grep IA32_EMULATION /usr/src/linux/.config
> > CONFIG_IA32_EMULATION=y
>
> Small nit-pick: Is it enabled in the kernel that is actually running?
>
> zgrep CONFIG_IA32_EMULATION /proc/config.gz
I don't have IKCONFIG in the kernel, but I did check in the first instance
which kernel I had booted with.
> > and /lib/libdl.so.2 appears to be present and correct
>
> Is the file (or the filesystem, or the disk) possibly corrupted? The
> "cannot real file data: Input/output error" is troubling. I would try
> fsck'ing the file system from a live USB if possible.
Yes! This was the problem. I have a corrupted partition and all sort of
files can't be accessed. :-(
Now to see how old the backup I have is and take it from there. Thanks for
pointing me in the right direction.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-19 11:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-18 18:36 [gentoo-user] glibc can't find /lib/libdl.so.2 Michael
2023-03-18 19:37 ` Peter Böhm
2023-03-18 21:11 ` Michael
2023-03-19 2:46 ` Matt Connell
2023-03-19 11:27 ` Michael
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox