libsanitizer: don't enable for MIPS Linux without GNU libc [PR 106136]

Message ID d15c9f5d076972d994a5c508181e9a2c0bd171f9.camel@xry111.site
State New
Headers
Series libsanitizer: don't enable for MIPS Linux without GNU libc [PR 106136] |

Commit Message

Xi Ruoyao June 30, 2022, 4:22 a.m. UTC
  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(-)
  

Comments

Xi Ruoyao July 25, 2022, 7:06 a.m. UTC | #1
Gentle ping :).

On Thu, 2022-06-30 at 12:22 +0800, Xi Ruoyao wrote:
> 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
  

Patch

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