arm64: tinyconfig: compiler_types.h:326:38: error: call to '__compiletime_assert_382' declared with attribute error: BUILD_BUG_ON failed: !is_power_of_2(sizeof(struct page))
Naresh Kamboju
naresh.kamboju at linaro.org
Wed Nov 11 06:41:12 EST 2020
FYI,
Linux next tag 20201111 arm64 tinyconfig build failed due to below error(s).
tinyconfig arm64 build test failed with gcc-8, gcc-9 and gcc-10.
config file attached to this email.
Reported-by: Naresh Kamboju <naresh.kamboju at linaro.org>
make -j16 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
arch/arm64/mm/init.c: In function 'mem_init':
include/linux/compiler_types.h:326:38: error: call to
'__compiletime_assert_382' declared with attribute error: BUILD_BUG_ON
failed: !is_power_of_2(sizeof(struct page))
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:307:4: note: in definition of macro
'__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro
'_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
arch/arm64/mm/init.c:443:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(!is_power_of_2(sizeof(struct page)));
^~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:284: arch/arm64/mm/init.o] Error 1
make[3]: Target '__build' not remade because of errors.
Build details:
kconfig: tinyconfig
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
target_arch: arm64
toolchain: gcc-9
git_short_log: 3e14f70c05cd (\Add linux-next specific files for 20201111\)
git_describe: next-20201111
build link: https://builds.tuxbuild.com/1k8NvVvTvJrxp6CsgUXoZJZXzFy/
--
Linaro LKFT
https://lkft.linaro.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm64-tinyconfig
Type: application/octet-stream
Size: 31644 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201111/6a11beb1/attachment-0001.obj>
More information about the linux-arm-kernel
mailing list