Re: 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))

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

 



On Wed, 11 Nov 2020 at 12:41, Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxx>
>

Thanks Naresh. This will be fixed shortly.

> 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



[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux