Bitcoin Forum
December 06, 2016, 10:35:57 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Cellminer Help  (Read 1154 times)
Hebination
Newbie
*
Offline Offline

Activity: 16


View Profile
June 26, 2011, 10:10:44 AM
 #1

I am running Debian Wheezy/Sid on my PS3 and I am trying to get Cellminer to work. I am getting the following errors during the make process:

Code:
make -C ext
make[1]: Entering directory `/root/cellminer/ext'
make -C spu
make[2]: Entering directory `/root/cellminer/ext/spu'
spu-gcc -DUNROLL_SHA256 -Dinline="inline __attribute__((always_inline))" -O3 -fno-strict-aliasing -funroll-loops -mno-safe-hints -Wall -Werror    -c -o worker.o worker.c
spu-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make[2]: *** [worker.o] Error 1
make[2]: Leaving directory `/root/cellminer/ext/spu'
make[1]: *** [spu/worker.elf] Error 2
make[1]: Leaving directory `/root/cellminer/ext'
make: *** [ext/cellminer.so] Error 2


Any ideas?
1481020557
Hero Member
*
Offline Offline

Posts: 1481020557

View Profile Personal Message (Offline)

Ignore
1481020557
Reply with quote  #2

1481020557
Report to moderator
1481020557
Hero Member
*
Offline Offline

Posts: 1481020557

View Profile Personal Message (Offline)

Ignore
1481020557
Reply with quote  #2

1481020557
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Tartarus
Jr. Member
*
Offline Offline

Activity: 47


View Profile
June 26, 2011, 02:37:46 PM
 #2

It looks like you're hitting: https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/792706

So try adding -fno-use-linker-plugin to the Makefile in the LDFLAGS variable

Find the above useful?  Send tips to 1KjoJihf7GWHWeQFhDmaw4g7xorkmD13u
Hebination
Newbie
*
Offline Offline

Activity: 16


View Profile
June 26, 2011, 08:45:11 PM
 #3

I added -fno-use-linker-plugin to the makefile in \etc\ppu and \etc\spu so the file now reads:

Code:
# cellminer - Bitcoin miner for the Cell Broadband Engine Architecture
# Copyright © 2011 Robert Leslie
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License (version 2) as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

DEFINE           = -DUNROLL_SHA256
DEFINE          += -Dinline="inline __attribute__((always_inline))"
#DEFINE         += -DDEBUG
OPTIMIZE         = -O3 -fno-strict-aliasing -funroll-loops
MACHINE          = -mcpu=cell #-maltivec
DEBUG            = -Wall -Werror

CFLAGS           = $(DEFINE) $(OPTIMIZE) $(MACHINE) $(DEBUG) $(INCLUDEPATH)
LDFLAGS          = $(LIBPATH) -fno-use-linker-plugin

CC               = gcc

worker.a: worker.o sha256.o util.o
        $(AR) rc $@ $?

test: test.o sha256.o util.o
        $(CC) -o $@ $(LDFLAGS) $^

%.s: %.c Makefile
        $(CC) -o $@ $(CFLAGS) -c $< -S

%-debug.s: %.c Makefile
        $(CC) -o $@ $(CFLAGS) -c $< -S -g

.PHONY: clean
clean:
        -rm -f *.a *.o test

depend.auto: *.[ch]
        @$(CC) $(MACHINE) -MM *.c >$@

*.o: Makefile
include depend.auto


Still having the same error however. There wasn't a LDFLAGS variable in the Makefile in /cellminer/ that makes the entire thing. Should I add -fno-use-linker-plugin to that as well?

Am I doing it right?
Hebination
Newbie
*
Offline Offline

Activity: 16


View Profile
June 26, 2011, 10:38:53 PM
 #4

I got past that last issue and now the spu compiles correctly but when I try and compile ppu it give this error:  internal compiler error: in trunc_int_for_mode, at explow.c:56

I know in the other Cellminer page that it was throwing that error up because a compiler version issue. How would I go about fixing this?



-Edit-

Answering my own questions here I guess Smiley

I fixed the compiling issue by typing this in:

apt-get install gcc-4.4

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc

After I did that, ppu went ahead and compliled.
bitcon
Legendary
*
Offline Offline

Activity: 1050


www.bit-exo.com


View Profile WWW
June 26, 2011, 11:03:54 PM
 #5

just curious, whats the hashrate supposed to be like using cellminer for ps3?

Hebination
Newbie
*
Offline Offline

Activity: 16


View Profile
June 26, 2011, 11:05:28 PM
 #6

I've hear anywhere from 22-27 megahashes.
Hebination
Newbie
*
Offline Offline

Activity: 16


View Profile
June 26, 2011, 11:06:50 PM
 #7

Now that cellminer is running, how do I get it configured to run with DeepBit? Anyone have any idea?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!