Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel initramfs build fails due to new glibc has no rpc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Helsy7
n00b
n00b


Joined: 17 Nov 2017
Posts: 3

PostPosted: Fri Nov 17, 2017 10:39 am    Post subject: genkernel initramfs build fails due to new glibc has no rpc Reply with quote

Hi ,
i tried to update my initramfs with:
Code:
genkernel --luks --mdadm --lvm --install initramfs

and it fails with:
Code:
util-linux/mount.c:252:22: fatal error: rpc/rpc.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/Makefile.build:197: util-linux/mount.o] Error 1

rpc.h is normally part of glibc via a patch, but the gentoo team removed this patch:
https://bugs.gentoo.org/370645
https://bugs.gentoo.org/381391

Im still able to get rpc.h via the package libtirpc and the new location is tirpc/rpc/rpc.h and not in rpc/rpc.h
Still on the wrong place.
How to solve this problem?
I found a guideline how to port packages away from rpc:
https://wiki.gentoo.org/wiki/Project:Toolchain/RPC_implementation
But when i look in /usr/portage/disfiles/util-linux/util-linux-2.31.tar.gz/sys-utils/mount.c i cant find the pattern "rpc" within this file.
And i cant find the file mount.h
Does genkernel uses its own copy of util-linux ?

EDIT: noticed they use busybox and found the specific mount.c, Will open an issue in the genkernel git to add a patch
EDIT2: I found this issue from few days ago which describes the bug in busy box https://bugs.gentoo.org/637536, should i also open an issue for genkernel or is this enough ?
Back to top
View user's profile Send private message
Helsy7
n00b
n00b


Joined: 17 Nov 2017
Posts: 3

PostPosted: Fri Nov 17, 2017 11:18 am    Post subject: Re: genkernel initramfs build fails due to new glibc has no Reply with quote

Helsy7 wrote:
Hi ,
i tried to update my initramfs with:
Code:
genkernel --luks --mdadm --lvm --install initramfs

and it fails with:
Code:
util-linux/mount.c:252:22: fatal error: rpc/rpc.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/Makefile.build:197: util-linux/mount.o] Error 1

rpc.h is normally part of glibc via a patch, but the gentoo team removed this patch:
https://bugs.gentoo.org/370645
https://bugs.gentoo.org/381391

Im still able to get rpc.h via the package libtirpc and the new location is tirpc/rpc/rpc.h and not in rpc/rpc.h
Still in the wrong place.
How to solve this problem?
I found a guideline how to port packages away from rpc:
https://wiki.gentoo.org/wiki/Project:Toolchain/RPC_implementation
But when i look in /usr/portage/disfiles/util-linux/util-linux-2.31.tar.gz/sys-utils/mount.c i cant find the pattern "rpc" within this file.
And i cant find the file mount.h
Does genkernel uses its own copy of util-linux ?

EDIT: noticed they use busybox and found the specific mount.c, Will open an issue in the genkernel git to add a patch
EDIT2: I found this issue from few days ago which describes the bug in busy box https://bugs.gentoo.org/637536 , should i also open an issue for genkernel or is this enough ?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16939
Location: here

PostPosted: Fri Nov 17, 2017 11:25 am    Post subject: Re: genkernel initramfs build fails due to new glibc has no Reply with quote

Helsy7 wrote:
EDIT2: I found this issue from few days ago which describes the bug in busy box https://bugs.gentoo.org/637536, should i also open an issue for genkernel or is this enough ?

The problem is related to busybox then I think that the existing bug is enough (it's not a genkernel problem)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Helsy7
n00b
n00b


Joined: 17 Nov 2017
Posts: 3

PostPosted: Fri Nov 17, 2017 12:05 pm    Post subject: Re: genkernel initramfs build fails due to new glibc has no Reply with quote

Thx for the quick answer

In case someone has the same problem, i solved it:
in
Code:
 /usr/share/genkernel/defaults/busy-config

search for the line:
Code:
# CONFIG_FEATURE_MOUNT_NFS is not set

and edit it to:
Code:
CONFIG_FEATURE_MOUNT_NFS=n


and in
Code:
/usr/share/genkernel/gen_compile.sh

search for the line:
Code:
kconfig_set_opt "${TEMP}/busybox-config" CONFIG_FEATURE_MOUNT_NFS y

and edit it to:
Code:
kconfig_set_opt "${TEMP}/busybox-config" CONFIG_FEATURE_MOUNT_NFS n

Explanation: https://bugs.gentoo.org/637536
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11449

PostPosted: Sat Nov 18, 2017 1:10 am    Post subject: Reply with quote

If you make those changes to genkernel, you must also take steps to ensure that no new merges of genkernel overwrite those changes.
Back to top
View user's profile Send private message
jburns
l33t
l33t


Joined: 18 Jan 2007
Posts: 995
Location: Massachusetts USA

PostPosted: Sat Nov 18, 2017 2:23 am    Post subject: Reply with quote

The bug was fixed in genkernel-3.5.2.4 see 637446 - sys-kernel/genkernel-3.5.2.3 fails building busybox with missing rpc.h (since glibc-2.26?)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum