Gentoo Archives: gentoo-user

From: Corbin Bird <corbinbird@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] kernel 4.9.77 error segfault in compile.
Date: Tue, 23 Jan 2018 08:04:13
Message-Id: 851471aa-845c-6819-16d4-2a282b03549c@charter.net
In Reply to: Re: [gentoo-user] kernel 4.9.77 error segfault in compile. by Alexander Kapshuk
1 On 01/23/2018 01:42 AM, Alexander Kapshuk wrote:
2 > On Tue, Jan 23, 2018 at 4:34 AM, Corbin Bird <corbinbird@×××××××.net> wrote:
3 >> On 01/22/2018 11:56 AM, Rich Freeman wrote:
4 >>> On Mon, Jan 22, 2018 at 12:11 PM, Alexander Kapshuk
5 >>> <alexander.kapshuk@×××××.com> wrote:
6 >>>> On Mon, Jan 22, 2018 at 5:51 PM, Corbin Bird <corbinbird@×××××××.net> wrote:
7 >>>>> Anyone else getting this error? ( kernel 4.9.77 )
8 >>>>>
9 >>>>>> CC fs/ext4/mballoc.o
10 >>>>>> CC fs/ext4/block_validity.o
11 >>>>>> CC fs/ext4/move_extent.o
12 >>>>>> CC fs/ext4/mmp.o
13 >>>>>> CC fs/ext4/indirect.o
14 >>>>>> fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't
15 >>>>>> find jump dest instruction at .text+0x56c
16 >>>>>> CC fs/ext4/extents_status.o
17 >>>>>> /bin/sh: line 1: 31735 Segmentation fault ./tools/objtool/objtool
18 >>>>>> check "fs/ext4/extents_status.o"
19 >>>>>> make[2]: *** [scripts/Makefile.build:294: fs/ext4/extents_status.o]
20 >>>>>> Error 139
21 >>>>>> make[1]: *** [scripts/Makefile.build:544: fs/ext4] Error 2
22 >>>>>> make: *** [Makefile:995: fs] Error 2
23 >>>>> Corbin
24 >>>>>
25 >>>>>
26 >>>> Based on the output you supplied, objtool isn't happy with
27 >>>> fs/ext4/indirect.o and fs/ext4/extents_status.o.
28 >>>> Did you do 'make clean' prior to building the kernel?
29 >>>> If you did, it might be worth doing a 'make mrproper' before
30 >>>> rebuilding the kernel.
31 >>>> Don't forget to back up your .config before running mrproper.
32 >>>>
33 >>> While this is going to cause a bit more building, I personally tend to
34 >>> redirect kernel build output. I add O=/var/tmp/linux to all my make
35 >>> commands, which leaves /usr/src untouched and builds faster besides
36 >>> (tmpfs).
37 >>>
38 >>> The main downsides to this are:
39 >>> 1. Make can't re-use objects from previous builds, so rebuilds will
40 >>> go slower. Though, IMO this is worthwhile if re-using those objects
41 >>> causes issues (which I assume is due to imperfect makefiles).
42 >>> 2. When building packages that install kernel modules the prepared
43 >>> sources won't exist. This requires going back and re-preparing them
44 >>> (make O=/var/tmp/linux modules_prepare). For packages like zfs-kmod
45 >>> that use Module.symvers this is even more painful as you can only get
46 >>> that by rebuilding the whole thing.
47 >>>
48 >> Tried both approaches ... the results :
49 >>> make distclean
50 >>> make mrproper
51 >>> --> copy over .config
52 >>> make modules_prepare
53 >>> make && make modules_install
54 >>>
55 >>> CC fs/ext4/block_validity.o
56 >>> CC fs/ext4/move_extent.o
57 >>> CC fs/ext4/mmp.o
58 >>> CC fs/ext4/indirect.o
59 >>> fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't
60 >>> find jump dest instruction at .text+0x56c
61 >>> CC fs/ext4/extents_status.o
62 >>> /bin/sh: line 1: 24095 Segmentation fault ./tools/objtool/objtool
63 >>> check "fs/ext4/extents_status.o"
64 >>> make[2]: *** [scripts/Makefile.build:294: fs/ext4/extents_status.o]
65 >>> Error 139
66 >>> make[1]: *** [scripts/Makefile.build:544: fs/ext4] Error 2
67 >>> make: *** [Makefile:995: fs] Error 2
68 >>>
69 >>>
70 >> Try 2 :
71 >>> make distclean
72 >>> make mrproper
73 >>> --> copy over .config
74 >>> make O=/var/tmp/linux modules_prepare
75 >>> make O=/var/tmp/linux && make O=/var/tmp/linux modules_install
76 >>>
77 >>> CC fs/ext4/move_extent.o
78 >>> CC fs/ext4/mmp.o
79 >>> CC fs/ext4/indirect.o
80 >>> fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't
81 >>> find jump dest instruction at .text+0x56c
82 >>> CC fs/ext4/extents_status.o
83 >>> /bin/sh: line 1: 21028 Segmentation fault ./tools/objtool/objtool
84 >>> check "fs/ext4/extents_status.o"
85 >>> make[3]: *** [/usr/src/linux-4.9.77-gentoo/scripts/Makefile.build:294:
86 >>> fs/ext4/extents_status.o] Error 139
87 >>> make[2]: *** [/usr/src/linux-4.9.77-gentoo/scripts/Makefile.build:544:
88 >>> fs/ext4] Error 2
89 >>> make[1]: *** [/usr/src/linux-4.9.77-gentoo/Makefile:995: fs] Error 2
90 >>> make[1]: Leaving directory '/var/tmp/linux'
91 >>> make: *** [Makefile:150: sub-make] Error 2
92 >> Try 2 gave an error warning about needing an 'make mrproper' ... the error :
93 >>> CHK include/config/kernel.release
94 >>> UPD include/config/kernel.release
95 >>> Using /usr/src/linux-4.9.77-gentoo as source for kernel
96 >>> /usr/src/linux-4.9.77-gentoo is not clean, please run 'make mrproper'
97 >>> in the '/usr/src/linux-4.9.77-gentoo' directory.
98 >>> make[1]: *** [/usr/src/linux-4.9.77-gentoo/Makefile:1021: prepare3]
99 >>> Error 1
100 >>> make[1]: Leaving directory '/var/tmp/linux'
101 >>> make: *** [Makefile:150: sub-make] Error 2
102 >> So ... I followed directions :
103 >>> Darkstar /usr/src/linux # cd /usr/src/linux-4.9.77-gentoo
104 >>> Darkstar /usr/src/linux-4.9.77-gentoo # make mrproper
105 >>> CLEAN scripts/basic
106 >>> CLEAN scripts/kconfig
107 >>> CLEAN .config
108 >> Still get the same error ...
109 >>
110 >> Corbin
111 >>
112 > Is this a distribution supplied kernel or vanilla or one with your own
113 > customisations/modifications?
114 >
115
116 Using 'sys-kernel/gentoo-sources-4.9.77' with USE flags : modules
117 symlink experimental.
118 Both gcc && binutils have been upgraded to the latest stable / no signs
119 of them giving trouble.
120
121 Beginning to think that something corrupted during the emerge process ...
122
123 Corbin

Replies

Subject Author
Re: [gentoo-user] kernel 4.9.77 error segfault in compile. Alexander Kapshuk <alexander.kapshuk@×××××.com>