boost thread rev 77005 fails on cygwin due SIGSTKSZ not defined

All, Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform: cc.compile.c++ bin.v2/libs/context/build/gcc-4.5.3/release/threading-multi/stack_utils_posix.o libs\context\src\stack_utils_posix.cpp: In function ‘rlimit<unnamed>::stacksize_limit_()’: libs\context\src\stack_utils_posix.cpp:27:15: warning: unused variable ‘result’ libs\context\src\stack_utils_posix.cpp: In function ‘size_t boost::contexts::minimum_stacksize()’: libs\context\src\stack_utils_posix.cpp:52:10: error: ‘SIGSTKSZ’ was not declared in this scope libs\context\src\stack_utils_posix.cpp:52:20: warning: control reaches end of non-void function Any suggested workarounds? Thank you, -- Bernd

On Feb 13, 2012, at 1:00 PM, Bernd Prager wrote:
All,
Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform:
Oops, my bad. Let me get this fixed. Apologies.. -- Noel
cc.compile.c++ bin.v2/libs/context/build/gcc-4.5.3/release/threading- multi/stack_utils_posix.o libs\context\src\stack_utils_posix.cpp: In function ‘rlimit<unnamed>::stacksize_limit_()’: libs\context\src\stack_utils_posix.cpp:27:15: warning: unused variable ‘result’ libs\context\src\stack_utils_posix.cpp: In function ‘size_t boost::contexts::minimum_stacksize()’: libs\context\src\stack_utils_posix.cpp:52:10: error: ‘SIGSTKSZ’ was not declared in this scope libs\context\src\stack_utils_posix.cpp:52:20: warning: control reaches end of non-void function
Any suggested workarounds? Thank you, -- Bernd
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On Feb 13, 2012, at 1:00 PM, Bernd Prager wrote:
All,
Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform:
Can you update and try again, 77009 should have reverted 77005. -- Noel
cc.compile.c++ bin.v2/libs/context/build/gcc-4.5.3/release/threading- multi/stack_utils_posix.o libs\context\src\stack_utils_posix.cpp: In function ‘rlimit<unnamed>::stacksize_limit_()’: libs\context\src\stack_utils_posix.cpp:27:15: warning: unused variable ‘result’ libs\context\src\stack_utils_posix.cpp: In function ‘size_t boost::contexts::minimum_stacksize()’: libs\context\src\stack_utils_posix.cpp:52:10: error: ‘SIGSTKSZ’ was not declared in this scope libs\context\src\stack_utils_posix.cpp:52:20: warning: control reaches end of non-void function
Any suggested workarounds? Thank you, -- Bernd
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On 2/13/2012 3:09 PM, Belcourt, K. Noel wrote:
On Feb 13, 2012, at 1:00 PM, Bernd Prager wrote:
All,
Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform:
Can you update and try again, 77009 should have reverted 77005.
It's working fine again. Awesome. Thanks Noel.

On 2/13/2012 3:09 PM, Belcourt, K. Noel wrote:
On Feb 13, 2012, at 1:00 PM, Bernd Prager wrote:
All,
Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform:
Can you update and try again, 77009 should have reverted 77005.
Noel, Did you accidentally re-committed the previous bug again. Compilation fails with: gcc.compile.c++ bin.v2/libs/context/build/gcc-4.5/release/threading-multi/stack_utils_posix.o libs\context\src\stack_utils_posix.cpp: In function ‘rlimit<unnamed>::stacksize_limit_()’: libs\context\src\stack_utils_posix.cpp:27:15: warning: unused variable ‘result’ libs\context\src\stack_utils_posix.cpp: In function ‘size_t boost::contexts::minimum_stacksize()’: libs\context\src\stack_utils_posix.cpp:52:10: error: ‘SIGSTKSZ’ was not declared in this scope -- Bernd

On Feb 14, 2012, at 6:44 PM, Bernd Prager wrote:
On 2/13/2012 3:09 PM, Belcourt, K. Noel wrote:
On Feb 13, 2012, at 1:00 PM, Bernd Prager wrote:
All,
Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform:
Can you update and try again, 77009 should have reverted 77005.
Did you accidentally re-committed the previous bug again.
No, I don't think so.
Compilation fails with:
I think the new context library is missing a header: #include <sys/signal.h> in libs/context/src/stack_utils_posix.cpp -- Noel

cygwin is currently not supported by boost.context. reason: boost.context requires assembler which is only provided for MASM/MS VC on WINDOWS (not cygwin and mingw). Oliver
On Feb 14, 2012, at 6:44 PM, Bernd Prager wrote:
On 2/13/2012 3:09 PM, Belcourt, K. Noel wrote:
On Feb 13, 2012, at 1:00 PM, Bernd Prager wrote:
All,
Boost Thread no longer compiles on Cygwin 1.7.10 / g++ (GCC) 4.5.3 since SIGSTKSZ is not defined on this platform:
Can you update and try again, 77009 should have reverted 77005.
Did you accidentally re-committed the previous bug again.
No, I don't think so.
Compilation fails with:
I think the new context library is missing a header:
#include <sys/signal.h>
in libs/context/src/stack_utils_posix.cpp
-- Noel
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

On 2/15/2012 1:19 AM, Oliver Kowalke wrote:
cygwin is currently not supported by boost.context. reason: boost.context requires assembler which is only provided for MASM/MS VC on WINDOWS (not cygwin and mingw).
Oliver
Do you plan to support 'nasm' (the assembler available on these platforms)? -- Bernd

Is 'GNU AS' not part of cygwin/mingw distri? Which assembler is used depends on boost.build. I don't know an option to force boost.build to use a specific assembler tool. I assume boost.build chooses 'MASM' as assembler on Windows - the boost.build docu makes no statement in this case :/ Supporting another assembler tool requires only to transform from 'MASM' syntax to 'NASM'/'GNU AS' which should be an easy task. - but all depends on boost.build Oliver Am 17.02.2012 13:39, schrieb Bernd Prager:
On 2/15/2012 1:19 AM, Oliver Kowalke wrote:
cygwin is currently not supported by boost.context. reason: boost.context requires assembler which is only provided for MASM/MS VC on WINDOWS (not cygwin and mingw).
Oliver
Do you plan to support 'nasm' (the assembler available on these platforms)?
-- Bernd
_______________________________________________ Unsubscribe& other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Belcourt, K. Noel
-
Bernd Prager
-
Oliver Kowalke