Boost C++ Libraries: Ticket #12605: libraries/fc/src/thread/contet.hpp:215:5 error: no type named 'fcontext_t' in namespace 'boost::c'; did you mean 'context'? https://svn.boost.org/trac10/ticket/12605 <p> reference: <a class="ext-link" href="https://www.youtube.com/watch?v=7ETrFkZ9LM0"><span class="icon">​</span>https://www.youtube.com/watch?v=7ETrFkZ9LM0</a> </p> <p> I installed the following packages (latest as of 11/13/2016): packages (10) boost-libs-1.62.0-3 c-ares-1.12.0-1 http-parser-2.7.1-1 libuv-1.10.0-1 nodejs-7.1.0-1 semver-5.3.0-1 boost-1.62.0-3 clang-3.9.0-1 ninja-1.7.1-1 npm-3.10.9-1 </p> <p> on antergos antergos-2016.10.23-x86_64.iso </p> <p> I configured graphene thungp@blockchain1 graphene]$ cmake -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/graphene </p> <p> then ran ninja to build the software. Got the following errors: </p> <p> FAILED: libraries/fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o /usr/bin/clang++ -DHAVE_READLINE -Ilibraries/fc/include -Ilibraries/fc -Ilibraries/fc/vendor/boost_1.51/include -Ilibraries/fc/vendor/cyoencode-1.0.2/src -Ilibraries/fc/vendor/udt4/src -Ilibraries/fc/vendor/websocketpp -Ilibraries/fc/vendor/secp256k1-zkp -isystem libraries/fc/vendor/secp256k1-zkp/include -std=c++11 -Wall -fcolor-diagnostics -std=c++11 -Wall -fnon-call-exceptions -DWEBSOCKETPP_STRICT_MASKING -DBOOST_ASIO_HAS_STD_CHRONO -g -MD -MT libraries/fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o -MF libraries/fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o.d -o libraries/fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o -c libraries/fc/src/thread/thread.cpp In file included from libraries/fc/src/thread/thread.cpp:5: In file included from libraries/fc/src/thread/thread_d.hpp:5: In file included from libraries/fc/src/thread/context.hpp:10: In file included from /usr/include/boost/coroutine/stack_context.hpp:14: /usr/include/boost/coroutine/detail/config.hpp:17:4: warning: "Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING." [-W#warnings] # warning "Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING." </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> In file included from libraries/fc/src/thread/thread.cpp:5: In file included from libraries/fc/src/thread/thread_d.hpp:5: libraries/fc/src/thread/context.hpp:215:5: error: no type named 'fcontext_t' in namespace 'boost::context'; did you mean 'context'? </p> <blockquote> <p> bc::fcontext_t my_context; <sup><del></del><del></del><del></del>~ context </sup></p> </blockquote> <p> libraries/fc/src/thread/context.hpp:43:10: note: 'context' declared here </p> <blockquote> <p> struct context { </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> libraries/fc/src/thread/context.hpp:69:23: error: no member named 'make_fcontext' in namespace 'boost::context' </p> <blockquote> <p> my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf); </p> <blockquote> <p> <del></del><sup> </sup></p> </blockquote> </blockquote> <p> In file included from libraries/fc/src/thread/thread.cpp:5: libraries/fc/src/thread/thread_d.hpp:401:17: error: no member named 'jump_fcontext' in namespace 'boost::context'; did you mean 'boost::context::detail::jump_fcontext'? </p> <blockquote> <p> bc::jump_fcontext( &amp;prev-&gt;my_context, next-&gt;my_context, 0 ); <sup><del></del><del></del><del></del><del></del> boost::context::detail::jump_fcontext </sup></p> </blockquote> <p> /usr/include/boost/context/detail/fcontext.hpp:31:35: note: 'boost::context::detail::jump_fcontext' declared here transfer_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t const to, void * vp); </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> In file included from libraries/fc/src/thread/thread.cpp:5: libraries/fc/src/thread/thread_d.hpp:443:17: error: no member named 'jump_fcontext' in namespace 'boost::context'; did you mean 'boost::context::detail::jump_fcontext'? </p> <blockquote> <p> bc::jump_fcontext( &amp;prev-&gt;my_context, next-&gt;my_context, (intptr_t)this ); <sup><del></del><del></del><del></del><del></del> boost::context::detail::jump_fcontext </sup></p> </blockquote> <p> /usr/include/boost/context/detail/fcontext.hpp:31:35: note: 'boost::context::detail::jump_fcontext' declared here transfer_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t const to, void * vp); </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> 1 warning and 4 errors generated. <a class="changeset" href="https://svn.boost.org/trac10/changeset/33/303" title="*** empty log message *** ">[33/303]</a> Building CXX object libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o FAILED: libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o /usr/bin/clang++ -DHAVE_READLINE -Ilibraries/fc/include -Ilibraries/fc -Ilibraries/fc/vendor/boost_1.51/include -Ilibraries/fc/vendor/cyoencode-1.0.2/src -Ilibraries/fc/vendor/udt4/src -Ilibraries/fc/vendor/websocketpp -Ilibraries/fc/vendor/secp256k1-zkp -isystem libraries/fc/vendor/secp256k1-zkp/include -std=c++11 -Wall -fcolor-diagnostics -std=c++11 -Wall -fnon-call-exceptions -DWEBSOCKETPP_STRICT_MASKING -DBOOST_ASIO_HAS_STD_CHRONO -g -MD -MT libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o -MF libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o.d -o libraries/fc/CMakeFiles/fc.dir/src/thread/thread_specific.cpp.o -c libraries/fc/src/thread/thread_specific.cpp In file included from libraries/fc/src/thread/thread_specific.cpp:3: In file included from libraries/fc/src/thread/thread_d.hpp:5: In file included from libraries/fc/src/thread/context.hpp:10: In file included from /usr/include/boost/coroutine/stack_context.hpp:14: /usr/include/boost/coroutine/detail/config.hpp:17:4: warning: "Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING." [-W#warnings] # warning "Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING." </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> In file included from libraries/fc/src/thread/thread_specific.cpp:3: In file included from libraries/fc/src/thread/thread_d.hpp:5: libraries/fc/src/thread/context.hpp:215:5: error: no type named 'fcontext_t' in namespace 'boost::context'; did you mean 'context'? </p> <blockquote> <p> bc::fcontext_t my_context; <sup><del></del><del></del><del></del>~ context </sup></p> </blockquote> <p> libraries/fc/src/thread/context.hpp:43:10: note: 'context' declared here </p> <blockquote> <p> struct context { </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> libraries/fc/src/thread/context.hpp:69:23: error: no member named 'make_fcontext' in namespace 'boost::context' </p> <blockquote> <p> my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf); </p> <blockquote> <p> <del></del><sup> </sup></p> </blockquote> </blockquote> <p> In file included from libraries/fc/src/thread/thread_specific.cpp:3: libraries/fc/src/thread/thread_d.hpp:401:17: error: no member named 'jump_fcontext' in namespace 'boost::context'; did you mean 'boost::context::detail::jump_fcontext'? </p> <blockquote> <p> bc::jump_fcontext( &amp;prev-&gt;my_context, next-&gt;my_context, 0 ); <sup><del></del><del></del><del></del><del></del> boost::context::detail::jump_fcontext </sup></p> </blockquote> <p> /usr/include/boost/context/detail/fcontext.hpp:31:35: note: 'boost::context::detail::jump_fcontext' declared here transfer_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t const to, void * vp); </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> In file included from libraries/fc/src/thread/thread_specific.cpp:3: libraries/fc/src/thread/thread_d.hpp:443:17: error: no member named 'jump_fcontext' in namespace 'boost::context'; did you mean 'boost::context::detail::jump_fcontext'? </p> <blockquote> <p> bc::jump_fcontext( &amp;prev-&gt;my_context, next-&gt;my_context, (intptr_t)this ); <sup><del></del><del></del><del></del><del></del> boost::context::detail::jump_fcontext </sup></p> </blockquote> <p> /usr/include/boost/context/detail/fcontext.hpp:31:35: note: 'boost::context::detail::jump_fcontext' declared here transfer_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t const to, void * vp); </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> libraries/fc/src/thread/thread_specific.cpp:25:32: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] </p> <blockquote> <p> (*specific_data)[slot] = std::move(detail::specific_data_info(new_value, cleanup)); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> libraries/fc/src/thread/thread_specific.cpp:25:32: note: remove std::move call here </p> <blockquote> <p> (*specific_data)[slot] = std::move(detail::specific_data_info(new_value, cleanup)); </p> <blockquote> <p> <sup><del></del><del></del>~ ~ </sup></p> </blockquote> </blockquote> <p> 2 warnings and 4 errors generated. ninja: build stopped: subcommand failed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12605 Trac 1.4.3 Kohei Takahashi Sat, 19 Nov 2016 14:27:21 GMT component changed; owner set https://svn.boost.org/trac10/ticket/12605#comment:1 https://svn.boost.org/trac10/ticket/12605#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">olli</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">context</span> </li> </ul> Ticket olli Sat, 19 Nov 2016 15:39:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12605#comment:2 https://svn.boost.org/trac10/ticket/12605#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> uses old version - fcontext API now private </p> Ticket