I tried to build the dash node from source and at step 3 I got some issues.
I tried to build the BerkleyDB but the build failed with the error message below.
root@dash:/opt/dashpay/src/db-4.8.30.NC/build_unix# make
./libtool --mode=compile g++ -c -I. -I../dist/.. -I/opt/dashpay/include -D_GNU_SOURCE -D_REENTRANT -I/opt/dashpay/include ../dist/../cxx/cxx_db.cpp
libtool: compile: g++ -c -I. -I../dist/.. -I/opt/dashpay/include -D_GNU_SOURCE -D_REENTRANT -I/opt/dashpay/include ../dist/../cxx/cxx_db.cpp -fPIC -DPIC -o .libs/cxx_db.o
In file included from ../dist/../dbinc/mutex_int.h:12,
from ../dist/../dbinc/mutex.h:15,
from ./db_int.h:884,
from ../dist/../cxx/cxx_db.cpp:11:
../dist/../dbinc/atomic.h:179:19: error: definition of ‘int atomic_compare_exchange(db_atomic_t*, atomic_value_t, atomic_value_t)’ ambiguates built-in declaration ‘bool atomic_compare_exchange(long unsigned int, volatile void, void, void*, int, int)’
179 | static inline int __atomic_compare_exchange(
| ^~~~~~~~~
make: *** [Makefile:2018: cxx_db.lo] Error 1
Do you have any idea what I did wrong? Basically I followed all the steps which are described in your github blog post. My maschine is a server from digitalocean
Ubuntu 20.04 (LTS) x64
1 vCPU
2GB / 50GB Disk
Try using the default versions that come with Ubuntu. Things have cooled down and the stable versions will probably work rather than what I originally used.
Take a look at the official repo and its instructions. I think things are simpler now.
Hello,
I tried to build the dash node from source and at step 3 I got some issues. I tried to build the BerkleyDB but the build failed with the error message below.
root@dash:/opt/dashpay/src/db-4.8.30.NC/build_unix# make ./libtool --mode=compile g++ -c -I. -I../dist/.. -I/opt/dashpay/include -D_GNU_SOURCE -D_REENTRANT -I/opt/dashpay/include ../dist/../cxx/cxx_db.cpp libtool: compile: g++ -c -I. -I../dist/.. -I/opt/dashpay/include -D_GNU_SOURCE -D_REENTRANT -I/opt/dashpay/include ../dist/../cxx/cxx_db.cpp -fPIC -DPIC -o .libs/cxx_db.o In file included from ../dist/../dbinc/mutex_int.h:12, from ../dist/../dbinc/mutex.h:15, from ./db_int.h:884, from ../dist/../cxx/cxx_db.cpp:11: ../dist/../dbinc/atomic.h:179:19: error: definition of ‘int atomic_compare_exchange(db_atomic_t*, atomic_value_t, atomic_value_t)’ ambiguates built-in declaration ‘bool atomic_compare_exchange(long unsigned int, volatile void, void, void*, int, int)’ 179 | static inline int __atomic_compare_exchange( | ^
~~~~~~~~ make: *** [Makefile:2018: cxx_db.lo] Error 1Do you have any idea what I did wrong? Basically I followed all the steps which are described in your github blog post. My maschine is a server from digitalocean Ubuntu 20.04 (LTS) x64 1 vCPU 2GB / 50GB Disk
Any hint or help would be really appreciated.