1 |
On Friday, April 29, 2016 10:56:28 PM Hans wrote: |
2 |
> On 28/04/16 22:22, Hans wrote: |
3 |
> > On 27/04/16 21:33, J. Roeleveld wrote: |
4 |
> >> On April 27, 2016 12:59:18 PM GMT+02:00, Hans <linux@×××××.com> wrote: |
5 |
> >>> Tried to upgrade the kernels of my desktop and notebook fron kernel |
6 |
> >>> 4.1.12 upgrade to 4.4.6. Both systems freeze during booting with 4.4.6. |
7 |
> >>> |
8 |
> >>> No dmsg, No messages logs. Previous kernel upgrades always worked |
9 |
> >>> smooth |
10 |
> >>> as silk. |
11 |
> >>> |
12 |
> >>> Using: OpenRC, eudev, Xfce, |
13 |
> >>> |
14 |
> >>> Desktop configration: |
15 |
> >>> Genkernel with /etc/genkernel.conf additional options: |
16 |
> >>> MENUCONFIG="yes" |
17 |
> >>> MAKEOPTS="-j5" |
18 |
> >>> MDADM="yes" |
19 |
> >>> MDADM_CONFIG="/etc/mdadm.conf" |
20 |
> >>> DISKLABEL="yes" |
21 |
> >>> KNAME="genkernel-G_ROOT" |
22 |
> >>> |
23 |
> >>> Boot: Grub-static |
24 |
> >>> grub.conf: |
25 |
> >>> title PROXY-64 domdadm LABEL=G_ROOT Gentoo Linux 4.4.6-gentoo |
26 |
> >>> root (hd0,0) |
27 |
> >>> kernel /boot/kernel-genkernel-G_ROOT-x86_64-4.4.6-gentoo net.ifnames=0 |
28 |
> >>> root=/dev/ram0 domdadm real_root=LABEL=G_ROOT |
29 |
> >>> initrd /boot/initramfs-genkernel-G_ROOT-x86_64-4.4.6-gentoo |
30 |
> >>> |
31 |
> >>> No error reported in genkernel.log |
32 |
> >>> ------------------ |
33 |
> >>> |
34 |
> >>> Notebook configration: |
35 |
> >>> Genkernel with /etc/genkernel.conf additional options: |
36 |
> >>> MENUCONFIG="yes" |
37 |
> >>> MAKEOPTS="-j5" |
38 |
> >>> DISKLABEL="yes" |
39 |
> >>> KNAME="genkernel-HP_ROOT" |
40 |
> >>> |
41 |
> >>> Boot: Grub-static |
42 |
> >>> grub.conf: |
43 |
> >>> title PROXY-64 domdadm LABEL=HP_ROOT Gentoo Linux 4.4.6-gentoo |
44 |
> >>> root (hd0,0) |
45 |
> >>> kernel /boot/kernel-genkernel-HP_ROOT-x86_64-4.4.6-gentoo net.ifnames=0 |
46 |
> >>> |
47 |
> >>> root=/dev/ram0 real_root=LABEL=HP_ROOT |
48 |
> >>> initrd /boot/initramfs-genkernel-HP_ROOT-x86_64-4.4.6-gentoo |
49 |
> >>> |
50 |
> >>> No error reported in genkernel.log |
51 |
> >>> ------------------- |
52 |
> >> |
53 |
> >> Why are you specifying root=/dev/ram0? |
54 |
> >> |
55 |
> >> Modern kernels use initramfs and you normally specify the real root |
56 |
> >> device there. |
57 |
> > |
58 |
> > "root=/dev/ram0" is a leftover from the original installation from a |
59 |
> > long time ago. Removing it makes no difference. |
60 |
> > |
61 |
> > Am at the moment making a new test installation in VirtualBox. So far |
62 |
> > its working with kernel 4.4.6. If Xfce works tomorrow, it's either a |
63 |
> > configuration or driver problem. I will then do a re-install of Gentoo |
64 |
> > on my desktop and the notebook using a external drive. |
65 |
> |
66 |
> Kernel 4.4.6 as a bug. x11-drivers/xf86-video-virtualbox does not compile. |
67 |
> Reason: |
68 |
> /usr/src/linux-4.4.6-gentoo/include/linux/string.h |
69 |
> 'char *strreplace(char *s, char old, char new);' causes compile failure. |
70 |
> "new" is a C++ keyword. |
71 |
> Changing tp 'char *strreplace(char *s, char oldstr, char newstr);' fixes |
72 |
> the problem. |
73 |
|
74 |
That's not a bug in the kernel per se, that's a bug in using that kernel |
75 |
header (written in C) in a compiler expecting C++ code. Which would make it a |
76 |
bug in xf86-video-virtualbox for not linking against a C-compiled object file. |
77 |
|
78 |
Granted, it'd be a heck of a lot more convenient if the kernel header files |
79 |
didn't use C++ keywords...but it *is* fundamentally a problem with compiling a |
80 |
source file using the wrong language. Like trying to read something in |
81 |
Portugese, except it was written in Spanish. It might work some of the time, |
82 |
but it'll catch you out eventually. |
83 |
|
84 |
-- |
85 |
:wq |