Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706232 - =app-benchmarks/iozone-3.487 fails to build with -fno-common or gcc-10
Summary: =app-benchmarks/iozone-3.487 fails to build with -fno-common or gcc-10
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
Reported: 2020-01-24 10:26 UTC by David Seifert
Modified: 2020-02-26 08:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,9.57 KB, text/x-log)
2020-01-24 10:28 UTC, David Seifert
0001-iozone-fix-build-failure-against-gcc-10.patch (0001-iozone-fix-build-failure-against-gcc-10.patch,1.76 KB, patch)
2020-01-24 11:40 UTC, Sergei Trofimovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Seifert gentoo-dev 2020-01-24 10:26:12 UTC
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

Reproducible: Always
Comment 1 David Seifert gentoo-dev 2020-01-24 10:28:05 UTC
Created attachment 604124 [details]
Comment 2 Sergei Trofimovich gentoo-dev 2020-01-24 11:40:46 UTC
Created attachment 604130 [details, diff]
Comment 3 Sergei Trofimovich gentoo-dev 2020-01-24 11:45:08 UTC
(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
Comment 4 Larry the Git Cow gentoo-dev 2020-01-24 12:57:55 UTC
The bug has been referenced in the following commit(s):

commit b057c4d36b3fb73987c4ebb1dcc804252e55c1f5
Author:     David Seifert <>
AuthorDate: 2020-01-24 12:57:38 +0000
Commit:     David Seifert <>
CommitDate: 2020-01-24 12:57:38 +0000

    app-benchmarks/iozone: Version bump to 3.488
    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Signed-off-by: David Seifert <>

 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(+)