Genkernel will not produce a bootable environment, since recent glibc update. Note that this IS installed on my system: [I] sys-fs/lvm2 Available versions: 2.02.116 ~2.02.116-r1 ~2.02.116-r2 2.02.116-r4 ~2.02.116-r5 ~2.02.116-r6 ~2.02.136 ~2.02.136-r1 ~2.02.136-r2 ~2.02.139 ~2.02.139-r1 ~2.02.145 ~2.02.145-r1 2.02.145-r2 ~2.02.166 ~2.02.166-r2 [M]~2.02.171 [M]~2.02.172 [M]~2.02.173 {clvm cman corosync device-mapper-only lvm1 lvm2create_initrd openais readline sanlock selinux static static-libs systemd +thin +udev} Installed versions: 2.02.145-r2(18:45:30 15-06-18)(readline static static-libs thin udev -clvm -cman -corosync -device-mapper-only -lvm1 -lvm2create_initrd -openais -selinux -systemd) Homepage: https://sourceware.org/lvm2/ Description: User-land utilities for LVM2 (device-mapper) software So a static version is available... (Not sure what the age of LVM2.02.88 is, it isn't in the tree......) See also this discussion: https://forums.gentoo.org/viewtopic-t-1082352-highlight-genkernel.html?sid=79adc0f005a1abd52f5a4dfef78c6575 * initramfs: >> Initializing... * >> Appending base_layout cpio data... * >> Appending auxilary cpio data... * >> Copying keymaps * >> Appending busybox cpio data... * >> Appending e2fsprogs cpio data... * >> Appending lvm cpio data... * LVM: Adding support (compiling binaries)... * lvm: >> Applying patches... * - lvm2-2.02.72-no-export-dynamic.patch * lvm: >> Configuring... * lvm: >> Compiling... * ERROR: Failed to compile the "" target... * <some lines omitted> gcc -MM -I. -I../include -DLVM_SHARED_PATH=\"//sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 -o lvresize.d lvresize.c; \ *sed -i "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" lvresize.d; \ *[ -s lvresize.d ] || rm -f lvresize.d *dmeventd.o: In function `_register_for_event': *dmeventd.c:(.text+0x1bc1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking *-- *gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 filters/filter-composite.c -o filters/filter-composite.o *gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 filters/filter-persistent.c -o filters/filter-persistent.o *gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 filters/filter-regex.c -o filters/filter-regex.o *gcc -c -I. -I../include -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 filters/filter-sysfs.c -o filters/filter-sysfs.o *filters/filter-sysfs.c: In function ‘_hash_dev’: *filters/filter-sysfs.c:125:10: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration] * return (major(dev) ^ minor(dev)) & (SET_BUCKETS - 1); * ^~~~~ *filters/filter-sysfs.c:125:2: warning: nested extern declaration of ‘major’ [-Wnested-externs] * return (major(dev) ^ minor(dev)) & (SET_BUCKETS - 1); * ^~~~~~ *filters/filter-sysfs.c:125:23: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration] * return (major(dev) ^ minor(dev)) & (SET_BUCKETS - 1); * ^~~~~ *filters/filter-sysfs.c:125:2: warning: nested extern declaration of ‘minor’ [-Wnested-externs] * return (major(dev) ^ minor(dev)) & (SET_BUCKETS - 1); * ^~~~~~ *filters/filter-sysfs.c: In function ‘_parse_dev’: *filters/filter-sysfs.c:176:12: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration] * *result = makedev(major, minor); * ^~~~~~~ *filters/filter-sysfs.c:176:2: warning: nested extern declaration of ‘makedev’ [-Wnested-externs] *-- *gcc -c -I. -I../include -DLVM_SHARED_PATH=\"//sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 lvcreate.c -o lvcreate.o *gcc -c -I. -I../include -DLVM_SHARED_PATH=\"//sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 lvdisplay.c -o lvdisplay.o *gcc -c -I. -I../include -DLVM_SHARED_PATH=\"//sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 lvextend.c -o lvextend.o *gcc -c -I. -I../include -DLVM_SHARED_PATH=\"//sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -fPIC -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 lvmchange.c -o lvmchange.o *lvconvert.c: In function ‘_lvconvert_single’: *lvconvert.c:1450:10: warning: ‘image_count’ may be used uninitialized in this function [-Wmaybe-uninitialized] *-- *filter-sysfs.c:(.text+0x31e): undefined reference to `major' *filter-sysfs.c:(.text+0x32d): undefined reference to `minor' *../lib/liblvm-internal.a(filter-sysfs.o): In function `_accept_p': *filter-sysfs.c:(.text+0x4b9): undefined reference to `major' *filter-sysfs.c:(.text+0x4c6): undefined reference to `minor' *collect2: error: ld returned 1 exit status *make[1]: *** [Makefile:135: lvm] Error 1 *make[1]: *** Waiting for unfinished jobs.... *../lib/liblvm-internal.a(sharedlib.o): In function `load_shared_library': *sharedlib.c:(.text+0x153): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking *-- *filter-sysfs.c:(.text+0x31e): undefined reference to `major' *filter-sysfs.c:(.text+0x32d): undefined reference to `minor' *../lib/liblvm-internal.a(filter-sysfs.o): In function `_accept_p': *filter-sysfs.c:(.text+0x4b9): undefined reference to `major' *filter-sysfs.c:(.text+0x4c6): undefined reference to `minor' *collect2: error: ld returned 1 exit status *make[1]: *** [Makefile:139: lvm.static] Error 1 *make[1]: Leaving directory '/var/tmp/genkernel/31205.13338.19224.10531/LVM2.2.02.88/tools' *make: *** [make.tmpl:214: tools] Error 2 *-- * Running with options: --save-config all * Using genkernel.conf from /etc/genkernel.conf * Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh .. * Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load .. * * ERROR: Failed to compile the "" target... * * -- End log... -- * Fixing gen_initramfs.sh does seem to fix the build attempting....., then there is still the issue of LVM not building.
Bootable environment requires initramfs as EFI, LUKS & LVM are involved.
I have this error too. Whith new installation. stage3-amd64-20180614T214502Z.tar.xz and portage-latest.tar.bz2.
Does the recent stabilization of 3.5.3.3 solve this for you?
It fixes this issue but creates different ones
See: https://bugs.gentoo.org/658436
3.5.3.3 works for me.
cannot reproduce anymore.