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

Bug 707722

Summary: app-admin/hardinfo-0.5.2_pre20130823 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH, PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/lpereira/hardinfo/commit/f299962b0fa6c35e4074168abdb452cf49f6826c
See Also: https://github.com/gentoo/gentoo/pull/18351
https://bugs.gentoo.org/show_bug.cgi?id=763957
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 752054    
Bug Blocks: 705764    
Attachments: emerge-info.txt
app-admin:hardinfo-0.5.2_pre20130823:20200201-045722.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-01 09:21:25 UTC
/usr/bin/x86_64-pc-linux-gnu-gcc -Dbenchmark_EXPORTS -I/var/tmp/portage/app-admin/hardinfo-0.5.2_pre20130823/work/hardinfo-0.5.2_pre20130823 -I/var/tmp/portage/app-admin/hardinfo-0.5.2_pre20130823/work/hardinfo-0.5.2_pre20130823/includes -I/var/tmp/portage/app-admin/hardinfo-0.5.2_pre20130823/work/hardinfo-0.5.2_pre20130823/includes/x86_64 -I/var/tmp/portage/app-admin/hardinfo-0.5.2_pre20130823/work/hardinfo-0.5.2_pre20130823_build -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2   -DNDEBUG -O2 -pipe -march=native -fno-common -fPIC   -std=gnu89 -O0 -o CMakeFiles/benchmark.dir/modules/benchmark/sha1.c.o -c /var/tmp/portage/app-admin/hardinfo-0.5.2_pre20130823/work/hardinfo-0.5.2_pre20130823/modules/benchmark/sha1.c
[ 26%] Linking C shared module benchmark.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/benchmark.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -fPIC -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -shared  -o benchmark.so CMakeFiles/benchmark.dir/modules/benchmark.c.o CMakeFiles/benchmark.dir/modules/benchmark/blowfish.c.o CMakeFiles/benchmark.dir/modules/benchmark/cryptohash.c.o CMakeFiles/benchmark.dir/modules/benchmark/drawing.c.o CMakeFiles/benchmark.dir/modules/benchmark/fbench.c.o CMakeFiles/benchmark.dir/modules/benchmark/fftbench.c.o CMakeFiles/benchmark.dir/modules/benchmark/fft.c.o CMakeFiles/benchmark.dir/modules/benchmark/fib.c.o CMakeFiles/benchmark.dir/modules/benchmark/guibench.c.o CMakeFiles/benchmark.dir/modules/benchmark/md5.c.o CMakeFiles/benchmark.dir/modules/benchmark/nqueens.c.o CMakeFiles/benchmark.dir/modules/benchmark/raytrace.c.o CMakeFiles/benchmark.dir/modules/benchmark/sha1.c.o 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/benchmark.dir/modules/benchmark/blowfish.c.o:(.bss+0x0): multiple definition of `BenchmarkEntries'; CMakeFiles/benchmark.dir/modules/benchmark.c.o:(.bss+0x38): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/benchmark.dir/modules/benchmark/cryptohash.c.o:(.bss+0x0): multiple definition of `BenchmarkEntries'; CMakeFiles/benchmark.dir/modules/benchmark.c.o:(.bss+0x38): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20200129-211601

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

  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) *

java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.15.0 [icedtea-8]
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 03:27:53 +0000

emerge -qpvO app-admin/hardinfo
[ebuild  N    ] app-admin/hardinfo-0.5.2_pre20130823
Comment 1 Toralf Förster gentoo-dev 2020-02-01 09:21:28 UTC
Created attachment 610248 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 09:21:31 UTC
Created attachment 610250 [details]
app-admin:hardinfo-0.5.2_pre20130823:20200201-045722.log
Comment 3 Toralf Förster gentoo-dev 2020-02-01 09:21:34 UTC
Created attachment 610252 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-01 09:21:36 UTC
Created attachment 610254 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-01 09:21:39 UTC
Created attachment 610256 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-01 09:21:42 UTC
Created attachment 610258 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-01 09:21:45 UTC
Created attachment 610260 [details]
temp.tbz2
Comment 8 crabbed halo ablution 2020-10-31 20:58:04 UTC
I have left an ebuild updated to the latest commmit in bug 752054 (upstream doesn't do releases)
Comment 9 Larry the Git Cow gentoo-dev 2020-11-23 13:29:13 UTC
The bug has been closed via the following commit(s):

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

commit ac7356e9da3996737f2187edc82cc0e0cb9b7f49
Author:     Peter Alfredsen <crabbedhaloablution@icloud.com>
AuthorDate: 2020-11-21 20:03:17 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-11-23 13:11:26 +0000

    app-admin/hardinfo: add 0.6_alpha_pre20201116
    
    Fix building with gcc-10. Thanks to Peter Alfredsen for submitting the
    ebuild.
    
    Closes: https://bugs.gentoo.org/752054
    Closes: https://bugs.gentoo.org/707722
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Peter Alfredsen <crabbedhaloablution@icloud.com>
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Closes: https://github.com/gentoo/gentoo/pull/18351
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-admin/hardinfo/Manifest                        |  1 +
 .../hardinfo/hardinfo-0.6_alpha_pre20201116.ebuild | 36 ++++++++++++++++++++++
 app-admin/hardinfo/metadata.xml                    |  2 +-
 3 files changed, 38 insertions(+), 1 deletion(-)