Boost logo

Boost :

Subject: Re: [boost] [context] build issue with context-0.3.5
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2011-01-17 02:36:42


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_at_[hidden]>
> An: boost_at_[hidden]
> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk