Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel upgrade to 4.4.6 hangs without logs.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 296
Location: Brisbane, Australia

PostPosted: Tue Apr 26, 2016 1:49 pm    Post subject: [SOLVED] Kernel upgrade to 4.4.6 hangs without logs. Reply with quote

Kernel upgrade to 4.4.6 hangs without logs.

Tried to upgrade the kernels of my desktop and notebook fron kernel 4.1.12 upgrade to 4.4.6. Both systems freeze during booting with 4.4.6. No dmsg, No messages logs. Previous kernel upgrades always worked smooth as silk.

Using: OpenRC, eudev, Xfce,

Desktop configration:
Genkernel with /etc/genkernel.conf additional options:
MENUCONFIG="yes"
MAKEOPTS="-j5"
MDADM="yes"
MDADM_CONFIG="/etc/mdadm.conf"
DISKLABEL="yes"
KNAME="genkernel-G_ROOT"

Boot: Grub-static
grub.conf:
title PROXY-64 domdadm LABEL=G_ROOT Gentoo Linux 4.4.6-gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-G_ROOT-x86_64-4.4.6-gentoo net.ifnames=0 root=/dev/ram0 domdadm real_root=LABEL=G_ROOT
initrd /boot/initramfs-genkernel-G_ROOT-x86_64-4.4.6-gentoo

No error reported in genkernel.log
------------------

Notebook configration:
Genkernel with /etc/genkernel.conf additional options:
MENUCONFIG="yes"
MAKEOPTS="-j5"
DISKLABEL="yes"
KNAME="genkernel-HP_ROOT"

Boot: Grub-static
grub.conf:
title PROXY-64 domdadm LABEL=HP_ROOT Gentoo Linux 4.4.6-gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-HP_ROOT-x86_64-4.4.6-gentoo net.ifnames=0 root=/dev/ram0 real_root=LABEL=HP_ROOT
initrd /boot/initramfs-genkernel-HP_ROOT-x86_64-4.4.6-gentoo

No error reported in genkernel.log
-------------------
Back to top
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 296
Location: Brisbane, Australia

PostPosted: Fri Apr 29, 2016 3:55 pm    Post subject: Reply with quote

[SOLVED]
Cause:
/usr/src/linux-4.4.6-gentoo/include/linux/string.h line 117:
'char *strreplace(char *s, char old, char new);' causes compile failure.
"new" is a C++ keyword.

Fix:
Changing to 'char *strreplace(char *s, char oldstr, char newstr);' and rebuilding the kernel and app-emulation/virtualbox and related fixes the problem.

VirtualBox.
VirtualBbox internal runtime and build compilers and assemblers use the kernel sources.
Back to top
View user's profile Send private message
slamp
n00b
n00b


Joined: 11 Jun 2009
Posts: 3

PostPosted: Sun May 01, 2016 1:36 pm    Post subject: Reply with quote

I confirmed this bug and this solution.

I got it when doing
emerge x11-drivers/xf86-video-virtualbox

Cause:
/usr/src/linux-4.4.6-gentoo/include/linux/string.h line 117:42
'char *strreplace(char *s, char old, char new);' causes compile failure.

I applied the same fix as c5ace
Changing to 'char *strreplace(char *s, char oldstr, char newstr);'

I found a reference also here: https://www.virtualbox.org/pipermail/vbox-dev/2015-August/013368.html
Back to top
View user's profile Send private message
smalldog
n00b
n00b


Joined: 13 Nov 2005
Posts: 10

PostPosted: Tue Aug 23, 2016 3:21 pm    Post subject: emerge drivers/xf86-video-virtualbox-4.3.32 fail Reply with quote

C5ace wrote:
[SOLVED]
Cause:
/usr/src/linux-4.4.6-gentoo/include/linux/string.h line 117:
'char *strreplace(char *s, char old, char new);' causes compile failure.
"new" is a C++ keyword.

Fix:
Changing to 'char *strreplace(char *s, char oldstr, char newstr);' and rebuilding the kernel and app-emulation/virtualbox and related fixes the problem.

VirtualBox.
VirtualBbox internal runtime and build compilers and assemblers use the kernel sources.


You save my life. Thanks so much :lol: :lol: :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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