bfgminer icon indicating copy to clipboard operation
bfgminer copied to clipboard

Compiling Centos 7

Open Mig75seo opened this issue 4 years ago • 5 comments

Hello, I'm trying to compile but I have the following error when I execute the make command:

CC bfgminer-driver-hashfast.o CC bfgminer-driver-rockminer.o CC bfgminer-lowl-pci.o CC bfgminer-lowl-spi.o make -C libbase58 make[3]: Entering directory /bitcoin/mining/bfgminer/libbase58' make[3]: Nothing to be done for all'. make[3]: Leaving directory /bitcoin/mining/bfgminer/libbase58' make -C libblkmaker make[3]: Entering directory /bitcoin/mining/bfgminer/libblkmaker' make[3]: Nothing to be done for all'. make[3]: Leaving directory /bitcoin/mining/bfgminer/libblkmaker' CCLD bfgminer bfgminer-miner.o: In function _bfg_clean_up': /bitcoin/mining/bfgminer/miner.c:11958: undefined reference to cpus' collect2: error: ld returned 1 exit status make[2]: *** [bfgminer] Error 1 make[2]: Leaving directory /bitcoin/mining/bfgminer' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /bitcoin/mining/bfgminer' make: *** [all] Error 2

Any idea ?

Thank you in advance.

Miguel

Mig75seo avatar Jan 03 '21 21:01 Mig75seo

Hi miguel , issue occures when you compile without the CPU driver to fix this run ./configure --enable-cpumining before make, GL

Flossed avatar Jan 07 '21 00:01 Flossed

It's works, cool. Thank you

Mig75seo avatar Jan 09 '21 09:01 Mig75seo

No problem.

On Sat, Jan 9, 2021, 1:38 AM Mig75seo [email protected] wrote:

It's works, cool. Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/luke-jr/bfgminer/issues/799#issuecomment-757123525, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNO3E47WFLWGXL4RXYBTRTSZAP2JANCNFSM4VSFPP4A .

DylanCkawalec avatar Jan 09 '21 09:01 DylanCkawalec

I have same problem. i had to configure with enable cpu too however with this setup i cannot get my GPU to be recognised in ubuntu on 2 different machines

PS if you comment out line 11958 in miner.c you can compile (but i dont know how this would affect things)

robinh007d-sys avatar Jan 10 '21 20:01 robinh007d-sys

here is a script

sudo apt-get install build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev libhidapi-dev git clone https://github.com/luke-jr/bfgminer.git cd bfgminer/ ./autogen.sh ./configure --enable-opencl --enable-keccak --disable-other-drivers sed -i '11958d' miner.c make

save as getbfgminer.sh and run it to download and install bfgminer

this configuration allows me to mine with my GPU with the current "reference to cpus" bug

robinh007d avatar Jan 15 '21 23:01 robinh007d