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

Bug 706754

Summary: x11-plugins/wmpower-0.4.3-r1 : 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
logs.tbz2
temp.tbz2
x11-plugins:wmpower-0.4.3-r1:20200127-183623.log

Description Toralf Förster gentoo-dev 2020-01-27 20:22:42 UTC
  175 |    system(Command);
      |    ^~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"wmpower\" -DPACKAGE_TARNAME=\"wmpower\" -DPACKAGE_VERSION=\"0.4.3\" -DPACKAGE_STRING=\"wmpower\ 0.4.3\" -DPACKAGE_BUGREPORT=\"michele.noberasco@tiscali.it\" -DPACKAGE=\"wmpower\" -DVERSION=\"0.4.3\" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STDARG_H=1 -DHAVE_STRING_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CTYPE_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_ENVZ_H=1 -DHAVE_X11_X_H=1 -DHAVE_X11_XLIB_H=1 -DHAVE_X11_XPM_H=1 -DHAVE_X11_EXTENSIONS_SHAPE_H=1 -DHAVE_DIRENT_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_LIBPTHREAD=1 -I. -I. -Idockapp -Ipixmaps -Ipower_management    -O2 -pipe -march=native -fno-common -c `test -f 'open_syslog_on_stderr.c' || echo './'`open_syslog_on_stderr.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o wmpower -L/usr/X11R6/lib wmpower.o open_syslog_on_stderr.o dockapp/libdockapp.a power_management/libpower.a -lpthread -lXpm -lX11 -lXext -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: dockapp/libdockapp.a(dockapp.o):(.bss+0x288): multiple definition of `display'; wmpower.o:(.bss+0x228): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: power_management/libpower.a(power_management.o):(.bss+0x228): multiple definition of `cpufreq_offline_governor'; wmpower.o:(.bss+0x230): first defined here

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

  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 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 17:10:40 +0000

emerge -qpvO x11-plugins/wmpower
[ebuild  N    ] x11-plugins/wmpower-0.4.3-r1
Comment 1 Toralf Förster gentoo-dev 2020-01-27 20:22:45 UTC
Created attachment 605742 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 20:22:48 UTC
Created attachment 605744 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 20:22:51 UTC
Created attachment 605746 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 20:22:54 UTC
Created attachment 605748 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 20:22:57 UTC
Created attachment 605750 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-27 20:23:00 UTC
Created attachment 605752 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-27 20:23:02 UTC
Created attachment 605754 [details]
x11-plugins:wmpower-0.4.3-r1:20200127-183623.log
Comment 8 Larry the Git Cow gentoo-dev 2020-01-29 18:27:43 UTC
The bug has been closed via the following commit(s):

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

commit f5291a8c09ea41b32a46c42349dcb9bfedf3ab77
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2020-01-29 18:22:48 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2020-01-29 18:27:00 +0000

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

 .../wmpower/files/wmpower-0.4.3-gcc-10.patch       | 148 +++++++++++++++++++++
 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild        |   4 +-
 2 files changed, 151 insertions(+), 1 deletion(-)