From patchwork Thu Jun 30 04:22:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 55588 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 349EE386CE4B for ; Thu, 30 Jun 2022 04:23:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 349EE386CE4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1656562996; bh=PtbVFNJ/5YxGqY+J/1ntoW30rpV0/K9nbWzy6CnK8r8=; h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=wUEdpv1rQfEECgbxS26rZxDaI3FwXqLSz3fjCnwKAyJmbbNO14XvRWrBkf6IC+vel TkeE5MNfPkUlPisWTfPLsCBlT5MY/i7gnhtz7CYtuqWEBQgLi8kVgs/n2OJ9OXjguf S3G0KaBbNWPqFQf4u3q4Q2cGjuYYXtjfJmtbkgD0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id E1DFD3856080 for ; Thu, 30 Jun 2022 04:22:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E1DFD3856080 Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id A5F8966A17; Thu, 30 Jun 2022 00:22:44 -0400 (EDT) Message-ID: Subject: [PATCH] libsanitizer: don't enable for MIPS Linux without GNU libc [PR 106136] To: gcc-patches@gcc.gnu.org Date: Thu, 30 Jun 2022 12:22:42 +0800 User-Agent: Evolution 3.44.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP, GIT_PATCH_0, LIKELY_SPAM_FROM, SPF_HELO_PASS, SPF_PASS, TXREP, T_PDS_OTHER_BAD_TLD, 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 server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Xi Ruoyao via Gcc-patches From: Xi Ruoyao Reply-To: Xi Ruoyao Cc: Dimitrije Milosevic , Richard Sandiford , Yunqiang Su Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" In libsanitizer code, the size of some GNU libc data structure (notably, struct stat) is hard coded. These sizes may trigger a static assert buidling against another libc. Just make non-GNU libc targets UNSUPPORTED now. If someone really cares about those alternative libc implementations, please submit patch to LLVM project adding the support. libsanitizer/ChangeLog PR sanitizer/106136 * configure.tgt: Change mips*-*-linux* to mips*-*-linux-gnu* because it fails to build with non-GNU libc. --- libsanitizer/configure.tgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index fb89df4935c..54b74b60e2f 100644 --- a/libsanitizer/configure.tgt +++ b/libsanitizer/configure.tgt @@ -54,7 +54,7 @@ case "${target}" in ;; arm*-*-linux*) ;; - mips*-*-linux*) + mips*-*-linux-gnu*) ;; aarch64*-*-linux*) if test x$ac_cv_sizeof_void_p = x8; then