diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-sanitizers.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-sanitizers.inc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc index 524ebd4ba4..6c81d30243 100644 --- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc +++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc | |||
@@ -11,6 +11,10 @@ EXTRA_OECONF_PATHS = "\ | |||
11 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 11 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
12 | " | 12 | " |
13 | 13 | ||
14 | # Workaround for this issue: https://github.com/llvm/llvm-project/issues/65144 on aarch64 | ||
15 | # compiler-rt/sanitizers/aarch64: CHECK failed: sanitizer_allocator_primary64.h:133 | ||
16 | CXXFLAGS:append:aarch64 = " -DSANITIZER_CAN_USE_ALLOCATOR64=0" | ||
17 | |||
14 | do_configure () { | 18 | do_configure () { |
15 | rm -rf ${B}/${TARGET_SYS}/libsanitizer/ | 19 | rm -rf ${B}/${TARGET_SYS}/libsanitizer/ |
16 | mkdir -p ${B}/${TARGET_SYS}/libsanitizer/ | 20 | mkdir -p ${B}/${TARGET_SYS}/libsanitizer/ |
@@ -48,7 +52,7 @@ do_install () { | |||
48 | 52 | ||
49 | INHIBIT_DEFAULT_DEPS = "1" | 53 | INHIBIT_DEFAULT_DEPS = "1" |
50 | ALLOW_EMPTY:${PN} = "1" | 54 | ALLOW_EMPTY:${PN} = "1" |
51 | DEPENDS = "virtual/crypt gcc-runtime virtual/${TARGET_PREFIX}gcc" | 55 | DEPENDS = "virtual/crypt gcc-runtime virtual/cross-cc" |
52 | 56 | ||
53 | # used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] | 57 | # used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] |
54 | DEBUG_OPTIMIZATION:append = " -Wno-error" | 58 | DEBUG_OPTIMIZATION:append = " -Wno-error" |
@@ -73,13 +77,14 @@ RRECOMMENDS:${PN}:append:x86 = " liblsan" | |||
73 | RRECOMMENDS:${PN}:append:x86-64 = " liblsan libtsan" | 77 | RRECOMMENDS:${PN}:append:x86-64 = " liblsan libtsan" |
74 | RRECOMMENDS:${PN}:append:powerpc64 = " liblsan libtsan" | 78 | RRECOMMENDS:${PN}:append:powerpc64 = " liblsan libtsan" |
75 | RRECOMMENDS:${PN}:append:aarch64 = " liblsan libtsan" | 79 | RRECOMMENDS:${PN}:append:aarch64 = " liblsan libtsan" |
80 | RRECOMMENDS:${PN}:append:riscv64 = " liblsan libtsan" | ||
76 | 81 | ||
77 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata" | 82 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}compilerlibs:do_packagedata" |
78 | do_package_write_deb[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata" | 83 | do_package_write_deb[depends] += "virtual/${MLPREFIX}compilerlibs:do_packagedata" |
79 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata" | 84 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}compilerlibs:do_packagedata" |
80 | 85 | ||
81 | # Only x86, powerpc, sparc, s390, arm, aarch64 and loongarch64 are supported | 86 | # Only x86, powerpc, sparc, s390, arm, aarch64 and loongarch64 are supported |
82 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|sparc|s390|arm|aarch64|loongarch64).*-linux' | 87 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|sparc|s390|arm|aarch64|loongarch64|riscv64).*-linux' |
83 | # musl is currently broken entirely | 88 | # musl is currently broken entirely |
84 | COMPATIBLE_HOST:libc-musl = 'null' | 89 | COMPATIBLE_HOST:libc-musl = 'null' |
85 | 90 | ||