[context] build issue with context-0.3.5

Hi Oliver, First of all, thanks for updating your context library. I might be wrong, but i think yours is currently the only supported coroutine library for c++ which is a candidate for boost. So kudos to you for that effort that you are doing. I'm having a build error on the 0.3.5; (this is on ubuntu linux x86 platform) $ bjam -a -toolset=gcc cxxflags=-std=c++0x architecture=x86 instruction-set=i686 --with-context nBuilding the Boost C++ Libraries.nn ...patience... ...found 230 targets... ...updating 8 targets... gcc.compile.c++ bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi/context_uc_posix.o In file included from libs/context/src/context_uc_posix.cpp:9: ./boost/context/context.hpp:24: error: variable ‘boost::contexts::BOOST_SYMBOL_EXPORT boost::contexts::context’ has initializer but incomplete type ./boost/context/context.hpp:26: error: expected primary-expression before ‘private’ ./boost/context/context.hpp:26: error: expected ‘}’ before ‘private’ ./boost/context/context.hpp:26: error: expected ‘,’ or ‘;’ before ‘private’ ./boost/context/context.hpp:27: error: expected unqualified-id before ‘private’ ./boost/context/context.hpp:27: error: expected constructor, destructor, or type conversion before ‘&’ token ./boost/context/context.hpp:32: error: expected constructor, destructor, or type conversion before ‘;’ token ./boost/context/context.hpp:34: error: expected unqualified-id before ‘public’ ./boost/context/context.hpp:41: error: typedef ‘boost::contexts::unspecified_bool_type’ is initialized (use decltype instead) ./boost/context/context.hpp:41: error: expected primary-expression before ‘)’ token ./boost/context/context.hpp:45: error: variable or field ‘unspecified_bool’ declared void ./boost/context/context.hpp:45: error: expected primary-expression before ‘)’ token ./boost/context/context.hpp:47: error: ‘context’ does not name a type ./boost/context/context.hpp:49: error: ‘context’ does not name a type ./boost/context/context.hpp:52: error: ‘context’ does not name a type ./boost/context/context.hpp:55: error: expected constructor, destructor, or type conversion before ‘;’ token ./boost/context/context.hpp:57: error: expected class-name before ‘(’ token ./boost/context/context.hpp:59: error: expected constructor, destructor, or type conversion before ‘(’ token ./boost/context/context.hpp:61: error: expected constructor, destructor, or type conversion before ‘&’ token ./boost/context/context.hpp:63: error: variable or field ‘jump_to’ declared void ./boost/context/context.hpp:63: error: ‘other’ was not declared in this scope ./boost/context/context.hpp:65: error: variable or field ‘swap’ declared void ./boost/context/context.hpp:65: error: ‘other’ was not declared in this scope ./boost/context/context.hpp:67: error: non-member function ‘bool boost::contexts::operator!()’ cannot have cv-qualifier ./boost/context/context.hpp:67: error: ‘bool boost::contexts::operator!()’ must have an argument of class or enumerated type ./boost/context/context.hpp:69: error: expected type-specifier before ‘unspecified_bool_type’ ./boost/context/context.hpp:73: error: variable or field ‘swap’ declared void ./boost/context/context.hpp:73: error: ‘context’ was not declared in this scope ./boost/context/context.hpp:73: error: ‘l’ was not declared in this scope ./boost/context/context.hpp:73: error: ‘context’ was not declared in this scope ./boost/context/context.hpp:73: error: ‘r’ was not declared in this scope ./boost/context/context.hpp:78: error: ‘contexts’ has not been declared ./boost/context/context.hpp:80: error: expected declaration before ‘}’ token ./boost/context/context.hpp:43: warning: ‘boost::contexts::default_stacksize’ defined but not used "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -march=i686 -pthread -fPIC -std=c++0x -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi/context_uc_posix.o" "libs/context/src/context_uc_posix.cpp" ...failed gcc.compile.c++ bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi/context_uc_posix.o... ...skipped <pbin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi>libboost_context.so.1.43.0 for lack of <pbin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi>context_uc_posix.o... ...skipped <pstage/lib>libboost_context.so.1.43.0 for lack of <pbin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi>libboost_context.so.1.43.0... ...skipped <pstage/lib>libboost_context.so for lack of <pstage/lib>libboost_context.so.1.43.0... gcc.compile.c++ bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/link-static/threading-multi/context_uc_posix.o gcc.archive bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/link-static/threading-multi/libboost_context.a common.copy stage/lib/libboost_context.a ...failed updating 1 target... ...skipped 3 targets... ...updated 4 targets... - Charles Quarra

Hello Charles, I don't get errors if I exec 'bjam -a toolset=gcc cxxflags=-std=c++0x architecture=x86 instruction-set=i686 --with-context' in <boost-root>. My system: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc: 4.4.5 What system are you driving? What happens if you call 'bjam -a toolset=gcc cxxflags=-std=c++0x --with-context' (which works for me too). Oliver -------- Original-Nachricht --------
Datum: Sun, 16 Jan 2011 14:28:30 -0800 (PST) Von: Charlls Quarra <charlls_quarra@yahoo.com.ar> An: boost@lists.boost.org Betreff: [boost] [context] build issue with context-0.3.5
Hi Oliver,
First of all, thanks for updating your context library. I might be wrong, but i think yours is currently the only supported coroutine library for c++ which is a candidate for boost. So kudos to you for that effort that you are doing.
I'm having a build error on the 0.3.5; (this is on ubuntu linux x86 platform)
$ bjam -a -toolset=gcc cxxflags=-std=c++0x architecture=x86 instruction-set=i686 --with-context nBuilding the Boost C++ Libraries.nn ...patience... ...found 230 targets... ...updating 8 targets... gcc.compile.c++ bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi/context_uc_posix.o In file included from libs/context/src/context_uc_posix.cpp:9: ./boost/context/context.hpp:24: error: variable ‘boost::contexts::BOOST_SYMBOL_EXPORT boost::contexts::context’ has initializer but incomplete type ./boost/context/context.hpp:26: error: expected primary-expression before ‘private’ ./boost/context/context.hpp:26: error: expected ‘}’ before ‘private’ ./boost/context/context.hpp:26: error: expected ‘,’ or ‘;’ before ‘private’ ./boost/context/context.hpp:27: error: expected unqualified-id before ‘private’ ./boost/context/context.hpp:27: error: expected constructor, destructor, or type conversion before ‘&’ token ./boost/context/context.hpp:32: error: expected constructor, destructor, or type conversion before ‘;’ token ./boost/context/context.hpp:34: error: expected unqualified-id before ‘public’ ./boost/context/context.hpp:41: error: typedef ‘boost::contexts::unspecified_bool_type’ is initialized (use decltype instead) ./boost/context/context.hpp:41: error: expected primary-expression before ‘)’ token ./boost/context/context.hpp:45: error: variable or field ‘unspecified_bool’ declared void ./boost/context/context.hpp:45: error: expected primary-expression before ‘)’ token ./boost/context/context.hpp:47: error: ‘context’ does not name a type ./boost/context/context.hpp:49: error: ‘context’ does not name a type ./boost/context/context.hpp:52: error: ‘context’ does not name a type ./boost/context/context.hpp:55: error: expected constructor, destructor, or type conversion before ‘;’ token ./boost/context/context.hpp:57: error: expected class-name before ‘(’ token ./boost/context/context.hpp:59: error: expected constructor, destructor, or type conversion before ‘(’ token ./boost/context/context.hpp:61: error: expected constructor, destructor, or type conversion before ‘&’ token ./boost/context/context.hpp:63: error: variable or field ‘jump_to’ declared void ./boost/context/context.hpp:63: error: ‘other’ was not declared in this scope ./boost/context/context.hpp:65: error: variable or field ‘swap’ declared void ./boost/context/context.hpp:65: error: ‘other’ was not declared in this scope ./boost/context/context.hpp:67: error: non-member function ‘bool boost::contexts::operator!()’ cannot have cv-qualifier ./boost/context/context.hpp:67: error: ‘bool boost::contexts::operator!()’ must have an argument of class or enumerated type ./boost/context/context.hpp:69: error: expected type-specifier before ‘unspecified_bool_type’ ./boost/context/context.hpp:73: error: variable or field ‘swap’ declared void ./boost/context/context.hpp:73: error: ‘context’ was not declared in this scope ./boost/context/context.hpp:73: error: ‘l’ was not declared in this scope ./boost/context/context.hpp:73: error: ‘context’ was not declared in this scope ./boost/context/context.hpp:73: error: ‘r’ was not declared in this scope ./boost/context/context.hpp:78: error: ‘contexts’ has not been declared ./boost/context/context.hpp:80: error: expected declaration before ‘}’ token ./boost/context/context.hpp:43: warning: ‘boost::contexts::default_stacksize’ defined but not used
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -march=i686 -pthread -fPIC -std=c++0x -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi/context_uc_posix.o" "libs/context/src/context_uc_posix.cpp"
...failed gcc.compile.c++ bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi/context_uc_posix.o... ...skipped <pbin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi>libboost_context.so.1.43.0 for lack of <pbin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi>context_uc_posix.o... ...skipped <pstage/lib>libboost_context.so.1.43.0 for lack of <pbin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/threading-multi>libboost_context.so.1.43.0... ...skipped <pstage/lib>libboost_context.so for lack of <pstage/lib>libboost_context.so.1.43.0... gcc.compile.c++ bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/link-static/threading-multi/context_uc_posix.o gcc.archive bin.v2/libs/context/build/gcc-4.4.5/release/architecture-x86/instruction-set-i686/link-static/threading-multi/libboost_context.a common.copy stage/lib/libboost_context.a ...failed updating 1 target... ...skipped 3 targets... ...updated 4 targets...
- Charles Quarra
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail

--- El lun 17-ene-11, Oliver Kowalke <k-oli@gmx.de> escribió:
De: Oliver Kowalke <k-oli@gmx.de> Asunto: Re: [boost] [context] build issue with context-0.3.5 Para: boost@lists.boost.org Fecha: lunes, 17 de enero de 2011, 3:36 Hello Charles,
I don't get errors if I exec 'bjam -a toolset=gcc cxxflags=-std=c++0x architecture=x86 instruction-set=i686 --with-context' in <boost-root>.
My system: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc: 4.4.5
What system are you driving?
Hi Oliver, Sorry for the delay replying, been a crazy week in RL ok probably my bad, i was trying to build with boost 1.43, updated to 0.4.1 and it works fine with 1.45 -Charles
participants (2)
-
Charlls Quarra
-
Oliver Kowalke