Bitcoin Forum
May 02, 2024, 09:18:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trouble installing cgminer on Raspberry Pi  (Read 156 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
1714684736
Hero Member
*
Offline Offline

Posts: 1714684736

View Profile Personal Message (Offline)

Ignore
1714684736
Reply with quote  #2

1714684736
Report to moderator
1714684736
Hero Member
*
Offline Offline

Posts: 1714684736

View Profile Personal Message (Offline)

Ignore
1714684736
Reply with quote  #2

1714684736
Report to moderator
1714684736
Hero Member
*
Offline Offline

Posts: 1714684736

View Profile Personal Message (Offline)

Ignore
1714684736
Reply with quote  #2

1714684736
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714684736
Hero Member
*
Offline Offline

Posts: 1714684736

View Profile Personal Message (Offline)

Ignore
1714684736
Reply with quote  #2

1714684736
Report to moderator
1714684736
Hero Member
*
Offline Offline

Posts: 1714684736

View Profile Personal Message (Offline)

Ignore
1714684736
Reply with quote  #2

1714684736
Report to moderator
1714684736
Hero Member
*
Offline Offline

Posts: 1714684736

View Profile Personal Message (Offline)

Ignore
1714684736
Reply with quote  #2

1714684736
Report to moderator
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3626
Merit: 2522


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! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-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
Hero Member
*****
Offline Offline

Activity: 686
Merit: 2050


Crypto Swap Exchange


View Profile WWW
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)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2955


Block halving is coming.


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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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
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!