Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 707744

Summary: dev-util/comparator-2.12 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/16244
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
dev-util:comparator-2.12:20200201-095156.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-01 09:53:33 UTC
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common linebyline.c
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common shredtree.c 
x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common report.c 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common main.o hash.o linebyline.o shredtree.o report.o -Wl,-O1 -Wl,--as-needed -o comparator
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: linebyline.o:(.data.rel.local+0x0): multiple definition of `linebyline'; main.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: shredtree.o:(.bss+0x20): multiple definition of `linebyline'; main.o:(.bss+0x20): first defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl_test-20200126-104546

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK JRE 8.242_p08 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 08:48:00 +0000

emerge -qpvO dev-util/comparator
[ebuild  N    ] dev-util/comparator-2.12  PYTHON_TARGETS="python2_7 python3_6 -python3_7"
Comment 1 Toralf Förster gentoo-dev 2020-02-01 09:53:36 UTC
Created attachment 610380 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 09:53:39 UTC
Created attachment 610382 [details]
dev-util:comparator-2.12:20200201-095156.log
Comment 3 Toralf Förster gentoo-dev 2020-02-01 09:53:42 UTC
Created attachment 610384 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-01 09:53:45 UTC
Created attachment 610386 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-01 09:53:48 UTC
Created attachment 610388 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-01 09:53:50 UTC
Created attachment 610390 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-01 09:53:53 UTC
Created attachment 610392 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-06-15 02:32:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c559df0d530bec764328e5d0b69130cb07c92dd

commit 5c559df0d530bec764328e5d0b69130cb07c92dd
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-06-14 22:22:50 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2020-06-15 02:32:27 +0000

    dev-util/comparator: fix compilation with GCC10
    
    Changed license to BSD-2, added gitlab upstream URL, minor fixes to
    ebuild.
    Closes: https://bugs.gentoo.org/707744
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16244
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 dev-util/comparator/comparator-2.12.ebuild         | 21 ++++++++---------
 .../comparator/files/comparator-2.12-gcc10.patch   | 26 ++++++++++++++++++++++
 dev-util/comparator/metadata.xml                   |  3 +++
 3 files changed, 40 insertions(+), 10 deletions(-)