{"action":"created","issue":{"url":"https://api.github.com/repos/ripple/rippled/issues/1712","repository_url":"https://api.github.com/repos/ripple/rippled","labels_url":"https://api.github.com/repos/ripple/rippled/issues/1712/labels{/name}","comments_url":"https://api.github.com/repos/ripple/rippled/issues/1712/comments","events_url":"https://api.github.com/repos/ripple/rippled/issues/1712/events","html_url":"https://github.com/ripple/rippled/issues/1712","id":156214847,"number":1712,"title":"Scons build terminating due to errors","user":{"login":"shambhavi1993","id":19301127,"avatar_url":"https://avatars.githubusercontent.com/u/19301127?v=3","gravatar_id":"","url":"https://api.github.com/users/shambhavi1993","html_url":"https://github.com/shambhavi1993","followers_url":"https://api.github.com/users/shambhavi1993/followers","following_url":"https://api.github.com/users/shambhavi1993/following{/other_user}","gists_url":"https://api.github.com/users/shambhavi1993/gists{/gist_id}","starred_url":"https://api.github.com/users/shambhavi1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shambhavi1993/subscriptions","organizations_url":"https://api.github.com/users/shambhavi1993/orgs","repos_url":"https://api.github.com/users/shambhavi1993/repos","events_url":"https://api.github.com/users/shambhavi1993/events{/privacy}","received_events_url":"https://api.github.com/users/shambhavi1993/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-23T07:20:57Z","updated_at":"2016-05-24T04:36:33Z","closed_at":null,"body":"I have followed all the instructions for building rippled given on https://wiki.ripple.com/Ubuntu_build_instructions.\r\n\r\nBut when i build using the scons command i get the following error:\r\n\r\nIn file included from src/ripple/unity/app_ledger.cpp:27:0:\r\nsrc/ripple/app/ledger/Ledger.cpp:1271:45: error: ‘class boost::optional<long unsigned int>’ has no member named ‘value_or’\r\n         time_point{duration{prevClosingTime.value_or(0)}},\r\n                                             ^\r\nsrc/ripple/app/ledger/Ledger.cpp:1271:56: error: no matching function for call to ‘std::chrono::duration<unsigned int, std::ratio<1l> >::duration(<brace-enclosed initializer list>)’\r\n         time_point{duration{prevClosingTime.value_or(0)}},\r\n                                                        ^\r\nsrc/ripple/app/ledger/Ledger.cpp:1271:56: note: candidates are:\r\nIn file included from src/beast/beast/hash/hash_append.h:28:0,\r\n                 from src/ripple/basics/hardened_hash.h:23,\r\n                 from src/ripple/basics/base_uint.h:31,\r\n                 from src/ripple/protocol/Keylet.h:24,\r\n                 from src/ripple/protocol/Indexes.h:23,\r\n                 from src/ripple/protocol/STLedgerEntry.h:23,\r\n                 from src/ripple/ledger/TxMeta.h:23,\r\n                 from src/ripple/app/ledger/Ledger.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedgerTx.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedger.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedger.cpp:21,\r\n                 from src/ripple/unity/app_ledger.cpp:22:\r\n/usr/include/c++/4.9/chrono:270:14: note: template<class _Rep2, class _Period2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&)\r\n    constexpr duration(const duration<_Rep2, _Period2>& __d)\r\n              ^\r\n/usr/include/c++/4.9/chrono:270:14: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.9/chrono:263:23: note: template<class _Rep2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const _Rep2&)\r\n    constexpr explicit duration(const _Rep2& __rep)\r\n                       ^\r\n/usr/include/c++/4.9/chrono:263:23: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.9/chrono:257:2: note: std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = unsigned int; _Period = std::ratio<1l>]\r\n  duration(const duration&) = default;\r\n  ^\r\n/usr/include/c++/4.9/chrono:257:2: note:   no known conversion for argument 1 from ‘<type error>’ to ‘const std::chrono::duration<unsigned int, std::ratio<1l> >&’\r\n/usr/include/c++/4.9/chrono:252:12: note: constexpr std::chrono::duration<_Rep, _Period>::duration() [with _Rep = unsigned int; _Period = std::ratio<1l>]\r\n  constexpr duration() = default;\r\n            ^\r\n/usr/include/c++/4.9/chrono:252:12: note:   candidate expects 0 arguments, 1 provided\r\nIn file included from src/ripple/unity/app_ledger.cpp:27:0:\r\nsrc/ripple/app/ledger/Ledger.cpp:1271:57: error: no matching function for call to ‘std::chrono::time_point<ripple::NetClock>::time_point(<brace-enclosed initializer list>)’\r\n         time_point{duration{prevClosingTime.value_or(0)}},\r\n                                                         ^\r\nsrc/ripple/app/ledger/Ledger.cpp:1271:57: note: candidates are:\r\nIn file included from src/beast/beast/hash/hash_append.h:28:0,\r\n                 from src/ripple/basics/hardened_hash.h:23,\r\n                 from src/ripple/basics/base_uint.h:31,\r\n                 from src/ripple/protocol/Keylet.h:24,\r\n                 from src/ripple/protocol/Indexes.h:23,\r\n                 from src/ripple/protocol/STLedgerEntry.h:23,\r\n                 from src/ripple/ledger/TxMeta.h:23,\r\n                 from src/ripple/app/ledger/Ledger.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedgerTx.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedger.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedger.cpp:21,\r\n                 from src/ripple/unity/app_ledger.cpp:22:\r\n/usr/include/c++/4.9/chrono:562:14: note: template<class _Dur2> constexpr std::chrono::time_point<_Clock, _Dur>::time_point(const std::chrono::time_point<_Clock, _Dur2>&)\r\n    constexpr time_point(const time_point<clock, _Dur2>& __t)\r\n              ^\r\n/usr/include/c++/4.9/chrono:562:14: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.9/chrono:556:21: note: constexpr std::chrono::time_point<_Clock, _Dur>::time_point(const duration&) [with _Clock = ripple::NetClock; _Dur = std::chrono::duration<unsigned int, std::ratio<1l> >; std::chrono::time_point<_Clock, _Dur>::duration = std::chrono::duration<unsigned int, std::ratio<1l> >]\r\n  constexpr explicit time_point(const duration& __dur)\r\n                     ^\r\n/usr/include/c++/4.9/chrono:556:21: note:   no known conversion for argument 1 from ‘<type error>’ to ‘const duration& {aka const std::chrono::duration<unsigned int, std::ratio<1l> >&}’\r\n/usr/include/c++/4.9/chrono:553:12: note: constexpr std::chrono::time_point<_Clock, _Dur>::time_point() [with _Clock = ripple::NetClock; _Dur = std::chrono::duration<unsigned int, std::ratio<1l> >]\r\n  constexpr time_point() : __d(duration::zero())\r\n            ^\r\n/usr/include/c++/4.9/chrono:553:12: note:   candidate expects 0 arguments, 1 provided\r\n/usr/include/c++/4.9/chrono:546:14: note: constexpr std::chrono::time_point<ripple::NetClock>::time_point(const std::chrono::time_point<ripple::NetClock>&)\r\n       struct time_point\r\n              ^\r\n/usr/include/c++/4.9/chrono:546:14: note:   no known conversion for argument 1 from ‘<type error>’ to ‘const std::chrono::time_point<ripple::NetClock>&’\r\n/usr/include/c++/4.9/chrono:546:14: note: constexpr std::chrono::time_point<ripple::NetClock>::time_point(std::chrono::time_point<ripple::NetClock>&&)\r\n/usr/include/c++/4.9/chrono:546:14: note:   no known conversion for argument 1 from ‘<type error>’ to ‘std::chrono::time_point<ripple::NetClock>&&’\r\nIn file included from src/ripple/unity/app_ledger.cpp:27:0:\r\nsrc/ripple/app/ledger/Ledger.cpp:1272:20: error: ‘class boost::optional<long unsigned int>’ has no member named ‘value_or’\r\n         closeFlags.value_or(0),\r\n                    ^\r\nsrc/ripple/app/ledger/Ledger.cpp:1273:34: error: ‘class boost::optional<long unsigned int>’ has no member named ‘value_or’\r\n         duration{closeResolution.value_or(0)},\r\n                                  ^\r\nsrc/ripple/app/ledger/Ledger.cpp:1273:45: error: no matching function for call to ‘std::chrono::duration<unsigned int, std::ratio<1l> >::duration(<brace-enclosed initializer list>)’\r\n         duration{closeResolution.value_or(0)},\r\n                                             ^\r\nsrc/ripple/app/ledger/Ledger.cpp:1273:45: note: candidates are:\r\nIn file included from src/beast/beast/hash/hash_append.h:28:0,\r\n                 from src/ripple/basics/hardened_hash.h:23,\r\n                 from src/ripple/basics/base_uint.h:31,\r\n                 from src/ripple/protocol/Keylet.h:24,\r\n                 from src/ripple/protocol/Indexes.h:23,\r\n                 from src/ripple/protocol/STLedgerEntry.h:23,\r\n                 from src/ripple/ledger/TxMeta.h:23,\r\n                 from src/ripple/app/ledger/Ledger.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedgerTx.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedger.h:23,\r\n                 from src/ripple/app/ledger/AcceptedLedger.cpp:21,\r\n                 from src/ripple/unity/app_ledger.cpp:22:\r\n/usr/include/c++/4.9/chrono:270:14: note: template<class _Rep2, class _Period2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&)\r\n    constexpr duration(const duration<_Rep2, _Period2>& __d)\r\n              ^\r\n/usr/include/c++/4.9/chrono:270:14: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.9/chrono:263:23: note: template<class _Rep2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const _Rep2&)\r\n    constexpr explicit duration(const _Rep2& __rep)\r\n                       ^\r\n/usr/include/c++/4.9/chrono:263:23: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.9/chrono:257:2: note: std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = unsigned int; _Period = std::ratio<1l>]\r\n  duration(const duration&) = default;\r\n  ^\r\n/usr/include/c++/4.9/chrono:257:2: note:   no known conversion for argument 1 from ‘<type error>’ to ‘const std::chrono::duration<unsigned int, std::ratio<1l> >&’\r\n/usr/include/c++/4.9/chrono:252:12: note: constexpr std::chrono::duration<_Rep, _Period>::duration() [with _Rep = unsigned int; _Period = std::ratio<1l>]\r\n  constexpr duration() = default;\r\n            ^\r\n/usr/include/c++/4.9/chrono:252:12: note:   candidate expects 0 arguments, 1 provided\r\nIn file included from src/ripple/unity/app_ledger.cpp:28:0:\r\nsrc/ripple/app/ledger/LedgerHistory.cpp: In member function ‘void ripple::LedgerHistory::builtLedger(const std::shared_ptr<const ripple::Ledger>&, Json::Value)’:\r\nsrc/ripple/app/ledger/LedgerHistory.cpp:440:18: error: ‘class boost::optional<ripple::base_uint<256ul> >’ has no member named ‘emplace’\r\n     entry->built.emplace (hash);\r\n                  ^\r\nsrc/ripple/app/ledger/LedgerHistory.cpp:441:22: error: ‘class boost::optional<Json::Value>’ has no member named ‘emplace’\r\n     entry->consensus.emplace (std::move (consensus));\r\n                      ^\r\nsrc/ripple/app/ledger/LedgerHistory.cpp: In member function ‘void ripple::LedgerHistory::validatedLedger(const std::shared_ptr<const ripple::Ledger>&)’:\r\nsrc/ripple/app/ledger/LedgerHistory.cpp:473:22: error: ‘class boost::optional<ripple::base_uint<256ul> >’ has no member named ‘emplace’\r\n     entry->validated.emplace (hash);\r\n                      ^\r\nIn file included from src/ripple/app/ledger/impl/LedgerConsensusImp.cpp:35:0,\r\n                 from src/ripple/unity/app_ledger.cpp:39:\r\nsrc/ripple/app/misc/TxQ.h: At global scope:\r\nsrc/ripple/app/misc/TxQ.h:362:18: error: ‘iterator_type’ in ‘using FeeMultiSet = class boost::intrusive::multiset<ripple::TxQ::CandidateTxn, boost::intrusive::member_hook<ripple::TxQ::CandidateTxn, boost::intrusive::set_member_hook<>, &ripple::TxQ::CandidateTxn::byFeeListHook>, boost::intrusive::compare<ripple::TxQ::GreaterFee> > {aka class boost::intrusive::multiset<ripple::TxQ::CandidateTxn, boost::intrusive::member_hook<ripple::TxQ::CandidateTxn, boost::intrusive::set_member_hook<>, &ripple::TxQ::CandidateTxn::byFeeListHook>, boost::intrusive::compare<ripple::TxQ::GreaterFee> >}’ does not name a type\r\n     FeeMultiSet::iterator_type erase(FeeMultiSet::const_iterator_type);\r\n                  ^\r\nIn file included from src/ripple/unity/app_ledger.cpp:39:0:\r\nsrc/ripple/app/ledger/impl/LedgerConsensusImp.cpp: In member function ‘virtual void ripple::LedgerConsensusImp::simulate(boost::optional<std::chrono::duration<long int, std::ratio<1l, 1000l> > >)’:\r\nsrc/ripple/app/ledger/impl/LedgerConsensusImp.cpp:928:39: error: ‘class boost::optional<std::chrono::duration<long int, std::ratio<1l, 1000l> > >’ has no member named ‘value_or’\r\n     mCurrentMSeconds = consensusDelay.value_or(100ms);\r\n                                       ^\r\nsrc/ripple/app/ledger/impl/LedgerConsensusImp.cpp: In member function ‘void ripple::LedgerConsensusImp::accept(std::shared_ptr<ripple::SHAMap>)’:\r\nsrc/ripple/app/ledger/impl/LedgerConsensusImp.cpp:1152:19: error: ‘class boost::optional<ripple::Rules>’ has no member named ‘emplace’\r\n             rules.emplace(*lastVal);\r\n                   ^\r\nsrc/ripple/app/ledger/impl/LedgerConsensusImp.cpp:1154:19: error: ‘class boost::optional<ripple::Rules>’ has no member named ‘emplace’\r\n             rules.emplace();\r\n                   ^\r\nIn file included from src/ripple/unity/app_ledger.cpp:27:0:\r\nsrc/ripple/app/ledger/Ledger.cpp: In function ‘std::tuple<std::shared_ptr<ripple::Ledger>, unsigned int, ripple::base_uint<256ul, void> > ripple::loadLedgerHelper(const string&, ripple::Application&)’:\r\nsrc/ripple/app/ledger/Ledger.cpp:1284:1: warning: control reaches end of non-void function [-Wreturn-type]  }  ^\r\nscons: *** [build/gcc.release/src/ripple/unity/app_ledger.o] Error 1\r\nscons: building terminated because of errors.\r\n\r\n\r\n\r\nI have updated boost library to 1.57\r\ngcc version is 4.9.3\r\nUbuntu version is 14.04\r\n"},"comment":{"url":"https://api.github.com/repos/ripple/rippled/issues/comments/221164414","html_url":"https://github.com/ripple/rippled/issues/1712#issuecomment-221164414","issue_url":"https://api.github.com/repos/ripple/rippled/issues/1712","id":221164414,"user":{"login":"yxxyun","id":107192,"avatar_url":"https://avatars.githubusercontent.com/u/107192?v=3","gravatar_id":"","url":"https://api.github.com/users/yxxyun","html_url":"https://github.com/yxxyun","followers_url":"https://api.github.com/users/yxxyun/followers","following_url":"https://api.github.com/users/yxxyun/following{/other_user}","gists_url":"https://api.github.com/users/yxxyun/gists{/gist_id}","starred_url":"https://api.github.com/users/yxxyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yxxyun/subscriptions","organizations_url":"https://api.github.com/users/yxxyun/orgs","repos_url":"https://api.github.com/users/yxxyun/repos","events_url":"https://api.github.com/users/yxxyun/events{/privacy}","received_events_url":"https://api.github.com/users/yxxyun/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T04:36:33Z","updated_at":"2016-05-24T04:36:33Z","body":"Well,I install a fresh ubuntu 14.04 and test again, got same warning.\r\nso I modify the https://github.com/ripple/rippled/blob/release/Builds/Ubuntu/install_rippled_depends_ubuntu.sh#L41 \r\nand add --force-yes\r\nafter install the depends, begin compile, not complete yet, but so far seems good."}}
{"actor":{"display_login":"yxxyun"}}