Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Kernel compile error
Date: Wed, 25 Apr 2018 08:35:42
Message-Id: CAJ1xhMXAvnX_im6cchKn04T3VCJCyQaa-BVsMQm9ZF65qjGSaw@mail.gmail.com
In Reply to: [gentoo-user] Kernel compile error by Klaus Ethgen
1 On Wed, Apr 25, 2018 at 10:03 AM, Klaus Ethgen <Klaus+gentoo@××××××.de> wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA512
4 >
5 > Hi,
6 >
7 > I stumbled into the next problem.
8 >
9 > I do have a decent kernel compile knowledge but that seems to be gentoo
10 > specific.
11 >
12 > I have a old i686 machine where I installed gentoo on. Now when I did
13 > the kernel the first time, it worked well. everything fine exept some
14 > minor stuff (see below).
15 > --- /etc/kernels/kernel-config-x86-4.9.76-gentoo-r1 2018-04-25 07:48:25.735961235 +0100
16 > +++ .config 2018-04-25 07:48:25.830960047 +0100
17 > @@ -480,7 +480,6 @@
18 > # CONFIG_PHYS_ADDR_T_64BIT is not set
19 > CONFIG_BOUNCE=y
20 > CONFIG_VIRT_TO_BUS=y
21 > -CONFIG_MMU_NOTIFIER=y
22 > # CONFIG_KSM is not set
23 > CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
24 > # CONFIG_TRANSPARENT_HUGEPAGE is not set
25 > @@ -1528,7 +1527,7 @@
26 > # CONFIG_DM_THIN_PROVISIONING is not set
27 > # CONFIG_DM_CACHE is not set
28 > # CONFIG_DM_ERA is not set
29 > -# CONFIG_DM_MIRROR is not set
30 > +CONFIG_DM_MIRROR=m
31 > # CONFIG_DM_RAID is not set
32 > # CONFIG_DM_ZERO is not set
33 > # CONFIG_DM_MULTIPATH is not set
34 > @@ -1805,8 +1804,8 @@
35 > #
36 > CONFIG_INPUT_MOUSEDEV=m
37 > # CONFIG_INPUT_MOUSEDEV_PSAUX is not set
38 > -CONFIG_INPUT_MOUSEDEV_SCREEN_X=1600
39 > -CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1200
40 > +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
41 > +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
42 > # CONFIG_INPUT_JOYDEV is not set
43 > CONFIG_INPUT_EVDEV=y
44 > # CONFIG_INPUT_EVBUG is not set
45 > @@ -2463,12 +2462,12 @@
46 > # CONFIG_AGP_ALI is not set
47 > # CONFIG_AGP_ATI is not set
48 > # CONFIG_AGP_AMD is not set
49 > -# CONFIG_AGP_AMD64 is not set
50 > +CONFIG_AGP_AMD64=y
51 > CONFIG_AGP_INTEL=y
52 > # CONFIG_AGP_NVIDIA is not set
53 > -# CONFIG_AGP_SIS is not set
54 > +CONFIG_AGP_SIS=y
55 > # CONFIG_AGP_SWORKS is not set
56 > -# CONFIG_AGP_VIA is not set
57 > +CONFIG_AGP_VIA=y
58 > # CONFIG_AGP_EFFICEON is not set
59 > CONFIG_INTEL_GTT=y
60 > CONFIG_VGA_ARB=y
61 > @@ -2489,7 +2488,7 @@
62 > # CONFIG_DRM_I2C_SIL164 is not set
63 > # CONFIG_DRM_I2C_NXP_TDA998X is not set
64 > CONFIG_DRM_RADEON=m
65 > -CONFIG_DRM_RADEON_USERPTR=y
66 > +# CONFIG_DRM_RADEON_USERPTR is not set
67 > # CONFIG_DRM_AMDGPU is not set
68 >
69 > #
70 >
71 > But now, when I try to compile the kernel, I get the following error:
72 > ...
73 > make[2]: *** [scripts/kconfig/Makefile:39: silentoldconfig] Fehler 1
74 > make[1]: *** [Makefile:541: silentoldconfig] Fehler 2
75 > SYSTBL arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
76 > make: *** Keine Regel vorhanden, um das Ziel »include/config/auto.conf«,
77 > benötigt von »include/config/kernel.release«, zu erstellen. Schluss.
78 > make: *** Es wird auf noch nicht beendete Prozesse gewartet....
79 > SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
80 > SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
81 > SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
82 > * Gentoo Linux Genkernel; Version 3.4.52.4
83 > * Running with options: --btrfs --lvm --menuconfig --kernel-cc=/usr/lib/ccache/bin/gcc all
84 > * Using genkernel.conf from /etc/genkernel.conf
85 > * Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
86 > * Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..
87 >
88 > * ERROR: Failed to compile the "prepare" target...
89 > *
90 > * -- Grepping log... --
91 > *
92 > *
93 > * -- End log... --
94 > *
95 > * Please consult /var/log/genkernel.log for more information and any
96 > * errors that were reported above.
97 > *
98 > * Report any genkernel bugs to bugs.gentoo.org and
99 > * assign your bug to genkernel@g.o. Please include
100 > * as much information as you can in your bug report; attaching
101 > * /var/log/genkernel.log so that your issue can be dealt with effectively.
102 > *
103 > * Please do *not* report compilation failures as genkernel bugs!
104 >
105 > I even try to compile with exactly the same config that compiled some
106 > days before but got the same error.
107 >
108 > The installed kernel sources and genkernel are:
109 > [IP-] [ ] sys-kernel/genkernel-3.4.52.4-r2:0
110 > [IP-] [ ] sys-kernel/gentoo-sources-4.9.76-r1:4.9.76-r1
111 >
112 > As the error is completely without a meaning for me, maybe others have
113 > an Idea.
114 >
115 > Regards
116 > Klaus
117 > - --
118 > Klaus Ethgen http://www.ethgen.ch/
119 > pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@××××××.ch>
120 > Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
121 > -----BEGIN PGP SIGNATURE-----
122 > Comment: Charset: ISO-8859-1
123 >
124 > iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlrgKDIACgkQpnwKsYAZ
125 > 9qyYvQwAtK+EA0Kv8Vt5443fml9mh0te6k/WUMlAps0u0Ds58NU+IBYebcLCasmM
126 > SG/SDjt/WSJCeb9LQ0w8W9xpi5NAn2HpUiKdpZHeyqiJ5EqHxE6qAMHbsdgSsybY
127 > SskRr8KX3gIErJR6KVLhYxpb1oOZVwaAVCp970c7TpEFiIezNTROX31/olsImDPj
128 > 6n5EtAYwogdq32AC7Q5BWuiElWtnmNw5JOal3LlDL0Z0uITm9R+WFzcAsegwYpgF
129 > hgjndQsNFen4CSDXy+t6nxEuByPWEA3Jcz20tHwah3pO5X+kt7Ev3P5Y53vQIq8p
130 > MqFfrwro1/I1fenAqnaYyaedAumgJYSIjgbcCTRgWUY27DX6Ogft1HKjOh3/Jf54
131 > a/7BqpRo9CqI62/WYdVTChCZitESIagfZvkrrT+x9D8l2Xfz0FbIpeOeA5SxHoim
132 > GmLfBaRXYHTcznbl+tn07xylFhYCzPIcmtA4Q3cKDx7cUGcJlVlTGnYCp7ZpjQvD
133 > 4nB6ebuf
134 > =igJv
135 > -----END PGP SIGNATURE-----
136 >
137
138 Did you use a config file for 4.9.76 to build for kernel 3.4.52?
139 If so, this might not be a good idea. CONFIG options may vary quit a
140 bit between different kernel releases, which could mean trouble.
141 Using an older config to build a newer kernel is usually OK. While
142 going the other way may not work as expected.
143 Also, I've noticed that your 'make silentconfig' aborted. You want to
144 take a closer look at that too. Try running 'make oldconfig' and see
145 what transpires.
146 Another point to consider is using a more recent kernel, as 3.4.52,
147 which was released back in 2013, may no longer be supported.

Replies

Subject Author
Re: [gentoo-user] Kernel compile error "Christoph Böhmwalder" <christoph@×××××××××××.at>
Re: [gentoo-user] Kernel compile error Klaus Ethgen <Klaus+gentoo@××××××.de>