Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630080 - sys-kernel/genkernel-3.5.2.0 initramfs is unable to build mdadm
Summary: sys-kernel/genkernel-3.5.2.0 initramfs is unable to build mdadm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 14:45 UTC by Ivan Iraci
Modified: 2017-09-06 23:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Iraci 2017-09-06 14:45:21 UTC
Genkernel fails to build mdadm with the following error:

*util.c: In function ‘open_container’:                                                                    
*util.c:1509:8: error: called object ‘major’ is not a function or function pointer
*   (int)major(st.st_rdev), (int)minor(st.st_rdev));                                                      
*        ^                                           
*util.c:1503:6: note: declared here                                                                       
*  int major, minor;                                                                                                                                                                                                *      ^                                                                                                                                                                                                            
*util.c:1509:32: error: called object ‘minor’ is not a function or function pointer                       
*--                                                                                                       
*                                ^                                                                        
*util.c:1503:13: note: declared here                                                                      
*  int major, minor;                                 
*             ^                                                                                           
*gcc -Os -DNO_DLM -DNO_COROSYNC   -DUSE_PTHREADS -DBINDIR=\"/sbin\"  -c -o maps.o maps.c                  
*make: *** [<incorporato>: util.o] Error 1                                                                
*--                                                  
* Using genkernel.conf from /etc/genkernel.conf      

sys-kernel/genkernel: 3.5.2.0
kernel: gentoo-sources (tested all versions between 4.12.3 and 4.12.10; 4.13.0 fails to build due to a problem with fbcondecor unrelated to this issue)
glibc: 2.25-r4

I think this issue could be related to #575232

Reproducible: Always
Comment 1 Ben Kohler gentoo-dev 2017-09-06 16:39:09 UTC
This new genkernel release was supposed to have mdadm-4.0 according to the ebuild commit message, but I don't see that in the installed version:

sys-kernel/genkernel-3.5.2.0 (/usr/share/genkernel/distfiles/mdadm-3.4.tar.xz)

/usr/share/genkernel/defaults/software.sh:MDADM_VER="${MDADM_VER:-3.4}"
Comment 3 Larry the Git Cow gentoo-dev 2017-09-06 23:48:58 UTC
Bug has been closed via the following commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfef728c967bb381006d34b31248b41448bb0637

commit cfef728c967bb381006d34b31248b41448bb0637
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2017-09-06 23:48:11 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-09-06 23:48:50 +0000

    sys-kernel/genkernel: correct mdadm bump.
    
    Fixes: https://bugs.gentoo.org/630080
    Package-Manager: Portage-2.3.6, Repoman-2.3.3

 sys-kernel/genkernel/Manifest                                           | 2 +-
 .../genkernel/{genkernel-3.5.2.0.ebuild => genkernel-3.5.2.0-r1.ebuild} | 2 +-
 sys-kernel/genkernel/genkernel-9999.ebuild                              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)