[ammarfaizi2-block:google/android/kernel/common/android-4.14-stable 4757/9999] gcc-7: error: unrecognized command line option '-ftrivial-auto-var-init=pattern'

From: kernel test robot
Date: Thu Mar 10 2022 - 12:27:13 EST


Hi glider,

FYI, the error/warning still remains.

tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.14-stable
head: cb5d0103b1f8fc3aa997a696472fd774c67a1b1f
commit: a7eda6eddca559c1c3a897a35692f9d49d46c9dd [4757/9999] BACKPORT: security: allow using Clang's zero initialization for stack variables
config: i386-randconfig-a011 (https://download.01.org/0day-ci/archive/20220311/202203110155.PXGwFPtQ-lkp@xxxxxxxxx/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/a7eda6eddca559c1c3a897a35692f9d49d46c9dd
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.14-stable
git checkout a7eda6eddca559c1c3a897a35692f9d49d46c9dd
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> gcc-7: error: unrecognized command line option '-ftrivial-auto-var-init=pattern'
make[2]: *** [./Kbuild:22: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1214: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:146: sub-make] Error 2
make: Target 'prepare' not remade because of errors.

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx