Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1599530pxb; Thu, 4 Mar 2021 15:59:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSr26J0KwNQ2khwEADJDfQZWW/CGd38Xb54yE+Ui8xhgd6EyPscC7ed+dbB6ykcm5ZxHtE X-Received: by 2002:a05:6e02:10d1:: with SMTP id s17mr6164535ilj.159.1614902344968; Thu, 04 Mar 2021 15:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614902344; cv=none; d=google.com; s=arc-20160816; b=mznIErT5DZfG/iOoi2WxemE2SR99CrobgXTvgskP1mnpH0CBOyuzlDEDcSk8jyxMK2 nrl4DgUKaLVTdh1Fw6K+20hhhFinT6JFBju+Z8SJva5nzYzko0AtLcu+5wX16g1kCQCo o7Xl088qVRzXmK6MkJPSUlXQ3Ph7Tn1XBFSwNU8LTb7AqeFGX8zGme6tcMFcI1EdIVVP MbDmkrDLIRem5l9Bu0k4NArPh56Wlbt5qjOvh36Fje6tbt4F3zMfE38yu+1eCjjhcvjK c26o+ydSSF+EFRo5Mo5Ct+Vh0zxxJj8aWYerncorUftVire27Vbiz/20F9f6xYGw60gF o0ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=DbKamtsDwhbD0AAXwPnov0ztdUJwpmOA8DlCVb/hsfE=; b=th0M/dlFKiySoeZ2xLBoEBvhzsAxkyvS8thAHpjutRnWWrB3xAXCSO+sr5wWA7GEPb FhUYl2f9P7AlkiGRHXZ+b862TMADWbS6Ok48bx/H/q9YvtZ7PeWLE2aFvusaiaz5wd5w 1v5eS0OnGzByPRUx3kQVkzcBavfUnTsmTKR9KPVuxY6r6KjB4Z+UwOi/+gviwGgB+/Tm V0CsB0lVD97Y2AP6saLyjdCLbGGfir7mxjtKlcqgMiAwtuN5jFfrYJlOp255NeV9bvUn R70zqE4pg2pbmWOYkE2RUuewsHJqxfP/icsHEDEPjIMaEs3ASXJAwmhLB7G98JwR/GkG 4tAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si915522jap.123.2021.03.04.15.58.52; Thu, 04 Mar 2021 15:59:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232913AbhCDBQ6 (ORCPT + 99 others); Wed, 3 Mar 2021 20:16:58 -0500 Received: from mail.loongson.cn ([114.242.206.163]:37894 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232727AbhCDBQl (ORCPT ); Wed, 3 Mar 2021 20:16:41 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxz_HBNEBgqhQUAA--.8724S2; Thu, 04 Mar 2021 09:15:45 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Nathan Chancellor , Nick Desaulniers Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Xuefeng Li Subject: [PATCH] MIPS: Add comment about CONFIG_MIPS32_O32 in loongson3_defconfig when build with Clang Date: Thu, 4 Mar 2021 09:15:44 +0800 Message-Id: <1614820544-10686-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dxz_HBNEBgqhQUAA--.8724S2 X-Coremail-Antispam: 1UD129KBjvJXoWxJr4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k List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When build kernel with Clang [1]: $ 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 this config due to GCC works well, so add comment to point out this bug and suggest the users to remove CONFIG_MIPS32_O32=y in defconfig when build kernel with 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 --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig index 0e79f81..cacf9dd 100644 --- a/arch/mips/configs/loongson3_defconfig +++ b/arch/mips/configs/loongson3_defconfig @@ -35,6 +35,9 @@ CONFIG_NUMA=y CONFIG_SMP=y CONFIG_HZ_256=y CONFIG_KEXEC=y +# Please remove CONFIG_MIPS32_O32=y when build with Clang +# due to "ABI 'o32' is not supported on CPU 'mips64r2'", +# https://bugs.llvm.org/show_bug.cgi?id=38063 CONFIG_MIPS32_O32=y CONFIG_MIPS32_N32=y CONFIG_VIRTUALIZATION=y -- 2.1.0