Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775560 - net-misc/bfgminer-5.5.0 - miner.c:(.text+<snip>): undefined reference to cpus
Summary: net-misc/bfgminer-5.5.0 - miner.c:(.text+<snip>): undefined reference to cpus
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:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-12 08:29 UTC by Toralf Förster
Modified: 2021-10-31 03:06 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.76 KB, text/plain)
2021-03-12 08:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,346.92 KB, text/plain)
2021-03-12 08:29 UTC, Toralf Förster
Details
environment (environment,87.20 KB, text/plain)
2021-03-12 08:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.07 KB, application/x-bzip)
2021-03-12 08:29 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,13.70 KB, application/x-bzip)
2021-03-12 08:29 UTC, Toralf Förster
Details
net-misc:bfgminer-5.5.0:20210312-013559.log (net-misc:bfgminer-5.5.0:20210312-013559.log,27.22 KB, text/plain)
2021-03-12 08:29 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.46 KB, application/x-bzip)
2021-03-12 08:29 UTC, Toralf Förster
Details
Upstream fix (p,482 bytes, patch)
2021-03-12 17:29 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 2021-03-12 08:29:17 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: bfgminer-miner.o: warning: relocation against `cpus' in read-only section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: bfgminer-miner.o: in function `_bfg_clean_up':
miner.c:(.text+0xc371): undefined reference to `cpus'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1257: bfgminer] Error 1

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Mar 12 01:20:54 UTC 2021

emerge -qpvO net-misc/bfgminer
[ebuild  N    ] net-misc/bfgminer-5.5.0  USE="examples hashfast libusb ncurses sha256d udev unicode -adl -alchemist -avalon -avalonmm -bfsb -bfx -bifury -bigpic -bitforce -bitfury -bitmain -cointerra -cpumining -drillbit -dualminer -gridseed -hardened -hashbuster -hashbuster2 -icarus -jingtian -keccak -klondike -littlefury -lm-sensors -metabank -minion -modminer -nanofury -opencl -proxy -proxy_getwork -proxy_stratum -rockminer -screen -scrypt -twinfury -udev-broad-rules -x6500 -zeusminer -ztex"
Comment 1 Toralf Förster gentoo-dev 2021-03-12 08:29:18 UTC
Created attachment 690900 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-12 08:29:20 UTC
Created attachment 690903 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-12 08:29:21 UTC
Created attachment 690906 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-12 08:29:22 UTC
Created attachment 690909 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-12 08:29:23 UTC
Created attachment 690912 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-12 08:29:25 UTC
Created attachment 690915 [details]
net-misc:bfgminer-5.5.0:20210312-013559.log
Comment 7 Toralf Förster gentoo-dev 2021-03-12 08:29:26 UTC
Created attachment 690918 [details]
temp.tar.bz2
Comment 8 Luke-Jr 2021-03-12 17:29:57 UTC
Created attachment 691029 [details, diff]
Upstream fix

This is due to the -fno-common fixes. Attached upstream fix.
Comment 9 Larry the Git Cow gentoo-dev 2021-10-31 03:06:14 UTC
The bug has been closed via the following commit(s):

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

commit b4be638d4edd1a5128130ae9aee2f63b6c7626a8
Author:     Luke Dashjr <luke-jr+git@utopios.org>
AuthorDate: 2021-10-26 21:41:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-31 03:05:46 +0000

    net-misc/bfgminer: Upstream patch to fix build failure with USE=-cpumining
    
    Closes: https://bugs.gentoo.org/775560
    Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
    Closes: https://github.com/gentoo/gentoo/pull/22718
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild         |  1 +
 .../files/bfgminer-5.5.0-cpus-undefined.patch      | 23 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)