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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
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: ---


Attachments
build.log (build.log,9.57 KB, text/x-log)
2020-01-24 10:28 UTC, David Seifert
Details
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 (RETIRED)
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 https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

Reproducible: Always
Comment 1 David Seifert gentoo-dev 2020-01-24 10:28:05 UTC
Created attachment 604124 [details]
build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-24 11:40:46 UTC
Created attachment 604130 [details, diff]
0001-iozone-fix-build-failure-against-gcc-10.patch
Comment 3 Sergei Trofimovich (RETIRED) 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 capps@iozone.org
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):

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