Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1425097pxb; Thu, 4 Mar 2021 10:56:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7TAenM165N38WJRqfzU8J+czxq2PRPd0cACI3G6l8sEGgsDUor2dVFYpxuGN5tz0FWrMH X-Received: by 2002:aa7:db15:: with SMTP id t21mr5996074eds.145.1614884162129; Thu, 04 Mar 2021 10:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614884162; cv=none; d=google.com; s=arc-20160816; b=LxyRCLzUqonOwOuDK7moHUyF9OYV6L7oX2wNADkHU5QI+l4XZhcmeJP7qnEFhvPavC 8/pxIgnB0JkTaqklUu2RxMPYXQbgynZmb5eL+L8gmW/1xw1Tr3U/LxpGJJBbFkRQh1/z b6q6amDFlij83rA5/SSZiuZ2s8B5pR95/gVjTqQQGIJW+J3Yt+ZnUVD7jddgeWK0FxJ5 5K0jJRmZavOH9nOK/IhsIE/bl8qOvg1S13B552ajbektFE0SLXvHIhT+W1riBtFMTys0 4rnQk66OeMwAZx/PIEQB21NguDZsQNdgTJV+jof9erE1ErJfQm5G6HZEs9XNMBSRkCPp l+5Q== 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=UUm+wrU+zPffvuvuqzEDrb7B5867dCk2K+ib6TOEEgo=; b=cUnAOSdF6M6DtgoS9ZhfbZWhxqEM/0M1gOlFf0ArPgditWZHSsLD+kdjXIYqR8Mioo MzIw7W87KLrzrI5m13A+qXoFwJSn+2E9XJYZUjs66lgQ1m1ZBeN7SDzAAvXvsJH8mm9E ZYmA25HehPJwlXIizM9KeS0b/o2g1lOJITvzIrJsRwVnu/Yd0zWyhScRBk9dJuCKSFGP Ok1ltxDC0tO6R0GeawWwaCi01RHHqPcXJaYTDmZ4H3XUKhMNqNJCS5yzl6DrDtpVGzHw qgG+CO7Yln8+aZMsTOt93djckH2BOikXrW03N3nA+zyKjhNeyuCz3GyO+8ZrXKmMaAuF eSjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Tqlqhenu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si20942709ejz.595.2021.03.04.10.55.38; Thu, 04 Mar 2021 10:56:02 -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=@google.com header.s=20161025 header.b=Tqlqhenu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239045AbhCDRjB (ORCPT + 99 others); Thu, 4 Mar 2021 12:39:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239331AbhCDRic (ORCPT ); Thu, 4 Mar 2021 12:38:32 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F852C06175F for ; Thu, 4 Mar 2021 09:37:52 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id m22so44599924lfg.5 for ; Thu, 04 Mar 2021 09:37:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UUm+wrU+zPffvuvuqzEDrb7B5867dCk2K+ib6TOEEgo=; b=Tqlqhenucz2QG4wNMNGaEQoVzwsa6uUxO3Tn3Pm+6mLEMjIivih5jOlMx7ShK8K+7m 33Ytd+lIXipxsDGnCEE4YDXHzk38MnHRXL1GAy4IMxRta8sBCLdr1Ml6QgQuXrODDLtB PJszG5y5Ezwiv6P7nU+lrCT1xeHwAvmzrgZxLgLUmMzpj4CfSswO57NjBXPOLepT5PN0 S8awmk6PptvzgKxpb3+ReItihc+6C0IJo7jQeEC/yeqP9qchkMkAybA9ZxB9fRHExTPe 9IjKyLrWv9BsBIWsdXjCZ+N+YKmZhP5WFhIY6wyZPfyDBt9UDjft/OBM6ieQjau87I32 pTfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UUm+wrU+zPffvuvuqzEDrb7B5867dCk2K+ib6TOEEgo=; b=LbYr1Z8A4IpVtLg1WeAywsqc96TOdtJ3pvq7vNPlN/wCfKAOJ76FR2NzkpK65cYaUT 6+MtSNSvChES9lAIJ1aXpvfk1roMCrZguWOWFNTbTsjj3EXr/U4QqRvq2zg42k+05kpU aMOiPKWTHjgcrk4rePXzjmNrbtVfKxt4nSkbk8kjsNp6rB+IKqolPjnirsu3Zuwunu84 hqBmhatW2nbiAKPwiMcWoBvEI5m095v6rUZWqqP+/ods9z+ZGnAWhkddo00zTLYeDKmH ODrVHrkwInmTxaYuIuqvrxzoVEH8HBDHozHevACHspDJDIqLe0y5QjAZVatIXBSbd5O/ 5NzQ== X-Gm-Message-State: AOAM531nP4oPfia9c+KTkriWQm81b4/JDiRKLyINemSeei4Wft6jY+xT 1HYqYDg5BEGXIzdui6rr/x08ZwsTQ0Hq9bfgpyGWtQ== X-Received: by 2002:a19:da19:: with SMTP id r25mr2737199lfg.368.1614879470392; Thu, 04 Mar 2021 09:37:50 -0800 (PST) MIME-Version: 1.0 References: <1614845040-12995-1-git-send-email-yangtiezhu@loongson.cn> In-Reply-To: <1614845040-12995-1-git-send-email-yangtiezhu@loongson.cn> From: Nick Desaulniers Date: Thu, 4 Mar 2021 09:37:39 -0800 Message-ID: Subject: Re: [PATCH v3] MIPS: Make MIPS32_O32 depends on !CC_IS_CLANG To: Tiezhu Yang Cc: Thomas Bogendoerfer , Nathan Chancellor , linux-mips@vger.kernel.org, LKML , clang-built-linux , Xuefeng Li Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 4, 2021 at 12:04 AM Tiezhu Yang wrote: > > When building 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's my hope we will fix the resourcing issue. I'm working on that; it's a non-technical challenge though. Acked-by: Nick Desaulniers > > It is not a good idea to remove CONFIG_MIPS32_O32=y directly > in defconfig because GCC works, as Nathan said, the config > should not even be selectable when building with Clang, so > 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 > Acked-by: Nathan Chancellor > --- > > v3: Update the commit message suggested by Nathan, thank you! > > 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 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/1614845040-12995-1-git-send-email-yangtiezhu%40loongson.cn. -- Thanks, ~Nick Desaulniers