Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727008 - net-misc/bfgminer-5.5.0 : fails to build with -fno-common or gcc-10
Summary: net-misc/bfgminer-5.5.0 : fails to build with -fno-common or gcc-10
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-06-03 20:05 UTC by Toralf Förster
Modified: 2020-06-03 22:31 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.28 KB, text/plain)
2020-06-03 20:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,149.20 KB, text/plain)
2020-06-03 20:05 UTC, Toralf Förster
Details
environment (environment,80.81 KB, text/plain)
2020-06-03 20:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.72 KB, application/x-bzip)
2020-06-03 20:05 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,13.69 KB, application/x-bzip)
2020-06-03 20:05 UTC, Toralf Förster
Details
net-misc:bfgminer-5.5.0:20200603-173912.log (net-misc:bfgminer-5.5.0:20200603-173912.log,30.06 KB, text/plain)
2020-06-03 20:05 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,24.03 KB, application/x-bzip)
2020-06-03 20:05 UTC, Toralf Förster
Details
Patch for -fno-common (bfgminer-no-common.patch,3.16 KB, patch)
2020-06-03 22:31 UTC, Luke-Jr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-06-03 20:05:22 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bfgminer-deviceapi.o:(.bss+0x10): multiple definition of `cgsleep_us_r'; bfgminer-miner.o:(.bss+0x658): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bfgminer-util.o:(.data.rel.local+0x8): multiple definition of `cgsleep_us_r'; bfgminer-miner.o:(.bss+0x658): first defined here

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.8 (fallback)
  [3]   python3.6 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.43.1 *
The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed 03 Jun 2020 03:35:35 PM UTC
/var/db/repos/libressl	Tue 02 Jun 2020 02:35:03 AM UTC

emerge -qpvO net-misc/bfgminer
[ebuild  N    ] net-misc/bfgminer-5.5.0  USE="hardened libusb modminer ncurses sha256d udev unicode -adl -alchemist -avalon -avalonmm -bfsb -bfx -bifury -bigpic -bitforce -bitfury -bitmain -cointerra -cpumining -drillbit -dualminer -examples -gridseed -hashbuster -hashbuster2 -hashfast -icarus -jingtian -keccak -klondike -littlefury -lm-sensors -metabank -minion -nanofury -opencl -proxy -proxy_getwork -proxy_stratum -rockminer -screen -scrypt -twinfury -udev-broad-rules -x6500 -zeusminer -ztex"
Comment 1 Toralf Förster gentoo-dev 2020-06-03 20:05:25 UTC
Created attachment 643304 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-06-03 20:05:28 UTC
Created attachment 643306 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-06-03 20:05:30 UTC
Created attachment 643308 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-06-03 20:05:33 UTC
Created attachment 643310 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-06-03 20:05:36 UTC
Created attachment 643312 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-06-03 20:05:39 UTC
Created attachment 643314 [details]
net-misc:bfgminer-5.5.0:20200603-173912.log
Comment 7 Toralf Förster gentoo-dev 2020-06-03 20:05:41 UTC
Created attachment 643316 [details]
temp.tbz2
Comment 8 Luke-Jr 2020-06-03 22:31:58 UTC
Created attachment 643338 [details, diff]
Patch for -fno-common

Not sure when I'll do a release upstream, but for now, here's a patch to fix the issues with -fno-common (GCC 9.3 at least)