Bitcoin Forum
April 26, 2024, 06:13:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cellminer Help  (Read 1343 times)
Hebination (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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?
1714112029
Hero Member
*
Offline Offline

Posts: 1714112029

View Profile Personal Message (Offline)

Ignore
1714112029
Reply with quote  #2

1714112029
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714112029
Hero Member
*
Offline Offline

Posts: 1714112029

View Profile Personal Message (Offline)

Ignore
1714112029
Reply with quote  #2

1714112029
Report to moderator
1714112029
Hero Member
*
Offline Offline

Posts: 1714112029

View Profile Personal Message (Offline)

Ignore
1714112029
Reply with quote  #2

1714112029
Report to moderator
1714112029
Hero Member
*
Offline Offline

Posts: 1714112029

View Profile Personal Message (Offline)

Ignore
1714112029
Reply with quote  #2

1714112029
Report to moderator
Tartarus
Newbie
*
Offline Offline

Activity: 47
Merit: 0


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
Hebination (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
June 26, 2011, 10:38:53 PM
Last edit: June 26, 2011, 10:52:21 PM by Hebination
 #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: 2212
Merit: 1008


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

just curious, whats the hashrate supposed to be like using cellminer for ps3?
Hebination (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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

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

Activity: 16
Merit: 0


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:  

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