<p>error in miner file, something to do with cpus</p>
<p><code>./configure with enable cpu mining</code> fixed this</p>
<p>now able to make bfgminer</p>
<p>note similar issue from other users:</p>
<p><a href="https://github.com/luke-jr/bfgminer/issues/787" rel="nofollow noreferrer">https://github.com/luke-jr/bfgminer/issues/787</a></p>

CC BY-SA 4.0
2021-02-06T17:40:43.503Z
./configure --enable-cpumining && make
Ali ISSA
CC BY-SA 4.0
2021-01-06T02:12:50.540Z
2021-01-06T02:12:50.540Z
BingoDingo
<p>./configure --enable-cpumining &amp;&amp; make</p>

CC BY-SA 4.0
2021-02-06T17:40:20.363Z
2021-02-06T17:40:20.363Z
Ali ISSA
<p>so i have bfgminer up on a linux machine running fine purring away at 67Mh/s solo mining (geforce gtx460)</p>
<p>im attempting to build on a windows 10 machine</p>
<p>i have tried msys2 mgwin32 and 64 bit</p>
<p>nothing seems to work i get errors in all stages: autogen, configure and make</p>
<p>im using mgwin64bit now and got to the make stage succesfully...</p>
<p>i am able to autogen, configure but when it comes to make i get an error:</p>
<pre><code>make[3]: Leaving directory '/home/virtu/bfgminer/libblkmaker'
  CCLD     bfgminer.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bfgminer-miner.o:miner.c:(.rdata$.refptr.cpus[.refptr.cpus]+0x0): undefined reference to `cpus'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:1340: bfgminer.exe] Error 1
make[2]: Leaving directory '/home/virtu/bfgminer'
make[1]: *** [Makefile:2844: all-recursive] Error 1
make[1]: Leaving directory '/home/virtu/bfgminer'
make: *** [Makefile:1209: all] Error 2
</code></pre>
<p>Could someone help me come up with a solution?</p>
<p>in the meantime i will return to mingw32 and attempt to fix the no gcc or c compatible compiler issue on autogen/configure</p>

<bitcoin-core><mining-theory><mining-software><bfgminer>
how to fix mining software make error? bfgminer bitcoin
BingoDingo
# how to fix mining software make error? bfgminer bitcoin

(Asked by: username_0 on 2021-01-06)

so i have bfgminer up on a linux machine running fine purring away at 67Mh/s solo mining (geforce gtx460)

im attempting to build on a windows 10 machine

i have tried msys2 mgwin32 and 64 bit

nothing seems to work i get errors in all stages: autogen, configure and make

im using mgwin64bit now and got to the make stage succesfully...

i am able to autogen, configure but when it comes to make i get an error:

```
make[3]: Leaving directory '/home/virtu/bfgminer/libblkmaker'
  CCLD     bfgminer.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bfgminer-miner.o:miner.c:(.rdata$.refptr.cpus[.refptr.cpus]+0x0): undefined reference to `cpus'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:1340: bfgminer.exe] Error 1
make[2]: Leaving directory '/home/virtu/bfgminer'
make[1]: *** [Makefile:2844: all-recursive] Error 1
make[1]: Leaving directory '/home/virtu/bfgminer'
make: *** [Makefile:1209: all] Error 2

```

Could someone help me come up with a solution?

in the meantime i will return to mingw32 and attempt to fix the no gcc or c compatible compiler issue on autogen/configure

**Tags:** bitcoin-core, mining-theory, mining-software, bfgminer


---

## 2 answers

### Answer by username_0 on 2021-01-06. Score: 1 | Accepted answer

error in miner file, something to do with cpus

`./configure with enable cpu mining` fixed this

now able to make bfgminer

note similar issue from other users:

<https://github.com/luke-jr/bfgminer/issues/787>

> **Comments:**
> **username_1**: ./configure --enable-cpumining && make  

---

### Answer by username_1 on 2021-02-06. Score: 0

./configure --enable-cpumining && make


---

