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

Bug 708532

Summary: sys-apps/the_silver_searcher-2.2.0 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Sam Jorna (wraeth) <wraeth>
Status: RESOLVED FIXED    
Severity: normal CC: anrock623, jer, mylan
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/ggreer/the_silver_searcher/commit/3f6ecb6c02f147d5d180b9d85373e74c83f675ec
See Also: https://github.com/ggreer/the_silver_searcher/issues/1378
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-apps:the_silver_searcher-2.2.0:20200206-083103.log
temp.tbz2
files/the_silver_searcher-2.2.0-fno-common.patch

Description Toralf Förster gentoo-dev 2020-02-06 22:25:16 UTC
      |                      ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src     -O2 -pipe -march=native -fno-common -pthread  -Wall -Wextra -Wformat=2 -Wno-format-nonliteral -Wshadow -Wpointer-arith -Wcast-qual -Wmissing-prototypes -Wno-missing-braces -std=gnu89 -D_GNU_SOURCE -c -o src/main.o src/main.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src     -O2 -pipe -march=native -fno-common -pthread  -Wall -Wextra -Wformat=2 -Wno-format-nonliteral -Wshadow -Wpointer-arith -Wcast-qual -Wmissing-prototypes -Wno-missing-braces -std=gnu89 -D_GNU_SOURCE -c -o src/zfile.o src/zfile.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -pthread  -Wall -Wextra -Wformat=2 -Wno-format-nonliteral -Wshadow -Wpointer-arith -Wcast-qual -Wmissing-prototypes -Wno-missing-braces -std=gnu89 -D_GNU_SOURCE  -Wl,-O1 -Wl,--as-needed -o ag src/ignore.o src/log.o src/options.o src/print.o src/print_w32.o src/scandir.o src/search.o src/lang.o src/util.o src/decompress.o src/main.o src/zfile.o -lpcre     -lz  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/log.o:(.bss+0x1c0): multiple definition of `print_mtx'; src/ignore.o:(.bss+0x1c0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/log.o:(.bss+0x40): multiple definition of `out_fd'; src/ignore.o:(.bss+0x40): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-abi32+64-20200203-051815

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

  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.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 06 Feb 2020 07:48:50 +0000

emerge -qpvO sys-apps/the_silver_searcher
[ebuild  N    ] sys-apps/the_silver_searcher-2.2.0  USE="zlib -lzma -test"
Comment 1 Toralf Förster gentoo-dev 2020-02-06 22:25:19 UTC
Created attachment 612272 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-06 22:25:22 UTC
Created attachment 612274 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-06 22:25:25 UTC
Created attachment 612276 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-06 22:25:28 UTC
Created attachment 612278 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-06 22:25:31 UTC
Created attachment 612280 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-06 22:25:34 UTC
Created attachment 612282 [details]
sys-apps:the_silver_searcher-2.2.0:20200206-083103.log
Comment 7 Toralf Förster gentoo-dev 2020-02-06 22:25:37 UTC
Created attachment 612284 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-04-15 17:18:22 UTC
Created attachment 633104 [details, diff]
files/the_silver_searcher-2.2.0-fno-common.patch
Comment 9 Philippe Michaud-Boudreault 2020-05-15 04:34:58 UTC
Getting this bug, please add fix.
Comment 10 Larry the Git Cow gentoo-dev 2020-07-12 10:24:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4174b1f2bba16be562beadb8926b26fce40a41d1

commit 4174b1f2bba16be562beadb8926b26fce40a41d1
Author:     Sam Jorna <wraeth@gentoo.org>
AuthorDate: 2020-07-12 10:19:27 +0000
Commit:     Sam Jorna <wraeth@gentoo.org>
CommitDate: 2020-07-12 10:23:55 +0000

    sys-apps/the_silver_searcher: fix fno-common
    
    Closes: https://bugs.gentoo.org/708532
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Sam Jorna <wraeth@gentoo.org>

 .../files/the_silver_searcher-fno-common.patch     | 164 +++++++++++++++++++++
 .../the_silver_searcher-2.0.0.ebuild               |   4 +-
 .../the_silver_searcher-2.1.0.ebuild               |   7 +-
 .../the_silver_searcher-2.2.0.ebuild               |   7 +-
 4 files changed, 177 insertions(+), 5 deletions(-)