Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1063956pxb; Wed, 6 Apr 2022 07:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt4y2VgNzmzZe6n2pyBOdIZZejtR1vuEHWgh0mhSKl1yjunwI6J8Ua6hluyWXfsxTy1EbI X-Received: by 2002:a63:ec52:0:b0:39c:b5f3:7b25 with SMTP id r18-20020a63ec52000000b0039cb5f37b25mr1463849pgj.224.1649256887977; Wed, 06 Apr 2022 07:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649256887; cv=none; d=google.com; s=arc-20160816; b=HMgmlYuJlYAcw89OXGEEhas0xV//20momOmOnBuiU0zyBCZ7Nn+aUc6QM0fMf/nj9U 7DBfVvnmYkjtKzeuKd2sYwqcfFdPlytKlpYPd7J61mvZC0fnk3qqiVWx0HmPeOn4HX7n oQMV+EQdGE4M40MX9wKHZAlIpzW3wkI8wD/0S7odXFCOJ0DEtVs/xYYAnBwSPWcPgr0n QmOb0osNFOl8hgyL8IVse2nHxmSjPj5DB9VGR3C4u2FxIoExl4584tPiwFSI1oQePIXz UDS2UBsZBJ0r5xC6XK3XWSq7rEw9QmxRnzTBXHbKC+GnrZXDInwDE+MDBd1VerQ1hq72 SBHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CdtqY9LHVnRcx4BKanH84fsV78uae3TEtOqIv92BTbU=; b=VggDRV0j3T1nnmWPB+EXF2/2SkX1KArrXhntJwFLC9J79uwEfjnD9Li314PiDWNeww 00jPZinoBwh7Dv7VTgi8A9HhhyajL+iXyQfZcV6qVHkp0VhlilpFM073C0/9IgvbVOw1 cutsaTTGKlffHfRoUaperrg2q/LkSWMyUWJDtw9ECzg5lOjWDnw2Cd+Lss0Pzii62oMY LdG7+ifinknVKUqgU+aKfgHiUXP7shXwQFQBKbg9GAcLWFTuYjNNa+fGfjQBx98jMLuM +Dj4hdGDlVQnSeSfG4mn+XRhvoen76F5ZywYu7y3RXVtelmsOdLULAJUyjZUakp0/Om8 yKTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HYGAzAvD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d2-20020a170903230200b00153faf9d66bsi17054706plh.447.2022.04.06.07.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:54:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HYGAzAvD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 283B3487C3E; Wed, 6 Apr 2022 05:39:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244214AbiDFIDW (ORCPT + 99 others); Wed, 6 Apr 2022 04:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1577417AbiDFIBK (ORCPT ); Wed, 6 Apr 2022 04:01:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F3D03878D5; Tue, 5 Apr 2022 18:13:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 95224B8202A; Wed, 6 Apr 2022 01:13:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F295C385B5; Wed, 6 Apr 2022 01:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649207607; bh=K2W88sa0e40FhxFM51hz1PVnPS6fYU/JKW4DlHd0JHk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HYGAzAvDvERjww1332qf4HBWmEBr8lBkHk5nMmpuHlcrS5xNhnbKDRvGd28nZ+kpN TyR2NMK9JSTMkmDUMQaAIe7sJuDWPs3BEWWckbImQOQQVb12qZhWymF9E6XURIGl3a ywXDWYdzLFYuIqxnrYkVbVipI7/38HCnjQcchEcsY3kjjiFKEn/sLMMxn3BglHVeeM CTPK108iZ1bfDOO75pm6RvAA1YcwofguWk2pYis7TDML2vBzhBJ34KsSC3mLhVZZoL RvjsW2J22HTbg1jpz9AndAsh4y5a+5KueCNel9rddnbDEZXBMQY2wLAx8cB7K3Bdi8 GCpVhnbxbQaPg== Received: by mail-ua1-f41.google.com with SMTP id j9so949629uap.13; Tue, 05 Apr 2022 18:13:27 -0700 (PDT) X-Gm-Message-State: AOAM531T555rIXPdxkj5Ghg328Wx6M2IqnznVf5Ai87HpmZwWR2EkB65 opRePyXrYgbnWaYanlaPaQzk+dW17QcMl2RG2Vw= X-Received: by 2002:a67:efc3:0:b0:325:4fcf:60bf with SMTP id s3-20020a67efc3000000b003254fcf60bfmr1892801vsp.51.1649207606157; Tue, 05 Apr 2022 18:13:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Guo Ren Date: Wed, 6 Apr 2022 09:13:15 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [next] riscv: Linux next-20220404 riscv defconfig builds failed. To: Palmer Dabbelt Cc: Nathan Chancellor , Naresh Kamboju , Linux Next Mailing List , Linux Kernel Mailing List , linux-riscv , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Stephen Rothwell , Guo Ren , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Arnd Bergmann , Paul Walmsley , Albert Ou Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 6, 2022 at 12:15 AM Palmer Dabbelt wrote: > > On Mon, 04 Apr 2022 22:17:24 PDT (-0700), guoren@kernel.org wrote: > > On Tue, Apr 5, 2022 at 12:57 AM Nathan Chancellor wrote: > >> > >> On Mon, Apr 04, 2022 at 03:28:41PM +0530, Naresh Kamboju wrote: > >> > Linux next-20220404 riscv defconfig builds failed. > >> > > >> > Regressions found on riscv: > >> > - riscv-riscv-clang-14-defconfig > >> > - riscv-riscv-gcc-10-defconfig > >> > - riscv-riscv-clang-13-defconfig > >> > - riscv-riscv-clang-12-defconfig > >> > - riscv-riscv-clang-11-defconfig > >> > - riscv-riscv-gcc-11-defconfig > >> > - riscv-riscv-gcc-8-defconfig > >> > - riscv-riscv-gcc-9-defconfig > >> > - riscv-riscv-clang-nightly-defconfig > >> > > >> > > >> > arch/riscv/kernel/compat_signal.c:7:10: fatal error: > >> > linux/tracehook.h: No such file or directory > >> > 7 | #include > >> > | ^~~~~~~~~~~~~~~~~~~ > >> > compilation terminated. > >> > make[3]: *** [scripts/Makefile.build:289: > >> > arch/riscv/kernel/compat_signal.o] Error 1 > >> > >> For what it's worth, I also see: > >> > >> $ make -skj"$(nproc)" ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig all > >> arch/riscv/kernel/compat_vdso/compat_vdso.lds.S:3:10: fatal error: ../vdso/vdso.lds.S: No such file or directory > >> 3 | #include <../vdso/vdso.lds.S> > >> | ^~~~~~~~~~~~~~~~~~~~ > >> compilation terminated. > >> make[2]: *** [scripts/Makefile.build:462: arch/riscv/kernel/compat_vdso/compat_vdso.lds] Error 1 > >> arch/riscv/kernel/compat_vdso/rt_sigreturn.S:3:10: fatal error: ../vdso/rt_sigreturn.S: No such file or directory > >> 3 | #include <../vdso/rt_sigreturn.S> > >> | ^~~~~~~~~~~~~~~~~~~~~~~~ > >> compilation terminated. > >> arch/riscv/kernel/compat_vdso/note.S:3:10: fatal error: ../vdso/note.S: No such file or directory > >> 3 | #include <../vdso/note.S> > >> | ^~~~~~~~~~~~~~~~ > >> compilation terminated. > >> arch/riscv/kernel/compat_vdso/getcpu.S:3:10: fatal error: ../vdso/getcpu.S: No such file or directory > >> 3 | #include <../vdso/getcpu.S> > >> | ^~~~~~~~~~~~~~~~~~ > >> compilation terminated. > >> make[2]: *** [arch/riscv/kernel/compat_vdso/Makefile:43: arch/riscv/kernel/compat_vdso/rt_sigreturn.o] Error 1 > >> make[2]: *** [arch/riscv/kernel/compat_vdso/Makefile:43: arch/riscv/kernel/compat_vdso/note.o] Error 1 > >> make[2]: *** [arch/riscv/kernel/compat_vdso/Makefile:43: arch/riscv/kernel/compat_vdso/getcpu.o] Error 1 > >> arch/riscv/kernel/compat_vdso/flush_icache.S:3:10: fatal error: ../vdso/flush_icache.S: No such file or directory > >> 3 | #include <../vdso/flush_icache.S> > >> | ^~~~~~~~~~~~~~~~~~~~~~~~ > >> compilation terminated. > >> make[2]: *** [arch/riscv/kernel/compat_vdso/Makefile:43: arch/riscv/kernel/compat_vdso/flush_icache.o] Error 1 > >> > >> I am guessing this code was never tested with $(srctree) == $(objtree). > > Thx for pointing it out: > > I always use: > > make -skj"$(nproc)" ARCH=riscv > > CROSS_COMPILE=riscv64-unknown-linux-gnu- EXTRA_CFLAGS+=-g > > O=../build-riscv/ defconfig all > > > > When I change to: > > make -skj"$(nproc)" ARCH=riscv > > CROSS_COMPILE=riscv64-unknown-linux-gnu- EXTRA_CFLAGS+=-g defconfig > > all > > > > I got your problem. > > Just to be clear: this one wasn't supposed to go in via the csky tree, > and had other build issues that were being found by the autobuilders > (which is why it hadn't gone in via the riscv tree). I do in-tree > builds somewhat regularly so that probably would have caught it if > nothing else did, but my guess is that some other autobuilder would have > found it first (some of the earlier patches The problem and other build issues (arm64 & 5.18-rc1 conflict) all have been solved in v12: https://lore.kernel.org/linux-riscv/20220405071314.3225832-1-guoren@kernel.org/ > > Guo: please stop pushing things to linux-next that break the builds > and/or aren't aimed at your tree. This just makes things unnecessarly > complicated. If you don't want to deal with the build issues that's OK, > just LMK when you send the patch sets out and I'll deal with them, but > having linux-next's build break causes fallout for a lot of users. Yesterday, I made my https://github.com/c-sky/csky-linux/commits/linux-next with linux-5.18-rc1 tag commit version. So this only affected linux-next-20220404. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/