Building RTT for Win32 (segfault running testcases)

Hello,

currently I try to evaluate OROCOS for use on a Win32 system. What are the recommended or knowing to work versions (Boost, MinGW, GCC) of tools for building a native Win32 version of OROCOS RTT?

I've downloaded the git branch and followed the instructions in the Wiki (http://www.orocos.org/wiki/rtt/mingw-native) to build a naticve Win32 version.

I used the following tools: MinGW from the actual QT 4.5 distribution (MinGW GCC 3.4.5), the actual boost version 1.39 and the CMake binaries 2.6.4 (http://www.cmake.org/files/v2.6/cmake-2.6.4-win32-x86.exe) from the CMake homepage. I sucessfully built boost binaries and configured OROCOS RTT via CMake. After applying this patch (http://www.orocos.org/node/982) I could sucessfully built the OROCOS RTT dll.

After changing log level identifier in line 50 in testboost/test-runner.cpp from boost::unit_test::log_test_suites to boost::unit_test::log_test_units (boost::unit_test::log_test_suites is not available in boost 1.39) I could sucessfully build the test cases with the make check command.

When I run the test cases then I get a SEGFAULT for each test case and the event_test.exe freezes.

I tested the complete build procedure with boost 1.39 and boost 1.36 but I always get a SEGFAULT in all test cases. Should I uses an older boost version or is this problem not related to boost? Did someone else had SEGFAULT when running test cases on a Win32 system and can give me some hints what I should try to fix this problem or should I use other build tools for Win32?

Regards, Uwe

Building RTT for Win32 (segfault running testcases)

Hi Uwe,

Sorry for the late reply.

On Sun, May 31, 2009 at 15:54, <uwe_kindler [..] ...> wrote:
> Hello,
>
> currently I try to evaluate OROCOS for use on a Win32 system. What are the recommended or knowing to work versions (Boost, MinGW, GCC) of tools for building a native Win32 version of OROCOS RTT?
>
> I've downloaded the git branch and followed the instructions in the Wiki (http://www.orocos.org/wiki/rtt/mingw-native) to build a naticve Win32 version.
>
> I used the following tools: MinGW from the actual QT 4.5 distribution (MinGW GCC 3.4.5), the actual boost version 1.39 and the CMake binaries 2.6.4 (http://www.cmake.org/files/v2.6/cmake-2.6.4-win32-x86.exe) from the CMake homepage. I sucessfully built boost binaries and configured OROCOS RTT via CMake. After applying this patch (http://www.orocos.org/node/982) I could sucessfully built the OROCOS RTT dll.
>
> After changing log level identifier in line 50 in testboost/test-runner.cpp from boost::unit_test::log_test_suites to boost::unit_test::log_test_units (boost::unit_test::log_test_suites is not available in boost 1.39) I could sucessfully build the test cases with the make check command.
>
> When I run the test cases then I get a SEGFAULT for each test case and the event_test.exe freezes.

This is certainly not Boost related, but due to the porting being in
still very experimental stage. I hope to get these resolved by RTT
1.10.0 (the next major release), or at least have the basics decently
working. Only recently Orocos users started showing interest in
(native) WIN32, so this port is only just starting.

>
> I tested the complete build procedure with boost 1.39 and boost 1.36 but I always get a SEGFAULT in all test cases. Should I uses an older boost version or is this problem not related to boost? Did someone else had SEGFAULT when running test cases on a Win32 system and can give me some hints what I should try to fix this problem or should I use other build tools for Win32?

You'll need to run the unit test through a debugger, and when you hit
the segfault, print the backtrace and post it to the forum.
Maybe I'll have some time by the end of next week to check the
building on Win32 with the latest portability improvements that we're
working on.

Peter