Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707462 - sys-power/cpupower-5.4 : fails to build with -fno-common or gcc-10
Summary: sys-power/cpupower-5.4 : 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: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-30 19:22 UTC by Toralf Förster
Modified: 2020-02-01 18:01 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.61 KB, text/plain)
2020-01-30 19:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,211.16 KB, text/plain)
2020-01-30 19:22 UTC, Toralf Förster
Details
environment (environment,60.52 KB, text/plain)
2020-01-30 19:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,20.36 KB, application/x-bzip)
2020-01-30 19:23 UTC, Toralf Förster
Details
sys-power:cpupower-5.4:20200130-104819.log (sys-power:cpupower-5.4:20200130-104819.log,12.96 KB, text/plain)
2020-01-30 19:23 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-01-30 19:22:48 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DVERSION=\"5.4\" -DPACKAGE=\"cpupower\" -DPACKAGE_BUGREPORT=\"linux-pm@vger.kernel.org\" -D_GNU_SOURCE -pipe -DNLS -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow -I./lib -I ./utils -o utils/cpupower-info.o -c utils/cpupower-info.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DVERSION=\"5.4\" -DPACKAGE=\"cpupower\" -DPACKAGE_BUGREPORT=\"linux-pm@vger.kernel.org\" -D_GNU_SOURCE -pipe -DNLS -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow -I./lib -I ./utils -o utils/cpuidle-info.o -c utils/cpuidle-info.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DVERSION=\"5.4\" -DPACKAGE=\"cpupower\" -DPACKAGE_BUGREPORT=\"linux-pm@vger.kernel.org\" -D_GNU_SOURCE -pipe -DNLS -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow -I./lib -I ./utils -o utils/cpuidle-set.o -c utils/cpuidle-set.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DVERSION=\"5.4\" -DPACKAGE=\"cpupower\" -DPACKAGE_BUGREPORT=\"linux-pm@vger.kernel.org\" -D_GNU_SOURCE -pipe -DNLS -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow -Wl,-O1 -Wl,--as-needed ./utils/helpers/amd.o ./utils/helpers/msr.o ./utils/helpers/sysfs.o ./utils/helpers/misc.o ./utils/helpers/cpuid.o ./utils/helpers/pci.o ./utils/helpers/bitmask.o ./utils/idle_monitor/nhm_idle.o ./utils/idle_monitor/snb_idle.o ./utils/idle_monitor/hsw_ext_idle.o ./utils/idle_monitor/amd_fam14h_idle.o ./utils/idle_monitor/cpuidle_sysfs.o ./utils/idle_monitor/mperf_monitor.o ./utils/idle_monitor/cpupower-monitor.o ./utils/cpupower.o ./utils/cpufreq-info.o ./utils/cpufreq-set.o ./utils/cpupower-set.o ./utils/cpupower-info.o ./utils/cpuidle-info.o ./utils/cpuidle-set.o -lcpupower -lrt -lpci -L./ -o cpupower
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./utils/idle_monitor/snb_idle.o:(.bss+0x0): multiple definition of `cpu_count'; ./utils/idle_monitor/nhm_idle.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./utils/idle_monitor/hsw_ext_idle.o:(.bss+0x0): multiple definition of `cpu_count'; ./utils/idle_monitor/nhm_idle.o:(.bss+0x0): first defined here

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

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

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

  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
ghc:
The Glorious Glasgow Haskell Compilation System, version 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 30 Jan 2020 09:51:31 +0000

emerge -qpvO sys-power/cpupower
[ebuild  N    ] sys-power/cpupower-5.4  USE="nls"
Comment 1 Toralf Förster gentoo-dev 2020-01-30 19:22:52 UTC
Created attachment 609082 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-30 19:22:55 UTC
Created attachment 609084 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-30 19:22:58 UTC
Created attachment 609086 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-30 19:23:01 UTC
Created attachment 609088 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-30 19:23:03 UTC
Created attachment 609090 [details]
sys-power:cpupower-5.4:20200130-104819.log
Comment 6 Larry the Git Cow gentoo-dev 2020-02-01 18:01:55 UTC
The bug has been closed via the following commit(s):

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

commit 8a72d2fc6f757b617683dd0a993b542549b8e839
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-02-01 18:00:02 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-02-01 18:00:02 +0000

    sys-power/cpupower: fix build with gcc 10
    
    Closes: https://bugs.gentoo.org/707462
    Package-Manager: Portage-2.3.86_p1, Repoman-2.3.20_p43
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-power/cpupower/cpupower-5.4.ebuild             |  3 +-
 sys-power/cpupower/files/cpupower-5.4-gcc-10.patch | 57 ++++++++++++++++++++++
 2 files changed, 59 insertions(+), 1 deletion(-)