From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-182189-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE05F1382C5 for <garchives@archives.gentoo.org>; Tue, 23 Jan 2018 02:34:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A27CAE08F7; Tue, 23 Jan 2018 02:34:48 +0000 (UTC) Received: from mtaout002-public.msg.strl.va.charter.net (mtaout002-public.msg.strl.va.charter.net [68.114.190.27]) by pigeon.gentoo.org (Postfix) with ESMTP id 2FFE7E0896 for <gentoo-user@lists.gentoo.org>; Tue, 23 Jan 2018 02:34:48 +0000 (UTC) Received: from impout005 ([68.114.189.20]) by mtaout002.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20180123023432.BQEG7360.mtaout002.msg.strl.va.charter.net@impout005> for <gentoo-user@lists.gentoo.org>; Mon, 22 Jan 2018 20:34:32 -0600 Received: from [97.93.195.171] ([97.93.195.171]) by impout005 with charter.net id 1eaY1x00A3iMEG101eaYaf; Mon, 22 Jan 2018 20:34:32 -0600 X-Authority-Analysis: v=2.2 cv=VrVTO6+n c=1 sm=1 tr=0 a=i3x7l9iubIrdbMHvE2oOlw==:117 a=i3x7l9iubIrdbMHvE2oOlw==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=pGLkceISAAAA:8 a=hOpmn2quAAAA:8 a=OLKN8L9y4RYBFnn9VqEA:9 a=QEXdDO2ut3YA:10 a=GyA-uvUxXSCciAkwuKQO:22 X-Auth-id: Y29yYmluYmlyZEBjaGFydGVyLm5ldA== Subject: Re: [gentoo-user] kernel 4.9.77 error segfault in compile. To: gentoo-user@lists.gentoo.org References: <19f22bc3-ce42-e4e1-f4ab-52625a19f34c@charter.net> <CAJ1xhMXHpLM4jULa8HqfPvaeumvZZGiQUMtEw8Tg8SNLaXK+nQ@mail.gmail.com> <CAGfcS_ntiRyuq+tXdBCRw2qGN92oY4rfRRSUVd=ULpcJ5QfpvQ@mail.gmail.com> From: Corbin Bird <corbinbird@charter.net> Message-ID: <5e0e9718-5620-ba1a-3088-bc4b6ee60bd5@charter.net> Date: Mon, 22 Jan 2018 20:34:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <CAGfcS_ntiRyuq+tXdBCRw2qGN92oY4rfRRSUVd=ULpcJ5QfpvQ@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Archives-Salt: 5635084c-57f1-42c2-aed1-809397913965 X-Archives-Hash: fdcaec56b7319419933a082df20e87ae On 01/22/2018 11:56 AM, Rich Freeman wrote: > On Mon, Jan 22, 2018 at 12:11 PM, Alexander Kapshuk > <alexander.kapshuk@gmail.com> wrote: >> On Mon, Jan 22, 2018 at 5:51 PM, Corbin Bird <corbinbird@charter.net> wrote: >>> Anyone else getting this error? ( kernel 4.9.77 ) >>> >>>> CC fs/ext4/mballoc.o >>>> CC fs/ext4/block_validity.o >>>> CC fs/ext4/move_extent.o >>>> CC fs/ext4/mmp.o >>>> CC fs/ext4/indirect.o >>>> fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't >>>> find jump dest instruction at .text+0x56c >>>> CC fs/ext4/extents_status.o >>>> /bin/sh: line 1: 31735 Segmentation fault ./tools/objtool/objtool >>>> check "fs/ext4/extents_status.o" >>>> make[2]: *** [scripts/Makefile.build:294: fs/ext4/extents_status.o] >>>> Error 139 >>>> make[1]: *** [scripts/Makefile.build:544: fs/ext4] Error 2 >>>> make: *** [Makefile:995: fs] Error 2 >>> Corbin >>> >>> >> Based on the output you supplied, objtool isn't happy with >> fs/ext4/indirect.o and fs/ext4/extents_status.o. >> Did you do 'make clean' prior to building the kernel? >> If you did, it might be worth doing a 'make mrproper' before >> rebuilding the kernel. >> Don't forget to back up your .config before running mrproper. >> > While this is going to cause a bit more building, I personally tend to > redirect kernel build output. I add O=/var/tmp/linux to all my make > commands, which leaves /usr/src untouched and builds faster besides > (tmpfs). > > The main downsides to this are: > 1. Make can't re-use objects from previous builds, so rebuilds will > go slower. Though, IMO this is worthwhile if re-using those objects > causes issues (which I assume is due to imperfect makefiles). > 2. When building packages that install kernel modules the prepared > sources won't exist. This requires going back and re-preparing them > (make O=/var/tmp/linux modules_prepare). For packages like zfs-kmod > that use Module.symvers this is even more painful as you can only get > that by rebuilding the whole thing. > Tried both approaches ... the results : > make distclean > make mrproper > --> copy over .config > make modules_prepare > make && make modules_install > > CC fs/ext4/block_validity.o > CC fs/ext4/move_extent.o > CC fs/ext4/mmp.o > CC fs/ext4/indirect.o > fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't > find jump dest instruction at .text+0x56c > CC fs/ext4/extents_status.o > /bin/sh: line 1: 24095 Segmentation fault ./tools/objtool/objtool > check "fs/ext4/extents_status.o" > make[2]: *** [scripts/Makefile.build:294: fs/ext4/extents_status.o] > Error 139 > make[1]: *** [scripts/Makefile.build:544: fs/ext4] Error 2 > make: *** [Makefile:995: fs] Error 2 > > Try 2 : > > make distclean > make mrproper > --> copy over .config > make O=/var/tmp/linux modules_prepare > make O=/var/tmp/linux && make O=/var/tmp/linux modules_install > > CC fs/ext4/move_extent.o > CC fs/ext4/mmp.o > CC fs/ext4/indirect.o > fs/ext4/indirect.o: warning: objtool: ext4_clear_blocks()+0x242: can't > find jump dest instruction at .text+0x56c > CC fs/ext4/extents_status.o > /bin/sh: line 1: 21028 Segmentation fault ./tools/objtool/objtool > check "fs/ext4/extents_status.o" > make[3]: *** [/usr/src/linux-4.9.77-gentoo/scripts/Makefile.build:294: > fs/ext4/extents_status.o] Error 139 > make[2]: *** [/usr/src/linux-4.9.77-gentoo/scripts/Makefile.build:544: > fs/ext4] Error 2 > make[1]: *** [/usr/src/linux-4.9.77-gentoo/Makefile:995: fs] Error 2 > make[1]: Leaving directory '/var/tmp/linux' > make: *** [Makefile:150: sub-make] Error 2 Try 2 gave an error warning about needing an 'make mrproper' ... the error : > > CHK include/config/kernel.release > UPD include/config/kernel.release > Using /usr/src/linux-4.9.77-gentoo as source for kernel > /usr/src/linux-4.9.77-gentoo is not clean, please run 'make mrproper' > in the '/usr/src/linux-4.9.77-gentoo' directory. > make[1]: *** [/usr/src/linux-4.9.77-gentoo/Makefile:1021: prepare3] > Error 1 > make[1]: Leaving directory '/var/tmp/linux' > make: *** [Makefile:150: sub-make] Error 2 So ... I followed directions : > Darkstar /usr/src/linux # cd /usr/src/linux-4.9.77-gentoo > Darkstar /usr/src/linux-4.9.77-gentoo # make mrproper > CLEAN scripts/basic > CLEAN scripts/kconfig > CLEAN .config Still get the same error ... Corbin