You are not logged in.

#1 2013-01-30 15:41:21

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

[Solved] Kernel panic in early boot - libc.so.6 not found

As per subject. I -Syu'd on Monday, bringing in the new glibc and filesystem, and everything was fine. Another update yesterday brought the latest linux-ck (no, wait: I know it's unsupported, but read on) which won't boot, failing almost immediately at the initramfs stage with that error. Downgrading the kernel doesn't help, which is why I'm posting here rather than in the -ck thread: it looks like a mkinitcpio issue, rather than something inside the package. The stock kernel works, but it hasn't been updated since glibc and the filesystem (and I'm terrified to do anything with it in case that fails too...)

The output from lsinitcpio on my -ck image gives

.
./VERSION
./buildconfig
./config
./consolefont.psf
./hooks
./hooks/consolefont
./hooks/udev
./init
./init_functions
./sbin
./bin
./lib64
./lib
./usr
./usr/lib64
./usr/lib64/libpthread.so.0
./usr/lib64/libc.so.6
./usr/lib64/librt.so.1
./usr/lib64/libattr.so.1
./usr/lib64/libz.so.1
./usr/lib64/libuuid.so.1
./usr/lib64/libacl.so.1
./usr/lib64/libkmod.so.2
./usr/lib64/libblkid.so.1
./usr/lib64/libmount.so.1
./usr/sbin
./usr/bin
...{cut for brevity}

which looks wrong to me. Surely there shouldn't be anything in /usr/lib64? Looking at my filesystem, /usr/lib64 is a symlink to /usr/lib. Is that normal? As far as I remember, I haven't monkeyed with anything since the first install of this system; it's been straight -Syus all the way.

Last edited by dunc (2013-01-31 22:29:17)


0 Ok, 0:1

Offline

#2 2013-01-30 21:16:40

roentgen
Member
Registered: 2011-03-15
Posts: 91

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

Save your initramfs-linux.img (that's for the ARCH kernel) as initramfs-linux.img.old and redo your initramfs to rule out an mkinitcpio problem.

If there's a problem with the newly generated initramfs just pass the backup one when booting.

BTW here is my initramfs for the 3.7.5-1-ARCH kernel.

# lsinitcpio initramfs-linux.img | grep lib64
./lib64

Last edited by roentgen (2013-01-30 21:17:32)

Offline

#3 2013-01-31 01:56:47

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

Heh. Now why didn't I think of that? (Actually, I did... after I posted. I think kernel panics send me into a panic too.)

Anyway, it's definitely the initramfs. And a diff on the two shows that the only change is those 10 libs appearing /usr/lib64 rather than /usr/lib.

I thought I'd resolved the potential conflicts in the filesystem-2013.01-3 update correctly, but I'm beginning to wonder.

Grr. I've been using Arch for nearly six years. I thought I knew my way around by now. sad (Angry with myself, by the way, not the devs.)


0 Ok, 0:1

Offline

#4 2013-01-31 02:06:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

dunc wrote:

which looks wrong to me. Surely there shouldn't be anything in /usr/lib64? Looking at my filesystem, /usr/lib64 is a symlink to /usr/lib. Is that normal? As far as I remember, I haven't monkeyed with anything since the first install of this system; it's been straight -Syus all the way.

lrwxrwxrwx 1 root root 7 Ion  27 07:29 /lib -> usr/lib/
lrwxrwxrwx 1 root root 3 Ion  27 07:29 /usr/lib64 -> lib/

I checked two of the libraries you listed and they are under /usr/lib on my system.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-01-31 22:28:45

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

It struck me that it might be an ldconfig thing. So I ran ldconfig -r again (actually, I reinstalled glibc to make sure I was passing the right arguments to it), and now everything's fine. I've no idea why it was finding those libraries - and only those libraries - in /usr/lib64, when everything else was in its proper place.

Anyway, solved. I suppose.


0 Ok, 0:1

Offline

#6 2013-02-01 23:10:03

ADexter
Member
Registered: 2013-02-01
Posts: 2

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

Could you please explain exactly what you have done?
It seems like I have the same problem as well. (Same error, same output on lsinitcpio)

Chroot+mkinitcpio did not work
Reinstalling glibc neither

A little help would be great.

Offline

#7 2013-02-02 02:09:01

neptuneK
Member
Registered: 2008-06-03
Posts: 38

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

I had a similar problem. Some spurious file (not part of a package) in ld.so.conf.d was pointing
to /usr/lib64 . Removing the file, running ldconfig, and then doing mkinitcpio did the trick. You can
check the dependencies of the initramfs using lsinitcpio.

Offline

#8 2013-02-02 12:00:07

ADexter
Member
Registered: 2013-02-01
Posts: 2

Re: [Solved] Kernel panic in early boot - libc.so.6 not found

Thank you neptuneK,

in ld.conf.so.d I found a file pointing to /usr/lib64 (it was libowncloud-sync, part of an aur package).
I removed the package and the file, ran ldconfig, mkinitcpio et voilà lsinitcpio showed no sign of lib64.

I feel kind of stupid for not checking ld.conf.so.d thou.

Offline

Board footer

Powered by FluxBB