JayDDee / cpuminer-opt

Optimized multi algo CPU miner
Other
763 stars 541 forks source link

Can't compile on Linux #405

Closed RainbowMiner closed 8 months ago

RainbowMiner commented 8 months ago

I try to compile on Ubuntu 18.04 LTS 64bit, root access, using ./build-allarch.sh

In between the compilation I get frequently the following messages:

/bin/bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
/bin/bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
/bin/bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
/bin/bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar

At the end, no binary has been created, the script ends with:

make[2]: Verzeichnis „/root/cpuminer-opt“ wird verlassen
Makefile:6156: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Verzeichnis „/root/cpuminer-opt“ wird verlassen
Makefile:952: recipe for target 'all' failed
make: *** [all] Error 2
strip: ‚cpuminer‛: Keine solche Datei
RainbowMiner commented 8 months ago

Solved: seems I ran into a user proc limit on the machine. Increasing the limits and rebooting the server helped.

JayDDee commented 8 months ago

Just a suggestion, you don't need root for anything related to cpuminer-opt and I discourage using it. It's also why I don't support things like MSR mods that require running the miner as root.

Glad you found the problem

Edit: Maybe it was triggered by changing -j from a constant to $nproc so it will dynamically use whatever number of threasd the CPU has.