Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp20544pxb; Mon, 4 Apr 2022 22:32:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfSA/EoO3CG6X2BVkQi/1HhfK8vH3CpzyT3SNffGcHAABne5CyuIIDVqlN9S+vRCKRpq7w X-Received: by 2002:a17:906:2991:b0:6cc:fc18:f10c with SMTP id x17-20020a170906299100b006ccfc18f10cmr1755804eje.744.1649136735878; Mon, 04 Apr 2022 22:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649136735; cv=none; d=google.com; s=arc-20160816; b=ixqt61v/2ZJUfaxYrnYVwVLbMZs8M6GJg1pz28HTk7W2ySapRpW+QUmx49tpZJHBN2 UkDb2lG9xAtMJOZuGAH3mk5Z5NVZ5wG6u0fyJxCUEZr4qM2+lxpCHeQeE5zX7cSK7cCH HGTHSVDU0fzrOV4jeReDqFPsvN/QLYIzvj66SvcAWmgnjReyvhk1p9luFMyXNOrYBmXv dZlNsjMsD3+3eCH/AfMyge01kLUlhVe8gQ6pQcsjY3b5bWL7Z6U2MGoh4su6+5QrsG4y 3hguAYIMwO7cXZB0K0ocW+fXenUC1bc1JDDT2XN98kHWPyGd4y2PYUWBD6DIkXUP8GgS 50ug== 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=qvS03ZmAUgAQ/MKhVBACjUF4+q++vztt50eVbOg/n9Y=; b=CbA6TaHwh932yRT3/UVgcJwVe3np4qJ5axtmfooPfy+iVAV1QXlvT4NdOJnZC9anvQ KmVsYGY67JNdD522CK5s8zhn3aMOxatJWPnYO5v2HYpW7g8CosBz4WlhzzeEe8yRS0M1 soaHzkKs70dLC24BS0wIT5PKr+02uymeLBOeqTQQZRKjlypt4qjn9v/KEazpanC7rMxV qr8LO8v/IYjfWbiFm2ARxFpL9l6e0KUFYf0MtDRv7whfvoiTZibSWzzpyyilGP6DQA/A IjrPMKDHnYAe3ahOReiddXgrMUehMod3ZGM0myk7t2R9uV0ampJY47NqiJ7urJm2be3O QYTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dZrT9tlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a056402268b00b00418c2b5bd9csi9100185edd.126.2022.04.04.22.31.48; Mon, 04 Apr 2022 22:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dZrT9tlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbiDEFTh (ORCPT + 99 others); Tue, 5 Apr 2022 01:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbiDEFTf (ORCPT ); Tue, 5 Apr 2022 01:19:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB02332; Mon, 4 Apr 2022 22:17:38 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4F51A614E1; Tue, 5 Apr 2022 05:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AADE1C340F3; Tue, 5 Apr 2022 05:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649135856; bh=F4BmQX2Y63BrfJkQle/Kee5eiX9lFVCLsQ1STIVzAGs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dZrT9tlHLkA6Z2fmx2EGIMkYJG+2GcdgeYAhBLf+3ghitO5FbdzFychci3qHoiPwS 5gTLjVg3FYJ7gCLHZ+u7fhr4TRFlLVEPJcT741lvrjqY5hlaUVZcltjHyEKwyUHzef 3HkAC+bGcaMs0lY9jYnK+i4K5jJTYWmnhDilVV6gnow/mdTTKQghuGkqM/+uyiN0w8 TzEWtCiEqCSz3gNlKAvVp3QOHRdyVVBxQq5UnE2xGg5nB9+A011q9Gv9oYuQvQmulM cSD637H0Na5dWVPkv1qsWFfz+Uo933sppnOREKxqpvKWcu9Fb04TymS+pZqwDdkjy4 /peyhOqR6nm8Q== Received: by mail-vs1-f47.google.com with SMTP id i10so11367198vsr.6; Mon, 04 Apr 2022 22:17:36 -0700 (PDT) X-Gm-Message-State: AOAM5312qCsmHqt5J4Yvj7OTifGsE4WuefyynPfRmAAsMaObvF7LSf5M jsPZKgHnzMKjy25pZmjDK/gxhR/hKLNHtvK6H4s= X-Received: by 2002:a05:6102:dd1:b0:325:80a9:b5d7 with SMTP id e17-20020a0561020dd100b0032580a9b5d7mr514202vst.51.1649135855592; Mon, 04 Apr 2022 22:17:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Guo Ren Date: Tue, 5 Apr 2022 13:17:24 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [next] riscv: Linux next-20220404 riscv defconfig builds failed. To: Nathan Chancellor , Palmer Dabbelt Cc: Naresh Kamboju , Linux-Next Mailing List , open list , linux-riscv , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Stephen Rothwell , Guo Ren , Heiko Stuebner , Arnd Bergmann , Paul Walmsley , Albert Ou Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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. > > Cheers, > Nathan -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/