From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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] From: Xi Ruoyao To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Yunqiang Su , Dimitrije Milosevic Date: Thu, 30 Jun 2022 12:22:42 +0800 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-List-Received-Date: Thu, 30 Jun 2022 04:22:48 -0000 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 =3D x8; then --=20 2.37.0