Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707436 - net-misc/cgminer-4.10.0 : fails to build with -fno-common or gcc-10
Summary: net-misc/cgminer-4.10.0 : 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: Anthony Basile
URL:
Whiteboard: ~arch only
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-30 19:13 UTC by Toralf Förster
Modified: 2021-02-14 10:36 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.52 KB, text/plain)
2020-01-30 19:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,154.35 KB, text/plain)
2020-01-30 19:13 UTC, Toralf Förster
Details
environment (environment,69.21 KB, text/plain)
2020-01-30 19:13 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.17 KB, application/x-bzip)
2020-01-30 19:13 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.03 KB, application/x-bzip)
2020-01-30 19:13 UTC, Toralf Förster
Details
net-misc:cgminer-4.10.0:20200130-052102.log (net-misc:cgminer-4.10.0:20200130-052102.log,61.42 KB, text/plain)
2020-01-30 19:13 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.86 KB, application/x-bzip)
2020-01-30 19:13 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:13:06 UTC
driver-bitmain.c:214:9: note: length computed here
  214 |   max = strlen(ptr);
      |         ^~~~~~~~~~~
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -lpthread -Wl,-O1 -Wl,--as-needed -o cgminer cgminer-cgminer.o cgminer-util.o cgminer-sha2.o cgminer-api.o cgminer-logging.o cgminer-klist.o cgminer-noncedup.o  cgminer-usbutils.o                        cgminer-driver-bitmain.o     -ldl -lcurl  -ljansson -lpthread -lncurses -ltinfo -lusb-1.0   -lrt -lm lib/libgnu.a ccan/libccan.a  -lncurses -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cgminer-util.o:(.bss+0x20): multiple definition of `sp30_drv'; cgminer-cgminer.o:(.bss+0x800): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cgminer-util.o:(.bss+0x120): multiple definition of `sp10_drv'; cgminer-cgminer.o:(.bss+0x900): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200126-201521

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

  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.6
  [3]   python3.7 (fallback)
  [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 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 30 Jan 2020 03:26:22 +0000

emerge -qpvO net-misc/cgminer
[ebuild  N    ] net-misc/cgminer-4.10.0  USE="ants1 ncurses udev -ants2 -ants3 -avalon -avalon-miner -avalon2 -avalon4 -avalon7 -bab -bflsc -bitforce -bitfury -bitmine_A1 -blockerupter -cointerra -doc -drillbit -examples -hardened -hashfast -hashratio -icarus -klondike -knc -minion -modminer -sp10 -sp30"
Comment 1 Toralf Förster gentoo-dev 2020-01-30 19:13:08 UTC
Created attachment 608902 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-30 19:13:11 UTC
Created attachment 608904 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-30 19:13:14 UTC
Created attachment 608906 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-30 19:13:16 UTC
Created attachment 608908 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-30 19:13:19 UTC
Created attachment 608910 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-30 19:13:22 UTC
Created attachment 608912 [details]
net-misc:cgminer-4.10.0:20200130-052102.log
Comment 7 Toralf Förster gentoo-dev 2020-01-30 19:13:25 UTC
Created attachment 608914 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-02-14 10:36:48 UTC
The bug has been closed via the following commit(s):

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

commit 01d46a46cbebb9039d6958046262572caac90cb3
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-02-14 10:32:51 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-02-14 10:32:51 +0000

    net-misc/cgminer: Apply gcc-10 workaround
    
    * Upstream inactive since 2018
    
    Closes: https://bugs.gentoo.org/707436
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 net-misc/cgminer/cgminer-4.10.0.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)