Simple reproducer on older gcc is to add -fno-common: # MAKEOPTS=-j1 LANG=C FEATURES='-strict -stricter -fail-clean -test' CFLAGS="$(portageq envvar CFLAGS) -fno-common" USE=-test emerge -v1 cpio x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -fno-common -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--defsym=__gentoo_check_ldflags__=1 -o cpio copyin.o copyout.o copypass.o defer.o dstring.o global.o fatal.o main.o tar.o util.o filemode.o idcache.o makepath.o userspec.o ../lib/libpax.a ../gnu/libgnu.a /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../gnu/libgnu.a(progname.o):(.bss+0x0): multiple definition of `program_name'; global.o:(.bss+0x20): first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1252: cpio] Error 1 More details are at https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common Reproducible: Always
Created attachment 604124 [details] build.log
Created attachment 604130 [details, diff] 0001-iozone-fix-build-failure-against-gcc-10.patch
(In reply to Sergei Trofimovich from comment #2) > Created attachment 604130 [details, diff] [details, diff] > 0001-iozone-fix-build-failure-against-gcc-10.patch Also sent patch to capps@iozone.org
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b057c4d36b3fb73987c4ebb1dcc804252e55c1f5 commit b057c4d36b3fb73987c4ebb1dcc804252e55c1f5 Author: David Seifert <soap@gentoo.org> AuthorDate: 2020-01-24 12:57:38 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-01-24 12:57:38 +0000 app-benchmarks/iozone: Version bump to 3.488 Bug: https://bugs.gentoo.org/706232 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org> app-benchmarks/iozone/Manifest | 1 + .../files/iozone-3.488-gcc10-fno-common.patch | 13 +++++ app-benchmarks/iozone/iozone-3.488.ebuild | 65 ++++++++++++++++++++++ 3 files changed, 79 insertions(+)