Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: robertgg on May 25, 2013, 08:14:43 PM



Title: Bitcoind on Debian (SUN SPARC)
Post by: robertgg on May 25, 2013, 08:14:43 PM
Code:
~/bitcoin/src$ make -f makefile.unix
Building LevelDB ...
make[1]: Entering directory `/home/robert/bitcoin/src/leveldb'
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/robert/bitcoin/src -I/home/robert/bitcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/robert/bitcoin/src/leveldb/include -I/home/robert/bitcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -c db/builder.cc -o db/builder.o
In file included from ./port/port_posix.h:50:0,
                 from ./port/port.h:14,
                 from ./db/filename.h:14,
                 from db/builder.cc:7:
./port/atomic_pointer.h:212:2: error: #error Please implement AtomicPointer for this platform.
make[1]: *** [db/builder.o] Error 1
make[1]: Leaving directory `/home/robert/bitcoin/src/leveldb'
make: *** [leveldb/libleveldb.a] Error 2

Any suggestion how to compile it on sparc64


Code:
cpu             : TI UltraSparc IIIi (Jalapeno)
fpu             : UltraSparc IIIi integrated FPU
pmu             : ultra3i
prom            : OBP 4.11.4 2003/07/23 08:04
type            : sun4u
ncpus probed    : 2
ncpus active    : 2
D$ parity tl1   : 0
I$ parity tl1   : 0
cpucaps         : flush,stbar,swap,muldiv,v9,ultra3,mul32,div32,v8plus,vis,vis2
Cpu0ClkTck      : 000000003bb94e80
Cpu1ClkTck      : 000000003bb94e80
MMU Type        : Cheetah+
State:
CPU0:           online
CPU1:           online


Title: Re: Bitcoind on Debian (SUN SPARC)
Post by: 2112 on May 25, 2013, 08:45:35 PM
Significant rewrite would be required to port Bitcoin to any big-endian architecture.


Title: Re: Bitcoind on Debian (SUN SPARC)
Post by: robertgg on May 25, 2013, 08:47:30 PM
but I successfully build yacoin daemon on sparc architecture ???


Title: Re: Bitcoind on Debian (SUN SPARC)
Post by: twobits on May 25, 2013, 08:48:52 PM
but I successfully build yacoin daemon on sparc architecture ???

and ran it successfully?

I think picocoin which is for bitcoin is supposed to be endian dependence free.


Title: Re: Bitcoind on Debian (SUN SPARC)
Post by: 2112 on May 25, 2013, 08:55:37 PM
and ran it successfully?

I think picocoin which is for bitcoin is supposed to be endian dependence free.
Yeah, "it compiles" and "it works" are two different things. Bitcoin gives even a third opportunity "it runs, but forms a separate network and blockchain than the little-endian version".

Anyway, here's the link to the only publicly-known code that is endian-neutral:

https://bitcointalk.org/index.php?topic=128055.0


Title: Re: Bitcoind on Debian (SUN SPARC)
Post by: gmaxwell on May 26, 2013, 05:29:42 AM
Significant rewrite would be required to port Bitcoin to any big-endian architecture.
Thats a bit of an exaggeration. Luke has a branch which is almost but not quite there.  Just about everything gets marshaled through serialization but some work is required to get all the details right. No one competent and productive working on the codebase considers it a major priority.


Title: Re: Bitcoind on Debian (SUN SPARC)
Post by: robertgg on May 26, 2013, 05:09:52 PM
Unfortunately I need bitcoind because I must install p2pool on this machine, I check it and it's only one error which prevent compile . I'm trying to correct atomic_pointer with sparcv9, it compiles but when I run it, it shows error on Leveldb, maybe someone can look on this to correct this thing