Author

Topic: Cellminer Help (Read 1359 times)

newbie
Activity: 16
Merit: 0
June 26, 2011, 06:06:50 PM
#7
Now that cellminer is running, how do I get it configured to run with DeepBit? Anyone have any idea?
newbie
Activity: 16
Merit: 0
June 26, 2011, 06:05:28 PM
#6
I've hear anywhere from 22-27 megahashes.
legendary
Activity: 2212
Merit: 1008
June 26, 2011, 06:03:54 PM
#5
just curious, whats the hashrate supposed to be like using cellminer for ps3?
newbie
Activity: 16
Merit: 0
June 26, 2011, 05: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.
newbie
Activity: 16
Merit: 0
June 26, 2011, 03: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?
newbie
Activity: 47
Merit: 0
June 26, 2011, 09:37:46 AM
#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
newbie
Activity: 16
Merit: 0
June 26, 2011, 05: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?
Jump to: