2017-09-24 06:42:32

by Fengguang Wu

[permalink] [raw]
Subject: (*ABS*+0xbb29b267): multiple definition of `__crc___gcov_merge_add'

Hi Thomas,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cd4175b11685b11c40e31a03e05084cc212b0649
commit: d3488649dcd23b7a6e63895274ec69f80e92d4ed um: Fix CONFIG_GCOV for modules.
date: 10 days ago
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout d3488649dcd23b7a6e63895274ec69f80e92d4ed
# save the attached .config to linux build tree
make ARCH=um

All errors (new ones prefixed by >>):

kernel/gcov/base.o: In function `__crc___gcov_merge_add':
>> (*ABS*+0xbb29b267): multiple definition of `__crc___gcov_merge_add'
kernel/gcov/base.o: In function `__crc___gcov_init':
>> (*ABS*+0xdceb3072): multiple definition of `__crc___gcov_init'

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


Attachments:
(No filename) (984.00 B)
.config.gz (19.05 kB)
Download all attachments

2017-09-24 07:50:23

by Richard Weinberger

[permalink] [raw]
Subject: Re: (*ABS*+0xbb29b267): multiple definition of `__crc___gcov_merge_add'

Am Sonntag, 24. September 2017, 08:42:06 CEST schrieb kbuild test robot:
> Hi Thomas,
>
> FYI, the error/warning still remains.

Thomas' fix will be part of the next pull request.

Thanks,
//richard

2017-09-26 19:37:39

by Thomas Meyer

[permalink] [raw]
Subject: [PATCH] gcov: GCOV_KERNEL and GCOV are mutually exclusive

Fix it by forcing the user to choose one of the two GCOV options.

Signed-off-by: Thomas Meyer <[email protected]>
---
kernel/gcov/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig
index 1276aabaab55..6c0dd2a6d4fd 100644
--- a/kernel/gcov/Kconfig
+++ b/kernel/gcov/Kconfig
@@ -3,6 +3,7 @@ menu "GCOV-based kernel profiling"
config GCOV_KERNEL
bool "Enable gcov-based kernel profiling"
depends on DEBUG_FS
+ depends on !GCOV
select CONSTRUCTORS if !UML
default n
---help---
--
2.11.0