https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: www-servers/mongrel2-1.11.0-r1 fails to compile with -fno-common. Discovered on: amd64 (internal ref: tinderbox) NOTE: 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 687537 [details] build.log build log and emerge --info
Possible context of error(s): /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(server.o):(.bss+0x8): multiple definition of `m2program'; src/mongrel2.o:(.bss+0x10): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; src/mongrel2.o:(.bss+0x10): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here collect2: error: ld returned 1 exit status
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=648b4c87e4e8f669fa28ee0125ee8e11fe7b9b02 commit 648b4c87e4e8f669fa28ee0125ee8e11fe7b9b02 Author: Jakov Smolic <jakov.smolic@sartura.hr> AuthorDate: 2021-02-20 19:31:23 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-02-20 19:31:23 +0000 www-servers/mongrel2: Port to EAPI 7 Closes: https://github.com/gentoo/gentoo/pull/19559 Closes: https://bugs.gentoo.org/771582 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org> .../files/mongrel2-1.11.0-fno-common.patch | 31 ++++++++++++++++++++++ .../mongrel2-1.11.0-polarssl-platform-590512.patch | 8 +++--- www-servers/mongrel2/mongrel2-1.11.0-r1.ebuild | 29 +++++++++++++------- 3 files changed, 55 insertions(+), 13 deletions(-)