• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Problem when compiling darkcoin from github

yamada

Member
I get the following error and never had it before.

Somebody has an Idea?

root@nognog19:/home/Downloads/darkcoin# time make -f makefile.unix
make: makefile.unix: No such file or directory
make: *** No rule to make target `makefile.unix'. Stop.

real 0m0.002s
user 0m0.001s
sys 0m0.001s
root@nognog19:/home/Downloads/darkcoin# qmake
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
root@nognog19:/home/Downloads/darkcoin# make
cd /home/Downloads/darkcoin/src/leveldb && CC=gcc CXX=g++ make OPT="-m64 -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a
make[1]: Entering directory `/home/Downloads/darkcoin/src/leveldb'
make[1]: `libleveldb.a' is up to date.
make[1]: `libmemenv.a' is up to date.
make[1]: Leaving directory `/home/Downloads/darkcoin/src/leveldb'
cd /home/Downloads/darkcoin; /bin/sh share/genbuild.sh /home/Downloads/darkcoin/build/build.h
/usr/bin/uic-qt4 src/qt/forms/sendcoinsdialog.ui -o build/ui_sendcoinsdialog.h
/usr/bin/uic-qt4 src/qt/forms/coincontroldialog.ui -o build/ui_coincontroldialog.h
/usr/bin/uic-qt4 src/qt/forms/addressbookpage.ui -o build/ui_addressbookpage.h
/usr/bin/uic-qt4 src/qt/forms/signverifymessagedialog.ui -o build/ui_signverifymessagedialog.h
/usr/bin/uic-qt4 src/qt/forms/aboutdialog.ui -o build/ui_aboutdialog.h
/usr/bin/uic-qt4 src/qt/forms/editaddressdialog.ui -o build/ui_editaddressdialog.h
/usr/bin/uic-qt4 src/qt/forms/transactiondescdialog.ui -o build/ui_transactiondescdialog.h
/usr/bin/uic-qt4 src/qt/forms/overviewpage.ui -o build/ui_overviewpage.h
/usr/bin/uic-qt4 src/qt/forms/sendcoinsentry.ui -o build/ui_sendcoinsentry.h
/usr/bin/uic-qt4 src/qt/forms/askpassphrasedialog.ui -o build/ui_askpassphrasedialog.h
/usr/bin/uic-qt4 src/qt/forms/rpcconsole.ui -o build/ui_rpcconsole.h
/usr/bin/uic-qt4 src/qt/forms/optionsdialog.ui -o build/ui_optionsdialog.h
g++ -c -m64 -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -D_REENTRANT -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -DQT_WEBKIT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DHAVE_BUILD_INFO -DLINUX -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -Ibuild -Ibuild -o build/bitcoin.o src/qt/bitcoin.cpp
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from src/allocators.h:10,
from src/qt/walletmodel.h:8,
from src/qt/bitcoin.cpp:9:
/usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
/usr/include/boost/thread/xtime.hpp:38:13: error: ‘int_fast64_t’ does not name a type
/usr/include/boost/thread/xtime.hpp:41:13: error: ‘int_fast32_t’ does not name a type
/usr/include/boost/thread/xtime.hpp:43:5: error: ‘xtime_sec_t’ does not name a type
/usr/include/boost/thread/xtime.hpp:44:5: error: ‘xtime_nsec_t’ does not name a type
/usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
/usr/include/boost/thread/xtime.hpp: In function ‘xtime get_xtime(const system_time&)’:
/usr/include/boost/thread/xtime.hpp:64:9: error: ‘struct xtime’ has no member named ‘sec’
/usr/include/boost/thread/xtime.hpp:64:25: error: expected type-specifier
/usr/include/boost/thread/xtime.hpp:64:25: error: expected ‘>’
/usr/include/boost/thread/xtime.hpp:64:25: error: expected ‘(’
/usr/include/boost/thread/xtime.hpp:64:25: error: ‘xtime_sec_t’ is not a member of ‘xtime’
/usr/include/boost/thread/xtime.hpp:64:78: error: expected ‘)’ before ‘;’ token
/usr/include/boost/thread/xtime.hpp:65:9: error: ‘struct xtime’ has no member named ‘nsec’
/usr/include/boost/thread/xtime.hpp:65:26: error: expected type-specifier
/usr/include/boost/thread/xtime.hpp:65:26: error: expected ‘>’
/usr/include/boost/thread/xtime.hpp:65:26: error: expected ‘(’
/usr/include/boost/thread/xtime.hpp:65:26: error: ‘xtime_nsec_t’ is not a member of ‘xtime’
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from src/allocators.h:10,
from src/qt/walletmodel.h:8,
from src/qt/bitcoin.cpp:9:
/usr/include/boost/thread/xtime.hpp:65:134: error: expected ‘)’ before ‘;’ token
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
/usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
from /usr/include/boost/thread/pthread/mutex.hpp:12,
from /usr/include/boost/thread/mutex.hpp:16,
from src/allocators.h:10,
from src/qt/walletmodel.h:8,
from src/qt/bitcoin.cpp:9:
/usr/include/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from src/allocators.h:10,
from src/qt/walletmodel.h:8,
from src/qt/bitcoin.cpp:9:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_cmp(const xtime&, const xtime&)’:
/usr/include/boost/thread/xtime.hpp:82:13: error: ‘const struct xtime’ has no member named ‘sec’
/usr/include/boost/thread/xtime.hpp:82:24: error: ‘const struct xtime’ has no member named ‘sec’
/usr/include/boost/thread/xtime.hpp:83:26: error: ‘const struct xtime’ has no member named ‘nsec’
/usr/include/boost/thread/xtime.hpp:83:37: error: ‘const struct xtime’ has no member named ‘nsec’
/usr/include/boost/thread/xtime.hpp:85:21: error: ‘const struct xtime’ has no member named ‘sec’
/usr/include/boost/thread/xtime.hpp:85:31: error: ‘const struct xtime’ has no member named ‘sec’
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
make: *** [build/bitcoin.o] Error 1
 
I get the following error and never had it before.

Somebody has an Idea?

root@nognog19:/home/Downloads/darkcoin# time make -f makefile.unix
make: makefile.unix: No such file or directory
[...]

You are in the wrong directory - cd to '/home/Downloads/darkcoin/src'
 
root@nognog19:/home/Downloads/darkcoin/src# ls
addrman.cpp bloom.h db.h key.h makefile.osx qt simd.c sph_skein.h version.cpp
addrman.h bmw.c echo.c keystore.cpp makefile.unix rpcblockchain.cpp skein.c sph_types.h version.h
aes_helper.c checkpoints.cpp groestl.c keystore.h mruset.h rpcdarksend.cpp sph_blake.h sync.cpp wallet.cpp
alert.cpp checkpoints.h hashblock.h leveldb netbase.cpp rpcdump.cpp sph_bmw.h sync.h walletdb.cpp
alert.h checkqueue.h hash.cpp leveldb.cpp netbase.h rpcmining.cpp sph_cubehash.h test walletdb.h
allocators.h clientversion.h hash.h leveldb.h net.cpp rpcnet.cpp sph_echo.h threadsafety.h wallet.h
base58.h coincontrol.h init.cpp limitedmap.h net.h rpcrawtransaction.cpp sph_groestl.h txdb.cpp
bignum.h compat.h init.h luffa.c noui.cpp rpcwallet.cpp sph_jh.h txdb.h
bitcoinrpc.cpp crypter.cpp jh.c main.cpp obj script.cpp sph_keccak.h ui_interface.h
bitcoinrpc.h crypter.h json main.h obj-test script.h sph_luffa.h uint256.h
blake.c cubehash.c keccak.c makefile.linux-mingw protocol.cpp serialize.h sph_shavite.h util.cpp
bloom.cpp db.cpp key.cpp makefile.mingw protocol.h shavite.c sph_simd.h util.h


darkcoin directory was created via git and cloning the github/darkcoinproject
 
root@nognog19:/home/Downloads/darkcoin/src# ls
addrman.cpp bloom.h db.h key.h makefile.osx qt simd.c sph_skein.h version.cpp
addrman.h bmw.c echo.c keystore.cpp makefile.unix rpcblockchain.cpp skein.c sph_types.h version.h
aes_helper.c checkpoints.cpp groestl.c keystore.h mruset.h rpcdarksend.cpp sph_blake.h sync.cpp wallet.cpp
alert.cpp checkpoints.h hashblock.h leveldb netbase.cpp rpcdump.cpp sph_bmw.h sync.h walletdb.cpp
alert.h checkqueue.h hash.cpp leveldb.cpp netbase.h rpcmining.cpp sph_cubehash.h test walletdb.h
allocators.h clientversion.h hash.h leveldb.h net.cpp rpcnet.cpp sph_echo.h threadsafety.h wallet.h
base58.h coincontrol.h init.cpp limitedmap.h net.h rpcrawtransaction.cpp sph_groestl.h txdb.cpp
bignum.h compat.h init.h luffa.c noui.cpp rpcwallet.cpp sph_jh.h txdb.h
bitcoinrpc.cpp crypter.cpp jh.c main.cpp obj script.cpp sph_keccak.h ui_interface.h
bitcoinrpc.h crypter.h json main.h obj-test script.h sph_luffa.h uint256.h
blake.c cubehash.c keccak.c makefile.linux-mingw protocol.cpp serialize.h sph_shavite.h util.cpp
bloom.cpp db.cpp key.cpp makefile.mingw protocol.h shavite.c sph_simd.h util.h


darkcoin directory was created via git and cloning the github/darkcoinproject

Sorry, no idea - all files necessary are present - error message
'make: makefile.unix: No such file or directory' does not make sense.

Code:
git clone https://github.com/darkcoinproject/darkcoin.git
cd darkcoin/src
make -f makefile.unix

always worked for me so far...
 
yes its indeed strange..its a totally fresh debian VPS

started , did apt-get update && apt-get upgrade

then

apt-get -y dist-upgrade

apt-get -y install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libminiupnpc-dev nano curl libboost-all-dev libdb5.1 libdb5.1-dev libdb5.1++-dev git ntp make g++ gcc autoconf cpp ngrep iftop sysstat iptraf ufw openssh-server chkconfig nmap

################################
FOR DEBIAN:
nano etc/apt/sources.lst
deb http://ftp.debian.org/debian experimental main
apt-get update
apt-get -t experimental install libc6-amd64 libc6-dev libc6-dbg
################################


But it simply doesn't work...

Can I somehow deploy without compiling from source?
 
yes its indeed strange..its a totally fresh debian VPS

started , did apt-get update && apt-get upgrade

then

apt-get -y dist-upgrade

apt-get -y install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libminiupnpc-dev nano curl libboost-all-dev libdb5.1 libdb5.1-dev libdb5.1++-dev git ntp make g++ gcc autoconf cpp ngrep iftop sysstat iptraf ufw openssh-server chkconfig nmap

################################
FOR DEBIAN:
nano etc/apt/sources.lst
deb http://ftp.debian.org/debian experimental main
apt-get update
apt-get -t experimental install libc6-amd64 libc6-dev libc6-dbg
################################


But it simply doesn't work...

Can I somehow deploy without compiling from source?
Please check the folder permissions with "ls -l"
maybe you cloned as root and tried to built as user
 
No I did it all as root.

But I basically rebuilt it all under Ubuntu and there it worked without a problem ;)
 
Back
Top