Re: [PATCH v2] kernel: add kcov code coverage

From: kbuild test robot
Date: Wed Jan 13 2016 - 17:32:20 EST


Hi Dmitry,

[auto build test ERROR on kbuild/for-next]
[also build test ERROR on v4.4]
[cannot apply to tip/x86/core next-20160113]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Dmitry-Vyukov/kernel-add-kcov-code-coverage/20160113-205004
base: https://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild.git for-next
config: x86_64-randconfig-n0-01140517 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

>> Makefile:695: Cannot use CONFIG_KCOV: -fsanitize-coverage=trace-pc is not supported by compiler
gcc-5: error: unrecognized command line option '-fsanitize-coverage=trace-pc'
make[2]: *** [kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2

vim +695 Makefile

689 endif
690 endif
691 KBUILD_CFLAGS += $(stackp-flag)
692
693 ifdef CONFIG_KCOV
694 ifeq ($(call cc-option, $(CFLAGS_KCOV)),)
> 695 $(warning Cannot use CONFIG_KCOV: \
696 -fsanitize-coverage=trace-pc is not supported by compiler)
697 endif
698 endif

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data