On Wed, Sep 10, 2025 at 05:23:47AM +0000, [email protected] wrote: > In tcwg_kernel/llvm-master-aarch64-stable-allyesconfig, after: > | commit llvmorg-22-init-6898-gdf430c33a71f > | Author: Nathan Chancellor <[email protected]> > | Date: Mon Sep 8 11:33:57 2025 -0700 > | > | [Frontend] Define __SANITIZE__ macros for kernel address variants > (#156543) > | > | GCC defines these macros for both userspace and kernel address > | sanitizers: > | > | ... 29 lines of the commit log omitted. > > Produces Failure: > | Results changed to > | # reset_artifacts: > | -10 > | # build_abe binutils: > | -9 > | # build_kernel_llvm: > | -5 > | # build_abe qemu: > | -2 > | # linux_n_obj: > | 316 > | # First few build errors in logs: > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined] > | # 00:08:01 ./include/linux/compiler-clang.h:28:9: error: > '__SANITIZE_ADDRESS__' macro redefined [-Werror,-Wmacro-redefined]
Thanks for the report. The kernel side fix for this has been picked up in a maintainer's tree [1] so it should be in Linus's tree soon then into stable shortly after that. This was already a problem in certain trees with CONFIG_KCSAN and __SANITIZE_THREAD__, I just made it a little worse ;) [1]: https://git.kernel.org/akpm/mm/c/3fac212fe489aa0dbe8d80a42a7809840ca7b0f9 Cheers, Nathan _______________________________________________ linaro-toolchain mailing list -- [email protected] To unsubscribe send an email to [email protected]
