Bitcoin Forum
January 12, 2026, 12:53:59 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trouble installing cgminer on Raspberry Pi  (Read 408 times)
MarkSierra (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 5


View Profile
February 06, 2024, 04:14:02 PM
 #1

Hey guys,

I tried installing cgminer on my Raspberry Pi (running Raspberry Pi OS Lite 64-bit [tried both Debian 11 and 12]), but I can't run it after doing the "make" command.
At the end of the "make" command there is always the following error message:

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:833: cgminer] Error 1
make[2]: Leaving directory ‚/home/user/cgminer‘
make[1]: *** [Makefile:1756: all-recursive] Error 1
make[1]: Leaving directory ‚/home/user/cgminer‘
make *** [Makefile:736:all] Error 2

Any idea what's wrong and how I can fix it?  Huh

PS. I'm a noob when it comes to Linux and also only know very basic coding stuff  Embarrassed
NotFuzzyWarm
Legendary
*
Online Online

Activity: 4242
Merit: 3332


Evil beware: We have waffles!


View Profile
February 06, 2024, 10:58:26 PM
 #2

1st of all make sure you are running Kano's latest version from his git. -ck's version are long outdated and Kano is the only remaining active original Primary developer for it. There are a ton of outdated clones out there - avoid them!

That said ref his installation page for compiling/using it. and click on the link for Building on linux/ubuntu

This (from that page) should get the latest from his repo and compile it. I used it unaltered to write to my Pi 3B.
Code:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev zlib1g-dev git
cd
git clone https://github.com/kanoi/cgminer.git
cd cgminer
CFLAGS="-O2 -march=native -fcommon" ./autogen.sh --enable-gekko --enable-icarus
make
sudo apt-get install -y openjdk-8-jre-headless

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome!  3NtFuzyWREGoDHWeMczeJzxFZpiLAFJXYr
 -Sole remaining active Primary developer of cgminer, Kano's repo is here  Discord support invite at https://kano.is/
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
MarkSierra (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 5


View Profile
February 07, 2024, 10:57:24 AM
 #3

Followed the guide and got the same exact errors again  Huh
paid2
Legendary
*
Offline Offline

Activity: 1148
Merit: 3752


View Profile
February 11, 2024, 06:47:07 PM
 #4

Followed the guide and got the same exact errors again  Huh

Try with "-fcommon"

CFLAGS="-O2 -fcommon" ./autogen.sh --enable-gekko (or any option you need)
BitMaxz
Legendary
*
Offline Offline

Activity: 3864
Merit: 3521


Happy new year!


View Profile WWW
February 11, 2024, 11:26:06 PM
Merited by philipma1957 (5), ABCbits (1)
 #5

Followed the guide and got the same exact errors again  Huh

I heard someone that they fixed the issue by downgrading the RaspiOS to version 10.
Others also said they fixed their issue by switching to Debian Bullseye 32bit you can try it and hope it also works for you.

Here's the source where I found it https://forum.blocktrainer.de/t/cgminer-kompilierung-2-fehler/34329/12

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
MarkSierra (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 5


View Profile
February 18, 2024, 09:28:50 PM
 #6

I heard someone that they fixed the issue by downgrading the RaspiOS to version 10.
I would prefer to get it working before nuking my entire OS again and downgrading two version.

Others also said they fixed their issue by switching to Debian Bullseye 32bit you can try it and hope it also works for you.
I tried that already, but it didn't work  Sad
lomismous
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 30, 2025, 02:18:10 AM
 #7

Hey guys,

I tried installing cgminer on my Raspberry Pi (running Raspberry Pi OS Lite 64-bit [tried both Debian 11 and 12]), but I can't run it after doing the "make" command.
At the end of the "make" command there is always the following error message:

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:833: cgminer] Error 1
make[2]: Leaving directory ‚/home/user/cgminer‘
make[1]: *** [Makefile:1756: all-recursive] Error 1
make[1]: Leaving directory ‚/home/user/cgminer‘
make *** [Makefile:736:all] Error 2

Any idea what's wrong and how I can fix it?  Huh

PS. I'm a noob when it comes to Linux and also only know very basic coding stuff  Embarrassed
--------------------------------------------------------------------------------------------------

I know this post is old, but if you need the guide, I have the solution!
100% working
on Trixie OS 2025
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!