Crowndev / crown-core

Core of Crown blockchain platform. Contribution repository is available by this link: https://gitlab.crownplatform.com/crown/crown-core. Github repository is a mirror.
http://www.crownplatform.com
MIT License
26 stars 18 forks source link

CentOS build failure #128

Open defunctec opened 3 years ago

defunctec commented 3 years ago

Please answer the following questions.

Which operating system?

CentOS 8

Which version of Crown are you using? (QT or Daemon) Please include the version number.

0.14.2

Please describe the expected behavior.

To build Crown successfully

Please describe the actual behavior.

Running into dependency issues

In file included from platform/governance-vote.cpp:7:0:
platform/specialtx.h: In instantiation of ‘bool Platform::CheckInputsHashAndSig(const CTransaction&,       const SpecialTxPayload&, const CKeyID&, CValidationState&) [with SpecialTxPayload = Platform::VoteTx       ’:
platform/governance-vote.cpp:22:61:   required from here
platform/specialtx.h:126:17: warning: variable ‘inputsHash’ set but not used [-Wunused-but-set-variab      le]
         uint256 inputsHash = CalcTxInputsHash(tx);
                 ^
cc1plus: warning: unrecognized command line option "-Wno-self-assign" [enabled by default]
  CXX      platform/libbitcoin_server_a-specialtx.o
In file included from platform/specialtx.cpp:15:0:
platform/nf-token/nf-tokens-manager.h:213:108: error: wrong number of template arguments (2, should b      e 5)
             using NftIndexRange = boost::any_range<const NfTokenIndex &, boost::bidirectional_traver      sal_tag>;
                                                                                                                  ^
In file included from platform/nf-token/nf-tokens-manager.h:10:0,
                 from platform/specialtx.cpp:15:
/usr/include/boost/range/any_range.hpp:82:15: error: provided for ‘template<class Value, class Traver      sal, class Reference, class Difference, class Buffer> class boost::range_detail::any_range’
         class any_range
               ^
In file included from platform/specialtx.cpp:15:0:
platform/nf-token/nf-tokens-manager.h:214:109: error: wrong number of template arguments (2, should b      e 5)
             using NftIndexForwardRange = boost::any_range<const NfTokenIndex &, boost::forward_trave      rsal_tag>;
                                                                                                                   ^
In file included from platform/nf-token/nf-tokens-manager.h:10:0,
                 from platform/specialtx.cpp:15:
/usr/include/boost/range/any_range.hpp:82:15: error: provided for ‘template<class Value, class Traver      sal, class Reference, class Difference, class Buffer> class boost::range_detail::any_range’
         class any_range
               ^
In file included from platform/specialtx.cpp:16:0:
platform/nf-token/nft-protocols-manager.h:105:110: error: wrong number of template arguments (2, shou      ld be 5)
         using NftProtoIndexRange = boost::any_range<const NftProtoIndex &, boost::bidirectional_trav      ersal_tag>;
                                                                                                                    ^
In file included from platform/nf-token/nf-tokens-manager.h:10:0,
                 from platform/specialtx.cpp:15:
/usr/include/boost/range/any_range.hpp:82:15: error: provided for ‘template<class Value, class Traver      sal, class Reference, class Difference, class Buffer> class boost::range_detail::any_range’
         class any_range
               ^
cc1plus: warning: unrecognized command line option "-Wno-self-assign" [enabled by default]
make[2]: *** [platform/libbitcoin_server_a-specialtx.o] Error 1
make[2]: Leaving directory `/root/crown-core/src'
make[1]: *** [all-recursive] Error 1

Any steps to reproduce the behavior?

yum update yum upgrade git clone https://gitlab.crownplatform.com/crown/crown-core.git cd crown-core make -C depends yum install -y autoconf automake boost-devel gcc-c++ git libdb4-cxx libdb4-cxx-devel libevent-devel libtool libcurl-devel openssl-devel ./autogen.sh ./configure --without-miniupnpc --disable-tests --with-gui=no --disable-shared
make

nmmmnu commented 3 years ago

Same on CentOS 7

DutchShadow commented 1 year ago

See https://github.com/Crowndev/crown-core/blob/v0.14.0.4/.gitlab-ci.yml for latest packages and steps