sh4-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible

From: kernel test robot
Date: Tue Sep 26 2023 - 23:44:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0e945134b680040b8613e962f586d91b6d40292d
commit: 2a61f4747eeaa85ce26ca9fbd81421b15facd018 stack-protector: test compiler capability in Kconfig and drop AUTO mode
date: 5 years ago
config: sh-randconfig-r082-20230815 (https://download.01.org/0day-ci/archive/20230927/202309271150.F7XFcO2K-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230927/202309271150.F7XFcO2K-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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309271150.F7XFcO2K-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> sh4-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible
make[2]: *** [./Kbuild:21: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1086: 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://github.com/intel/lkp-tests/wiki