Boost logo

Boost Users :

Subject: Re: [Boost-users] [context] MinGW support?
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2011-07-23 01:55:46


> Hello,
>
> I would like to play around with the (provisionally accepted) Boost.Context
> library, and I'm wondering: does it support MinGW?
>
> First, I should mention, I am using the source from
> http://ok73.ok.funpic.de/boost.context-0.7.4.zip, but I'm not sure
> whether this is the latest version - the link to the source at
> http://www.boost.org/community/review_schedule.html is broken
> (it points to the Boost Vault, which is down, and I can't find it at
> https://github.com/boost-vault).
>
> I tried to compile it both in 64-bit mode using:
>
> toolset=gcc architecture=x86 instruction-set=yorksfield address-model=64
>
> and in 32-bit mode using:
>
> toolset=gcc architecture=x86 instruction-set=i686 address-model=32
>
> but in both cases I get errors (pasted below).
>
> Am I doing something wrong, or does this library not support MinGW?
> If the latter, is MinGW support planned at some point?

I'm also having problems compiling it on Linux with:
 
toolset=gcc architecture=x86 instruction-set=i686 address-model=32

I get the following errors:
 
gcc.compile.c++ bin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static/protected_stack_posix.o
libs/context/src/protected_stack_posix.cpp: In constructor 'boost::contexts::protected_stack::protected_stack(std::size_t)':
libs/context/src/protected_stack_posix.cpp:61:15: warning: unused variable 'result' [-Wunused-variable]
libs/context/src/protected_stack_posix.cpp: At global scope:
libs/context/src/protected_stack_posix.cpp:76:1: error: prototype for 'boost::contexts::protected_stack::protected_stack(boost::rv<boost::contexts::protected_stack>&)' does not match any in class 'boost::contexts::protected_stack'
./boost/context/protected_stack.hpp:44:5: error: candidates are: boost::contexts::protected_stack::protected_stack(boost::rv<boost::contexts::protected_stack>&)
libs/context/src/protected_stack_posix.cpp:38:1: error: boost::contexts::protected_stack::protected_stack(std::size_t)
libs/context/src/protected_stack_posix.cpp:34:1: error: boost::contexts::protected_stack::protected_stack()
./boost/context/protected_stack.hpp:27:5: error: boost::contexts::protected_stack::protected_stack(boost::contexts::protected_stack&)
libs/context/src/protected_stack_posix.cpp:81:1: error: prototype for 'boost::contexts::protected_stack& boost::contexts::protected_stack::operator=(boost::rv<boost::contexts::protected_stack>&)' does not match any in class 'boost::contexts::protected_stack'
./boost/context/protected_stack.hpp:46:23: error: candidates are: boost::contexts::protected_stack& boost::contexts::protected_stack::operator=(boost::rv<boost::contexts::protected_stack>&)
./boost/context/protected_stack.hpp:27:5: error: boost::contexts::protected_stack& boost::contexts::protected_stack::operator=(boost::contexts::protected_stack&)
    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -march=i686 -m32 -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static/protected_stack_posix.o" "libs/context/src/protected_stack_posix.cpp"
...failed gcc.compile.c++ bin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static/protected_stack_posix.o...
common.mkdir bin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static/asm
gcc.compile.asm bin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static/asm/fcontext_i386_sysv_elf_gas.o
gcc.compile.c++ bin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static/stack_helper_posix.o
libs/context/src/stack_helper_posix.cpp: In function 'rlimit {anonymous}::stacksize_limit_()':
libs/context/src/stack_helper_posix.cpp:27:15: warning: unused variable 'result' [-Wunused-variable]
...skipped <pbin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static>libboost_context.a(clean) for lack of <pbin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static>protected_stack_posix.o...
...skipped <pbin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static>libboost_context.a for lack of <pbin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static>protected_stack_posix.o...
...skipped <pstage/lib>libboost_context.a for lack of <pbin.v2/libs/context/build/gcc-4.6.1/release/address-model-32/architecture-x86/instruction-set-i686/link-static>libboost_context.a...
...failed updating 1 target...
...skipped 3 targets...
...updated 11 targets...

What am I doing wrong?
 
Thanks,
Nate.
                                                


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net