Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1260035pxb; Thu, 4 Mar 2021 07:15:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkguipL+hPOF+jAgn3CUxqtpX05imS61QlURFpLc9YcNrLTM7GXnAf0U1Rl2Ah4PqyLcTq X-Received: by 2002:aa7:c345:: with SMTP id j5mr4776796edr.338.1614870932495; Thu, 04 Mar 2021 07:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614870932; cv=none; d=google.com; s=arc-20160816; b=mk09N0B+xsftFA6NLzkSJQ8Wn8qWHOFwI6QP02WktEj7uKNF2T3jxh6MfMdFNB7utx +gXl+ROS9YnMqo12EjpaBrgQewBJgnV6wBl681v1qNySDXzyFJ7ycDiB75ZxK6YIfn6+ 9NXCxB0VwwSE1OfYVZ+F4vC9aonc+Qg9SeX8EmDX8Oiud93X8mfV5POK0i1UZ4M8swPA d/GyBflSoDCvHK4ALdI6vJkquihCbLpB7+zw9GBI4nvVpMOA31UJbZrI6ZtzXPoH5CHC tFr2fUBBJ4MGR41f2DsTolL42ArrOCvJ6T3VwHBULCQycwNDqGMGuF8RzTbwR2x3sQ9t A1bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dqDc9k1AtHMdLWOWdIPXB4+C1b4hrOQOM2u9OXtzebI=; b=Tv0JqPQYe4SP9chOuwu2k9Iks4h7iylafbcnnzlIwJGLyGdniSlsth/BIqmmr7miF4 cxKsfacO7o7Ma0c38UU5oRiOs5KiEp8jXe2hg4EFmXzZsxqaaaX6w7D28xh9FxpIEHHV KdWIDVu/UcJytEqSuKMmVFG79IZ5pigQVm934ekl+Ic3z+MD4A6UGijV2PUMt4AYSm8w CyhGkzIxIQvxgbFsfVbKvR5h/49u8s1VtKWT18IxUjTjwnp6BzKqYRO4WslV3Z1L31yP AAU0r63KZ45LQ8duM3sMkiwv6m5qhV+dRrnBLvN+e9oj+OzdwGdP0YMFcOmw90hTEwyv 4JBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZZ89bHk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si18161617ejn.116.2021.03.04.07.15.06; Thu, 04 Mar 2021 07:15:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZZ89bHk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235714AbhCDGq4 (ORCPT + 99 others); Thu, 4 Mar 2021 01:46:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:36406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235720AbhCDGqh (ORCPT ); Thu, 4 Mar 2021 01:46:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 14DB764F07; Thu, 4 Mar 2021 06:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614840357; bh=Xo7k97276NMtjJzpn3yMOv0/arfH5GEYmdV9H5zfdqM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AZZ89bHkTUtKyxN55fkmVqdZWIMPR/teInYbk2epCyQoQ12eUNhFFBmBf/rarESi+ svfsPVPBP2ek/KGNwpTsdmEMwyV40OKYOvA1o2H+kSkg244xN1RinB3CsOu28TWqGD 6sfWoS7g58+M8CvYqiBUDHTkbVTxJsKRUQ7b+KBD6BGuoZb09I0ICiDous//gEVgEC kvPZkyB7qhj3Gy5PWVIEgG7i7syg6AH1tI9BU/ZM2wNEZDwgha5rHxyBJojdavrznG B1F2O2ocECXroMi/sC2OXYRMEN8h1oJz6SeSq3Djk8XolM8zEMbMqrhX45gbgf8n34 ULu6EVmBsrLyA== Date: Wed, 3 Mar 2021 23:45:52 -0700 From: Nathan Chancellor To: Tiezhu Yang Cc: Thomas Bogendoerfer , Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Xuefeng Li Subject: Re: [PATCH v2] MIPS: Make MIPS32_O32 depends on !CC_IS_CLANG Message-ID: <20210304064552.xzjqbhltghmd5vfa@archlinux-ax161> References: <1614838778-3696-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614838778-3696-1-git-send-email-yangtiezhu@loongson.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 04, 2021 at 02:19:38PM +0800, Tiezhu Yang wrote: > When build kernel with Clang [1]: Sorry I did not catch this in the first revision but I think this would sound better as: When building with Clang [1]: I think the kernel part is obvious :) couple more comments about the commit message inline. > > $ make CC=clang loongson3_defconfig > $ make CC=clang > > there exists the following error: > > Checking missing-syscalls for O32 > CALL scripts/checksyscalls.sh > error: ABI 'o32' is not supported on CPU 'mips64r2' > make[1]: *** [Kbuild:48: missing-syscalls] Error 1 > make: *** [arch/mips/Makefile:419: archprepare] Error 2 > > This is a known bug [2] with Clang, as Simon Atanasyan said, > "There is no plan on support O32 for MIPS64 due to lack of > resources". > > It is not a good idea to remove CONFIG_MIPS32_O32=y directly > in defconfig due to GCC works well, as Nathan said, the config in defconfig because GCC works, as... > should not even be selectable when build kernel with Clang, so building with Clang > just make MIPS32_O32 depends on !CC_IS_CLANG. > > [1] https://www.kernel.org/doc/html/latest/kbuild/llvm.html > [2] https://bugs.llvm.org/show_bug.cgi?id=38063 > > Signed-off-by: Tiezhu Yang I don't know if Nick will have any comments but for me: Acked-by: Nathan Chancellor I have added this patch and the LLVM bug to our issue tracker: https://github.com/ClangBuiltLinux/linux/issues/884 > --- > arch/mips/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index 3a38d27..f6ba59f 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -3318,6 +3318,8 @@ config SYSVIPC_COMPAT > config MIPS32_O32 > bool "Kernel support for o32 binaries" > depends on 64BIT > + # https://bugs.llvm.org/show_bug.cgi?id=38063 > + depends on !CC_IS_CLANG > select ARCH_WANT_OLD_COMPAT_IPC > select COMPAT > select MIPS32_COMPAT > -- > 2.1.0 >