Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708254 - x11-plugins/wmapm-3.1-r2 : fails to build with -fno-common or gcc-10
Summary: x11-plugins/wmapm-3.1-r2 : 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: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-04 18:44 UTC by Toralf Förster
Modified: 2020-06-13 09:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.78 KB, text/plain)
2020-02-04 18:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,52.12 KB, text/plain)
2020-02-04 18:44 UTC, Toralf Förster
Details
environment (environment,49.60 KB, text/plain)
2020-02-04 18:44 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.25 KB, application/x-bzip)
2020-02-04 18:44 UTC, Toralf Förster
Details
x11-plugins:wmapm-3.1-r2:20200204-183348.log (x11-plugins:wmapm-3.1-r2:20200204-183348.log,4.80 KB, text/plain)
2020-02-04 18:44 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-02-04 18:44:40 UTC
  820 |       fgets(buffer, sizeof(buffer) - 1, str);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DLinux -c ../wmgeneral/wmgeneral.c -o ../wmgeneral/wmgeneral.o -I/usr/X11R6/include
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o wmapm wmapm.o ../wmgeneral/wmgeneral.o -I/usr/X11R6/include -L/usr/X11R6/lib -lXpm -lX11 -lXext
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../wmgeneral/wmgeneral.o:(.bss+0x288): multiple definition of `display'; wmapm.o:(.bss+0x10): 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-abi32+64-20200203-051815

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

  Please see the tracker bug for details.

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


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 <==
Tue, 04 Feb 2020 17:47:01 +0000

emerge -qpvO x11-plugins/wmapm
[ebuild  N    ] x11-plugins/wmapm-3.1-r2
Comment 1 Toralf Förster gentoo-dev 2020-02-04 18:44:43 UTC
Created attachment 611718 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-04 18:44:46 UTC
Created attachment 611720 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-04 18:44:49 UTC
Created attachment 611722 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-04 18:44:51 UTC
Created attachment 611724 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-04 18:44:54 UTC
Created attachment 611726 [details]
x11-plugins:wmapm-3.1-r2:20200204-183348.log
Comment 6 Larry the Git Cow gentoo-dev 2020-06-13 09:04:37 UTC
The bug has been closed via the following commit(s):

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

commit f30fdf662713ff215ddacbcf617471cf4a55f503
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2020-06-13 08:48:43 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2020-06-13 09:04:23 +0000

    x11-plugins/wmapm: fix build with -fno-common
    
    Closes: https://bugs.gentoo.org/708254
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 x11-plugins/wmapm/files/wmapm-3.1-fno-common.patch | 23 ++++++++++++++++++++++
 x11-plugins/wmapm/wmapm-3.1-r2.ebuild              |  5 ++++-
 2 files changed, 27 insertions(+), 1 deletion(-)