Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658032 - sys-kernel/genkernel-3.4.52.4-r3 Failed to compile the "mdadm mdmon" target
Summary: sys-kernel/genkernel-3.4.52.4-r3 Failed to compile the "mdadm mdmon" target
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 641774
Blocks:
  Show dependency tree
 
Reported: 2018-06-13 10:16 UTC by bazukajo
Modified: 2019-04-26 02:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel.log.xz (genkernel.log.xz,126.07 KB, application/x-xz)
2018-06-13 10:16 UTC, bazukajo
Details
lspci.txt.xz (lspci.txt.xz,880 bytes, application/x-xz)
2018-06-13 10:16 UTC, bazukajo
Details
emerge-info (emerge--info.txt.xz,2.57 KB, application/x-xz)
2018-06-13 10:16 UTC, bazukajo
Details
kernel.config.xz (kernel.config.xz,31.21 KB, application/x-xz)
2018-06-13 10:17 UTC, bazukajo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bazukajo 2018-06-13 10:16:13 UTC
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!
Comment 1 bazukajo 2018-06-13 10:16:40 UTC
Created attachment 535774 [details]
lspci.txt.xz
Comment 2 bazukajo 2018-06-13 10:16:58 UTC
Created attachment 535776 [details]
emerge-info
Comment 3 bazukajo 2018-06-13 10:17:20 UTC
Created attachment 535778 [details]
kernel.config.xz
Comment 4 bazukajo 2018-06-13 10:20:33 UTC
clean install from livecd install-amd64-minimal-20180415T214502Z.iso
Comment 5 Ben Kohler gentoo-dev 2018-06-13 11:20:18 UTC
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
Comment 6 bazukajo 2018-06-13 12:19:41 UTC
(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!
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-24 12:33:01 UTC
Closing per comment #6.