ld.lld: error: call to __compiletime_assert_196 marked "dontcall-error": BUILD_BUG_ON failed: !__builtin_constant_p(res)

From: kernel test robot

Date: Fri Jul 03 2026 - 05:44:32 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d2c9a99135da931377240942d44f3dea104cedb8
commit: 9f2aee8f7d1842be08da860e45265d30dba0d1f7 kbuild: distributed build support for Clang ThinLTO
date: 5 weeks ago
config: um-randconfig-r132-20260703 (https://download.01.org/0day-ci/archive/20260703/202607031732.MOO2Xnuy-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260703/202607031732.MOO2Xnuy-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 9f2aee8f7d18 ("kbuild: distributed build support for Clang ThinLTO")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607031732.MOO2Xnuy-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: call to __compiletime_assert_196 marked "dontcall-error": BUILD_BUG_ON failed: !__builtin_constant_p(res)

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki