Created attachment 535772 [details] genkernel.log.xz kernel linux-4.9.95-gentoo clean install from livecd install-amd64-minimal-20180415T214502Z.iso genkernel --mdadm --menuconfig all * mdadm: >> Compiling... COMMAND: make -j4 CC="gcc" LD="ld" AS="as" mdadm mdmon gcc -Os -DUSE_PTHREADS -c -o mdadm.o mdadm.c gcc -Os -DUSE_PTHREADS -c -o config.o config.c gcc -Os -DUSE_PTHREADS -c -o mdstat.o mdstat.c gcc -Os -DUSE_PTHREADS -c -o ReadMe.o ReadMe.c mdadm.c: In function ‘main’: mdadm.c:1047:24: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration] ident.super_minor = minor(stb.st_rdev); ^~~~~ gcc -Os -DUSE_PTHREADS -c -o util.o util.c util.c: In function ‘md_get_version’: util.c:196:9: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration] if (major(stb.st_rdev) == MD_MAJOR) ^~~~~ util.c: In function ‘add_dev’: util.c:677:16: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration] dm->minor = minor(stb->st_rdev); ^~~~~ util.c: In function ‘get_md_name’: util.c:914:10: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration] rdev = makedev(mdp, (-1-dev)<<6); ^~~~~~~ util.c: In function ‘open_container’: util.c:1406:8: error: called object ‘major’ is not a function or function pointer (int)major(st.st_rdev), (int)minor(st.st_rdev)); ^~~~~ util.c:1400:6: note: declared here int major, minor; ^~~~~ util.c:1406:32: error: called object ‘minor’ is not a function or function pointer (int)major(st.st_rdev), (int)minor(st.st_rdev)); ^~~~~ util.c:1400:13: note: declared here int major, minor; ^~~~~ make: *** [<builtin>: util.o] Error 1 make: *** Waiting for unfinished jobs.... * Gentoo Linux Genkernel; Version 3.4.52.4 * Running with options: --mdadm --menuconfig 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 "mdadm mdmon" target... * * -- Grepping log... -- * * * -- End log... -- * * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively. * * Please do *not* report compilation failures as genkernel bugs!
Created attachment 535774 [details] lspci.txt.xz
Created attachment 535776 [details] emerge-info
Created attachment 535778 [details] kernel.config.xz
clean install from livecd install-amd64-minimal-20180415T214502Z.iso
I think this has to do with newly stable glibc-2.26 and the old-ish mdadm bundled with current stable genkernel. It was fixed in ::gentoo in bug 580188 but stable genkernel lags behind. You may want to consider allowing unstable genkernel until we can get some action on bug 641774
(In reply to Ben Kohler from comment #5) > I think this has to do with newly stable glibc-2.26 and the old-ish mdadm > bundled with current stable genkernel. It was fixed in ::gentoo in bug > 580188 but stable genkernel lags behind. > > You may want to consider allowing unstable genkernel until we can get some > action on bug 641774 sys-kernel/genkernel-3.5.3.3 its work! Thank you!
Closing per comment #6.