Author

Topic: Trouble installing cgminer on Raspberry Pi (Read 280 times)

newbie
Activity: 8
Merit: 5
February 18, 2024, 04: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
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
February 11, 2024, 06:26:06 PM
#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
hero member
Activity: 504
Merit: 1065
Crypto Swap Exchange
February 11, 2024, 01: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)
newbie
Activity: 8
Merit: 5
February 07, 2024, 05:57:24 AM
#3
Followed the guide and got the same exact errors again  Huh
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
February 06, 2024, 05: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
newbie
Activity: 8
Merit: 5
February 06, 2024, 11:14:02 AM
#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
Jump to: