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

Bug 709506

Summary: x11-plugins/wmtimer-2.92-r2 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
x11-plugins:wmtimer-2.92-r2:20200213-080958.log

Description Toralf Förster gentoo-dev 2020-02-13 18:28:30 UTC
x86_64-pc-linux-gnu-gcc  -c `pkg-config --cflags gtk+-2.0` -O2 -pipe -march=native -fno-common -Wall ../wmgeneral/wmgeneral.c -o ../wmgeneral/wmgeneral.o 
x86_64-pc-linux-gnu-gcc  -c `pkg-config --cflags gtk+-2.0` -O2 -pipe -march=native -fno-common -Wall ../wmgeneral/misc.c -o ../wmgeneral/misc.o 
x86_64-pc-linux-gnu-gcc  -c `pkg-config --cflags gtk+-2.0` -O2 -pipe -march=native -fno-common -Wall ../wmgeneral/list.c -o ../wmgeneral/list.o 
x86_64-pc-linux-gnu-gcc -Wall  -Wl,-O1 -Wl,--as-needed -o wmtimer wmtimer.o ../wmgeneral/wmgeneral.o ../wmgeneral/misc.o ../wmgeneral/list.o -L/usr/lib64 -lXpm -lXext -lX11 -lpthread `pkg-config --libs gtk+-2.0`
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../wmgeneral/wmgeneral.o:(.bss+0x328): multiple definition of `display'; wmtimer.o:(.bss+0x138): first defined here
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-libressl-20200209-121610

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

  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) *
Available Rust versions:
  [1]   rust-1.41.0 *
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 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 13 Feb 2020 07:11:33 +0000

emerge -qpvO x11-plugins/wmtimer
[ebuild  N    ] x11-plugins/wmtimer-2.92-r2
Comment 1 Toralf Förster gentoo-dev 2020-02-13 18:28:32 UTC
Created attachment 613646 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-13 18:28:35 UTC
Created attachment 613648 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-13 18:28:39 UTC
Created attachment 613650 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-13 18:28:42 UTC
Created attachment 613652 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-13 18:28:45 UTC
Created attachment 613654 [details]
x11-plugins:wmtimer-2.92-r2:20200213-080958.log
Comment 6 Larry the Git Cow gentoo-dev 2020-02-24 21:47:42 UTC
The bug has been closed via the following commit(s):

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

commit a41758ecc0c4dba5cfa14af8ed911a374ef67627
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2020-02-24 21:08:57 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2020-02-24 21:47:31 +0000

    x11-plugins/wmtimer: fix build with -fno-common
    
    Closes: https://bugs.gentoo.org/709506
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 .../wmtimer/files/wmtimer-2.92-gcc-10.patch        | 23 ++++++++++++++++++++++
 x11-plugins/wmtimer/wmtimer-2.92-r2.ebuild         |  3 ++-
 2 files changed, 25 insertions(+), 1 deletion(-)