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: 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:
 
Reported: 2021-03-12 08:29 UTC by Toralf Förster
Modified: 2021-03-12 17:29 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.