Opened 6 years ago

Closed 6 years ago

#12605 closed Bugs (invalid)

libraries/fc/src/thread/contet.hpp:215:5 error: no type named 'fcontext_t' in namespace 'boost::c'; did you mean 'context'?

Reported by: thungp@… Owned by: olli
Milestone: To Be Determined Component: context
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:

Description

reference: https://www.youtube.com/watch?v=7ETrFkZ9LM0

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

on antergos antergos-2016.10.23-x86_64.iso

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

then ran ninja to build the software. Got the following errors:

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."

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'?

bc::fcontext_t my_context; ~ context

libraries/fc/src/thread/context.hpp:43:10: note: 'context' declared here

struct context {

libraries/fc/src/thread/context.hpp:69:23: error: no member named 'make_fcontext' in namespace 'boost::context'

my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf);

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'?

bc::jump_fcontext( &prev->my_context, next->my_context, 0 ); boost::context::detail::jump_fcontext

/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);

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'?

bc::jump_fcontext( &prev->my_context, next->my_context, (intptr_t)this ); boost::context::detail::jump_fcontext

/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);

1 warning and 4 errors generated. [33/303] 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."

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'?

bc::fcontext_t my_context; ~ context

libraries/fc/src/thread/context.hpp:43:10: note: 'context' declared here

struct context {

libraries/fc/src/thread/context.hpp:69:23: error: no member named 'make_fcontext' in namespace 'boost::context'

my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf);

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'?

bc::jump_fcontext( &prev->my_context, next->my_context, 0 ); boost::context::detail::jump_fcontext

/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);

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'?

bc::jump_fcontext( &prev->my_context, next->my_context, (intptr_t)this ); boost::context::detail::jump_fcontext

/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);

libraries/fc/src/thread/thread_specific.cpp:25:32: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]

(*specific_data)[slot] = std::move(detail::specific_data_info(new_value, cleanup));

libraries/fc/src/thread/thread_specific.cpp:25:32: note: remove std::move call here

(*specific_data)[slot] = std::move(detail::specific_data_info(new_value, cleanup));

~ ~

2 warnings and 4 errors generated. ninja: build stopped: subcommand failed.

Change History (2)

comment:1 by Kohei Takahashi, 6 years ago

Component: Nonecontext
Owner: set to olli

comment:2 by olli, 6 years ago

Resolution: invalid
Status: newclosed

uses old version - fcontext API now private

Last edited 6 years ago by olli (previous) (diff)
Note: See TracTickets for help on using tickets.