{"action":"created","issue":{"url":"https://api.github.com/repos/emjotde/amunmt/issues/22","repository_url":"https://api.github.com/repos/emjotde/amunmt","labels_url":"https://api.github.com/repos/emjotde/amunmt/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/emjotde/amunmt/issues/22/comments","events_url":"https://api.github.com/repos/emjotde/amunmt/issues/22/events","html_url":"https://github.com/emjotde/amunmt/issues/22","id":201597791,"number":22,"title":"[ 98%] Linking CXX executable ../bin/amun - crash","user":{"login":"mehmedes","id":21199186,"avatar_url":"https://avatars.githubusercontent.com/u/21199186?v=3","gravatar_id":"","url":"https://api.github.com/users/mehmedes","html_url":"https://github.com/mehmedes","followers_url":"https://api.github.com/users/mehmedes/followers","following_url":"https://api.github.com/users/mehmedes/following{/other_user}","gists_url":"https://api.github.com/users/mehmedes/gists{/gist_id}","starred_url":"https://api.github.com/users/mehmedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehmedes/subscriptions","organizations_url":"https://api.github.com/users/mehmedes/orgs","repos_url":"https://api.github.com/users/mehmedes/repos","events_url":"https://api.github.com/users/mehmedes/events{/privacy}","received_events_url":"https://api.github.com/users/mehmedes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-01-18T15:01:58Z","updated_at":"2017-01-20T00:36:08Z","closed_at":null,"body":"Make crashes when linking CXX executable ../bin/amun\r\n\r\nI use CMake 3.5.1, GCC/G++ 4.9, Boost 1.54\r\n\r\nDo you have any idea what this could be related to? I'm very sorry for this newbie question!\r\n\r\n[ 98%] Linking CXX executable ../bin/amun\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp: In function ‘History Tran                                     slationTask(const string&, size_t)’:\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:35:50: error: no matching                                      function for call to ‘Search::Decode(Sentence)’\r\n   return search->Decode(Sentence(taskCounter, in));\r\n                                                  ^\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:35:50: note: candidate is:\r\nIn file included from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:0                                     :\r\n/home/sariyildiznureddin/amunmt/src/./common/search.h:14:34: note: boost::shared                                     _ptr<Histories> Search::Decode(const Sentences&)\r\n     boost::shared_ptr<Histories> Decode(const Sentences& sentences);\r\n                                  ^\r\n/home/sariyildiznureddin/amunmt/src/./common/search.h:14:34: note:   no known co                                     nversion for argument 1 from ‘Sentence’ to ‘const Sentences&’\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h: In lambda function:\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: error: ‘History::Hi                                     story(const History&)’ is private\r\n     History(const History &) = delete;\r\n     ^\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:65:48: error: within this                                      context\r\n             [=]{ return TranslationTask(s, i); }\r\n                                                ^\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:65:48: error: use of delet                                     ed function ‘History::History(const History&)’\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: note: declared here\r\n     History(const History &) = delete;\r\n     ^\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp: In function ‘boost::pytho                                     n::list translate(boost::python::list&)’:\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:74:44: error: no matching                                      function for call to ‘Printer(History, size_t, std::stringstream&)’\r\n     Printer(result.get(), lineCounter++, ss);\r\n                                            ^\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:74:44: note: candidates ar                                     e:\r\nIn file included from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:12:0                                     :\r\n/home/sariyildiznureddin/amunmt/src/./common/printer.h:12:6: note: template<clas                                     s OStream> void Printer(const History&, OStream&)\r\n void Printer(const History& history, OStream& out) {\r\n      ^\r\n/home/sariyildiznureddin/amunmt/src/./common/printer.h:12:6: note:   template ar                                     gument deduction/substitution failed:\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:74:44: note:   candidate e                                     xpects 2 arguments, 3 provided\r\n     Printer(result.get(), lineCounter++, ss);\r\n                                            ^\r\nIn file included from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:12:0                                     :\r\n/home/sariyildiznureddin/amunmt/src/./common/printer.h:65:6: note: template<clas                                     s OStream> void Printer(const Histories&, OStream&)\r\n void Printer(const Histories& histories, OStream& out) {\r\n      ^\r\n/home/sariyildiznureddin/amunmt/src/./common/printer.h:65:6: note:   template ar                                     gument deduction/substitution failed:\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:74:44: note:   cannot conv                                     ert ‘std::future<_Res>::get() [with _Res = History]()’ (type ‘History’) to type                                      ‘const Histories&’\r\n     Printer(result.get(), lineCounter++, ss);\r\n                                            ^\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/usr/include/c++/4.9/future: In instantiation of ‘_Res std::future<_Res>::get()                                      [with _Res = History]’:\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:74:24:   required from her                                     e\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: error: ‘History::Hi                                     story(const History&)’ is private\r\n     History(const History &) = delete;\r\n     ^\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/threadpool.h:                                     35:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:10:\r\n/usr/include/c++/4.9/future:700:58: error: within this context\r\n         return std::move(this->_M_get_result()._M_value());\r\n                                                          ^\r\n/usr/include/c++/4.9/future:700:58: error: use of deleted function ‘History::His                                     tory(const History&)’\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: note: declared here\r\n     History(const History &) = delete;\r\n     ^\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/threadpool.h:                                     35:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:10:\r\n/usr/include/c++/4.9/future: In instantiation of ‘static std::__future_base::_Ta                                     sk_setter<_Res_ptr> std::__future_base::_S_task_setter(_Res_ptr&, _BoundFn&&) [w                                     ith _Res_ptr = std::unique_ptr<std::__future_base::_Result<History>, std::__futu                                     re_base::_Result_base::_Deleter>; _BoundFn = std::_Bind_simple<std::reference_wr                                     apper<std::_Bind<translate(boost::python::list&)::<lambda()>()> >()>; typename _                                     Res_ptr::element_type::result_type = History]’:\r\n/usr/include/c++/4.9/future:1318:70:   required from ‘void std::__future_base::_                                     Task_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run(_Args ...) [with _Fn = std::_Bi                                     nd<translate(boost::python::list&)::<lambda()>()>; _Alloc = std::allocator<int>;                                      _Res = History; _Args = {}]’\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:85:1:   required from here\r\n/usr/include/c++/4.9/future:539:57: error: could not convert ‘std::ref(_Tp&) [wi                                     th _Tp = std::_Bind_simple<std::reference_wrapper<std::_Bind<translate(boost::py                                     thon::list&)::<lambda()>()> >()>]()’ from ‘std::reference_wrapper<std::_Bind_sim                                     ple<std::reference_wrapper<std::_Bind<translate(boost::python::list&)::<lambda()                                     >()> >()> >’ to ‘std::function<History()>’\r\n  return _Task_setter<_Res_ptr>{ __ptr, std::ref(__call) };\r\n                                                         ^\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/usr/include/c++/4.9/functional: In instantiation of ‘_Res std::function<_Res(_A                                     rgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = History; _ArgTypes =                                      {}]’:\r\n/usr/include/c++/4.9/future:1241:6:   required from ‘_Ptr_type std::__future_bas                                     e::_Task_setter<_Res_ptr, _Res>::operator()() [with _Ptr_type = std::unique_ptr<                                     std::__future_base::_Result<History>, std::__future_base::_Result_base::_Deleter                                     >; _Res = History]’\r\n/usr/include/c++/4.9/functional:2024:10:   required from ‘static _Res std::_Func                                     tion_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _A                                     rgTypes ...) [with _Res = std::unique_ptr<std::__future_base::_Result_base, std:                                     :__future_base::_Result_base::_Deleter>; _Functor = std::__future_base::_Task_se                                     tter<std::unique_ptr<std::__future_base::_Result<History>, std::__future_base::_                                     Result_base::_Deleter>, History>; _ArgTypes = {}]’\r\n/usr/include/c++/4.9/functional:2428:19:   required from ‘std::function<_Res(_Ar                                     gTypes ...)>::function(_Functor) [with _Functor = std::__future_base::_Task_sett                                     er<std::unique_ptr<std::__future_base::_Result<History>, std::__future_base::_Re                                     sult_base::_Deleter>, History>; <template-parameter-2-2> = void; _Res = std::uni                                     que_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Del                                     eter>; _ArgTypes = {}]’\r\n/usr/include/c++/4.9/future:1319:2:   required from ‘void std::__future_base::_T                                     ask_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run(_Args ...) [with _Fn = std::_Bin                                     d<translate(boost::python::list&)::<lambda()>()>; _Alloc = std::allocator<int>;                                      _Res = History; _Args = {}]’\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:85:1:   required from here\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: error: ‘History::Hi                                     story(const History&)’ is private\r\n     History(const History &) = delete;\r\n     ^\r\nIn file included from /usr/include/boost/system/error_code.hpp:23:0,\r\n                 from /usr/include/boost/chrono/detail/system.hpp:12,\r\n                 from /usr/include/boost/chrono/system_clocks.hpp:64,\r\n                 from /usr/include/boost/chrono/chrono.hpp:13,\r\n                 from /usr/include/boost/timer/timer.hpp:14,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:4:\r\n/usr/include/c++/4.9/functional:2440:71: error: within this context\r\n       return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...);\r\n                                                                       ^\r\n/usr/include/c++/4.9/functional:2440:71: error: use of deleted function ‘History                                     ::History(const History&)’\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: note: declared here\r\n     History(const History &) = delete;\r\n     ^\r\n/usr/include/c++/4.9/future: In instantiation of ‘void std::__future_base::_Resu                                     lt<_Res>::_M_set(_Res&&) [with _Res = History]’:\r\n/usr/include/c++/4.9/future:1241:6:   required from ‘_Ptr_type std::__future_bas                                     e::_Task_setter<_Res_ptr, _Res>::operator()() [with _Ptr_type = std::unique_ptr<                                     std::__future_base::_Result<History>, std::__future_base::_Result_base::_Deleter                                     >; _Res = History]’\r\n/usr/include/c++/4.9/functional:2024:10:   required from ‘static _Res std::_Func                                     tion_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _A                                     rgTypes ...) [with _Res = std::unique_ptr<std::__future_base::_Result_base, std:                                     :__future_base::_Result_base::_Deleter>; _Functor = std::__future_base::_Task_se                                     tter<std::unique_ptr<std::__future_base::_Result<History>, std::__future_base::_                                     Result_base::_Deleter>, History>; _ArgTypes = {}]’\r\n/usr/include/c++/4.9/functional:2428:19:   required from ‘std::function<_Res(_Ar                                     gTypes ...)>::function(_Functor) [with _Functor = std::__future_base::_Task_sett                                     er<std::unique_ptr<std::__future_base::_Result<History>, std::__future_base::_Re                                     sult_base::_Deleter>, History>; <template-parameter-2-2> = void; _Res = std::uni                                     que_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Del                                     eter>; _ArgTypes = {}]’\r\n/usr/include/c++/4.9/future:1319:2:   required from ‘void std::__future_base::_T                                     ask_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run(_Args ...) [with _Fn = std::_Bin                                     d<translate(boost::python::list&)::<lambda()>()>; _Alloc = std::allocator<int>;                                      _Res = History; _Args = {}]’\r\n/home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:85:1:   required from here\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: error: ‘History::Hi                                     story(const History&)’ is private\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/threadpool.h:                                     35:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:10:\r\n/usr/include/c++/4.9/future:238:4: error: within this context\r\n    ::new (_M_storage._M_addr()) _Res(std::move(__res));\r\n    ^\r\n/usr/include/c++/4.9/future:238:4: error: use of deleted function ‘History::Hist                                     ory(const History&)’\r\nIn file included from /home/sariyildiznureddin/amunmt/src/./common/search.h:8:0,\r\n                 from /home/sariyildiznureddin/amunmt/src/python/amunmt.cpp:11:\r\n/home/sariyildiznureddin/amunmt/src/./common/history.h:20:5: note: declared here\r\n     History(const History &) = delete;\r\n     ^\r\nmake[2]: *** [src/CMakeFiles/amunmt.dir/python/amunmt.cpp.o] Error 1\r\nmake[1]: *** [src/CMakeFiles/amunmt.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n/tmp/ccwELx9c.ltrans1.ltrans.o: In function `std::_Function_handler<void (), std                                     ::reference_wrapper<std::_Bind_simple<std::reference_wrapper<std::_Bind<main::{l                                     ambda()#2} ()> > ()> > >::_M_invoke(std::_Any_data const&) [clone .lto_priv.954]                                     ':\r\n<artificial>:(.text+0x2ad4): undefined reference to `TranslationTask(boost::shar                                     ed_ptr<Sentences>, unsigned long, unsigned long)'\r\n/tmp/ccwELx9c.ltrans1.ltrans.o: In function `std::_Function_handler<void (), std                                     ::reference_wrapper<std::_Bind_simple<std::reference_wrapper<std::_Bind<main::{l                                     ambda()#1} ()> > ()> > >::_M_invoke(std::_Any_data const&) [clone .lto_priv.952]                                     ':\r\n<artificial>:(.text+0x2b84): undefined reference to `TranslationTask(boost::shar                                     ed_ptr<Sentences>, unsigned long, unsigned long)'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [bin/amun] Error 1\r\nmake[1]: *** [src/CMakeFiles/amun.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n"},"comment":{"url":"https://api.github.com/repos/emjotde/amunmt/issues/comments/273943103","html_url":"https://github.com/emjotde/amunmt/issues/22#issuecomment-273943103","issue_url":"https://api.github.com/repos/emjotde/amunmt/issues/22","id":273943103,"user":{"login":"mehmedes","id":21199186,"avatar_url":"https://avatars.githubusercontent.com/u/21199186?v=3","gravatar_id":"","url":"https://api.github.com/users/mehmedes","html_url":"https://github.com/mehmedes","followers_url":"https://api.github.com/users/mehmedes/followers","following_url":"https://api.github.com/users/mehmedes/following{/other_user}","gists_url":"https://api.github.com/users/mehmedes/gists{/gist_id}","starred_url":"https://api.github.com/users/mehmedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehmedes/subscriptions","organizations_url":"https://api.github.com/users/mehmedes/orgs","repos_url":"https://api.github.com/users/mehmedes/repos","events_url":"https://api.github.com/users/mehmedes/events{/privacy}","received_events_url":"https://api.github.com/users/mehmedes/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T00:36:08Z","updated_at":"2017-01-20T00:36:08Z","body":"Did as instructed but still:\r\n\r\n\r\n[ 81%] Linking CXX executable ../bin/amun\r\nCMakeFiles/amun.dir/common/decoder_main.cpp.o: In function `std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::_Bind_simple<std::reference_wrapper<std::_Bind<main::{lambda()#2} ()> > ()>, void> >::_M_invoke(std::_Any_data const&)':\r\ndecoder_main.cpp:(.text+0x9c9): undefined reference to `TranslationTask(God&, boost::shared_ptr<Sentences>, unsigned long, unsigned long)'\r\nCMakeFiles/amun.dir/common/decoder_main.cpp.o: In function `std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::_Bind_simple<std::reference_wrapper<std::_Bind<main::{lambda()#1} ()> > ()>, void> >::_M_invoke(std::_Any_data const&)':\r\ndecoder_main.cpp:(.text+0xb09): undefined reference to `TranslationTask(God&, boost::shared_ptr<Sentences>, unsigned long, unsigned long)'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [bin/amun] Error 1\r\nmake[1]: *** [src/CMakeFiles/amun.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n"}}
{"actor":{"display_login":"mehmedes"}}