[Buildroot] [git commit] package/gcc: disable libsanitizer with gcc 7.5 and glibc 2.31 toolchain
Yann E. MORIN
yann.morin.1998 at free.fr
Mon Jul 27 13:26:30 UTC 2020
libsanitizer in gcc 7.x fails to build with glibc 2.31. Fixing it would
require backporting an upstream commit:
However, the backport is not trivial, as there are a lot of conflicts.
Disable libsanitizer since the gcc 7.5 branch is now closed
(unmaintained) and it's not a trivial merge.
Signed-off-by: Romain Naour <romain.naour at smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
package/gcc/gcc.mk | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index d8260bc87b..b834269adc 100644
@@ -119,6 +119,16 @@ else
HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath
+# Disable libsanitizer due to a build issue with gcc 7.5 and glibc 2.31.
+# It would require to backport the following upstream commit
+# but it conflict with gcc 7.5 libsanitizer code.
+# Disable libsanitizer since the gcc 7.5 branch is now closed
+# (unmaintained) and it's not a trivial merge.
+HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
# libsanitizer requires wordexp, not in default uClibc config. Also
# doesn't build properly with musl.
More information about the buildroot