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

Bug 707216

Summary: x11-plugins/wmmon+smp-1.0-r3 : 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:wmmon+smp-1.0-r3:20200129-084009.log

Description Toralf Förster gentoo-dev 2020-01-29 18:04:40 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -c -O2 -Wall ../wmgeneral/wmgeneral.c -o ../wmgeneral/wmgeneral.o
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -c -O2 -Wall ../wmgeneral/misc.c -o ../wmgeneral/misc.o
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -c -O2 -Wall ../wmgeneral/list.c -o ../wmgeneral/list.o
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o wmmon wmmon.o ../wmgeneral/wmgeneral.o ../wmgeneral/misc.o ../wmgeneral/list.o -L/usr/X11R6/lib -lXpm -lXext -lX11
/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'; wmmon.o:(.bss+0x1018): 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_no-multilib-20200124-204141

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

  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)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 29 Jan 2020 07:46:51 +0000

emerge -qpvO x11-plugins/wmmon+smp
[ebuild  N    ] x11-plugins/wmmon+smp-1.0-r3
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:04:43 UTC
Created attachment 607964 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:04:46 UTC
Created attachment 607966 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:04:49 UTC
Created attachment 607968 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:04:52 UTC
Created attachment 607970 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:04:55 UTC
Created attachment 607972 [details]
x11-plugins:wmmon+smp-1.0-r3:20200129-084009.log
Comment 6 Larry the Git Cow gentoo-dev 2020-03-08 11:27:56 UTC
The bug has been closed via the following commit(s):

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

commit 9869d748199f7fad1746a27248990e10436df568
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2020-03-08 11:22:00 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2020-03-08 11:27:31 +0000

    x11-plugins/wmmon+smp: fix build with -fno-common
    
    Closes: https://bugs.gentoo.org/707216
    Package-Manager: Portage-2.3.92, Repoman-2.3.20
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 .../wmmon+smp/files/wmmon+smp-1.0-fno-common.patch | 24 ++++++++++++++++++++++
 x11-plugins/wmmon+smp/wmmon+smp-1.0-r3.ebuild      |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)