stable-rc: 5.4: drivers/ata/libahci.c: In function 'ahci_led_store': include/linux/compiler.h:419:45: error: call to '__compiletime_assert_123' declared with attribute error: BUILD_BUG_ON failed: sizeof(_s) > sizeof(long)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



LKFT build plans updated with toolchain gcc-13 and here is the report.

While building Linux stable rc 5.4 arm with gcc-13 failed due to
following warnings / errors.

make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/3/build ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf- 'CC=sccache
arm-linux-gnueabihf-gcc' 'HOSTCC=sccache gcc'
In file included from include/linux/kernel.h:11,
                 from drivers/ata/libahci.c:19:
drivers/ata/libahci.c: In function 'ahci_led_store':
include/linux/compiler.h:419:45: error: call to
'__compiletime_assert_123' declared with attribute error: BUILD_BUG_ON
failed: sizeof(_s) > sizeof(long)
  419 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |                                             ^
include/linux/compiler.h:400:25: note: in definition of macro
'__compiletime_assert'
  400 |                         prefix ## suffix();
         \
      |                         ^~~~~~
include/linux/compiler.h:419:9: note: in expansion of macro
'_compiletime_assert'
  419 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |         ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
      |                                     ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
      |         ^~~~~~~~~~~~~~~~
include/linux/nospec.h:60:9: note: in expansion of macro 'BUILD_BUG_ON'
   60 |         BUILD_BUG_ON(sizeof(_s) > sizeof(long));
         \
      |         ^~~~~~~~~~~~
drivers/ata/libahci.c:1142:23: note: in expansion of macro 'array_index_nospec'
 1142 |                 pmp = array_index_nospec(pmp, EM_MAX_SLOTS);
      |                       ^~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:262: drivers/ata/libahci.o] Error

Build links,
 - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.4.y/build/v5.4.252-138-g6540c78c6405/testrun/18922674/suite/build/test/gcc-13-lkftconfig/log
 - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.4.y/build/v5.4.252-138-g6540c78c6405/testrun/18922674/suite/build/test/gcc-13-lkftconfig/details/
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiUQ2Oi0YnrXQyA0eCoDEOpw05/

Steps to reproduce:
  tuxmake --runtime podman --target-arch arm --toolchain gcc-13
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiUQ2Oi0YnrXQyA0eCoDEOpw05/config
  - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiUQ2Oi0YnrXQyA0eCoDEOpw05/tuxmake_reproducer.sh


--
Linaro LKFT
https://lkft.linaro.org



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux