Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] glibc can't find /lib/libdl.so.2

2 views
Skip to first unread message

Michael

unread,
Mar 18, 2023, 2:40:05 PM3/18/23
to
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? ;-)
signature.asc

Peter Böhm

unread,
Mar 18, 2023, 3:40:03 PM3/18/23
to
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:
[...]

Michael

unread,
Mar 18, 2023, 5:22:24 PM3/18/23
to
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 ... :-/
signature.asc

Matt Connell

unread,
Mar 18, 2023, 10:50:05 PM3/18/23
to
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.

Michael

unread,
Mar 19, 2023, 7:30:05 AM3/19/23
to
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.
signature.asc
0 new messages