https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-analyzer/flowgrind-0.8.2 fails to compile with -fno-common. Discovered on: amd64 (internal ref: dash_tinderbox) NOTE: (DASH-SYSTEM) in the summary means that the bug was found on a machine that runs /bin/sh as dash but this bug MAY or MAY NOT BE related to dash. To reproduce this issue you may want to set CFLAGS="${CFLAGS} -fno-common" or compile it with gcc-10 that enables -fno-common by default.
Created attachment 847196 [details] build.log build log and emerge --info
Error(s) that match a know pattern: /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-debug.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-destination.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-fg_math.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-fg_rpc_server.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-fg_socket.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-flowgrindd.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-source.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: src/flowgrindd-trafgen.o:(.bss+0x0): multiple definition of `debug_level'; src/flowgrindd-daemon.o:(.bss+0x248): first defined here collect2: error: ld returned 1 exit status
It's linking against debug.o repeatedly.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37f98117374c2cfe356e9045965f69162b7f7cc2 commit 37f98117374c2cfe356e9045965f69162b7f7cc2 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-04-19 06:25:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-19 06:26:23 +0000 net-analyzer/flowgrind: drop broken USE=debug Closes: https://bugs.gentoo.org/889698 Signed-off-by: Sam James <sam@gentoo.org> net-analyzer/flowgrind/flowgrind-0.8.2.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)