Boost logo

Boost-Build :

Subject: [Boost-build] questions about using GDB on windows
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-12-08 18:05:34


I want to use GDB on the gcc version of one of the serialization library
tests.

I use bjam to build the test. I try invoke GDB on the executable and I get:

$ gdb
C:/BoostRelease/bin.v2/libs/serialization/test/test_array_xml_warchive.t>
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/cygdrive/c/BoostRelease/bin.v2/libs/serialization/test/tes
t_array_xml_warchive.test/gcc-4.5.3/debug/test_array_xml_warchive...done.
(gdb) l
189
190 #define BOOST_FAIL( M ) BOOST_REQUIRE_MESSAGE( false, (M) )
191 #define EXIT_SUCCESS 0
192
193 int test_main(int argc, char * argv[]);
194
195 #include <boost/serialization/singleton.hpp>
196
197 int
198 main(int argc, char * argv[]){
(gdb)

which looks pretty promising. So I set a breakpoint and invoke the gdb R
command

(gdb) b 198
Breakpoint 1 at 0x4012ef: file test_tools.hpp, line 198.
(gdb) r
Starting program:
/cygdrive/c/BoostRelease/bin.v2/libs/serialization/test/test_a
rray_xml_warchive.test/gcc-4.5.3/debug/test_array_xml_warchive
[New Thread 2692.0x3a0]
gdb: unknown target exception 0xc0000135 at 0x7c9673be
During startup program exited with code 0xc0000135.
(gdb)

which is a disappointment. Anyone have some advicer here?

Here are some observations and things I've tried.

a) It looks like this uses the DLL build. I'm not sure where the DLLS are.
If
I invoke the test_array_wxml_archive from the windows shell it just bails
with a message which says it can't find a dll. - actually the message
refers
to the boost file-system dll.

b) I try building/testing with link=static. This seems to execute and
terminate
with an error - which is what I expect. When I look for the executeable in
the
file system I don't find it - I do find test_log.xml however and it looks
like:

<test-log library="" test-name="test_array_xml_warchive" test-type=""
test-program=""
target-directory="../../../bin.v2/libs/serialization/test/test_array_xml_warchive.test/gcc-4.5.3/debug"
toolset="gcc-4.5.3" show-run-output="true">
<compile result="succeed" timestamp="2012-12-08 21:55:18 UTC"></compile>
<link result="succeed" timestamp="2012-12-08 21:55:18 UTC"></link>
<run result="fail" timestamp="2012-12-08 21:55:18 UTC">
      3 [sig] test_array_xml_warchive 1016 open_stackdumpfile: Dumping stack
trace to test_array_xml_warchive.exe.stackdump

EXIT STATUS: 34304
</run>
</test-log>

which seems to suggest that it compiled and linked - but didn't run. B2
produces the following
...

...updating 11 targets...

gcc.archive
..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_serialization-gcc45-d-1_53.a

The system cannot find the path specified.

The system cannot find the path specified.

"/usr/i686-pc-cygwin/bin/ar.exe" rc
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_serialization-gcc45-d-1_53.a"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_archive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_iarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_iserializer.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_oarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_oserializer.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_pointer_iserializer.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_pointer_oserializer.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_serializer_map.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_text_iprimitive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_text_oprimitive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_xml_archive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\binary_iarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\binary_oarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\extended_type_info.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\extended_type_info_typeid.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\extended_type_info_no_rtti.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\polymorphic_iarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\polymorphic_oarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\stl_port.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\text_iarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\text_oarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\void_cast.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\archive_exception.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_grammar.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_iarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_oarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_archive_exception.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\shared_ptr_helper.o"

"/usr/i686-pc-cygwin/bin/ranlib.exe"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_serialization-gcc45-d-1_53.a"

...failed gcc.archive
..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_serialization-gcc45-d-1_53.a...

gcc.archive
..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\libboost_filesystem-gcc45-d-1_53.a

The system cannot find the path specified.

The system cannot find the path specified.

"/usr/i686-pc-cygwin/bin/ar.exe" rc
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\libboost_filesystem-gcc45-d-1_53.a"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\codecvt_error_category.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\operations.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\path.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\path_traits.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\portability.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\unique_path.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\utf8_codecvt_facet.o"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\windows_file_codecvt.o"

"/usr/i686-pc-cygwin/bin/ranlib.exe"
"..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\libboost_filesystem-gcc45-d-1_53.a"

...failed gcc.archive
..\..\..\bin.v2\libs\filesystem\build\gcc-4.5.3\debug\link-static\libboost_filesystem-gcc45-d-1_53.a...

gcc.archive
..\..\..\bin.v2\libs\system\build\gcc-4.5.3\debug\link-static\libboost_system-gcc45-d-1_53.a

The system cannot find the path specified.

The system cannot find the path specified.

"/usr/i686-pc-cygwin/bin/ar.exe" rc
"..\..\..\bin.v2\libs\system\build\gcc-4.5.3\debug\link-static\libboost_system-gcc45-d-1_53.a"
"..\..\..\bin.v2\libs\system\build\gcc-4.5.3\debug\link-static\error_code.o"

"/usr/i686-pc-cygwin/bin/ranlib.exe"
"..\..\..\bin.v2\libs\system\build\gcc-4.5.3\debug\link-static\libboost_system-gcc45-d-1_53.a"

...failed gcc.archive
..\..\..\bin.v2\libs\system\build\gcc-4.5.3\debug\link-static\libboost_system-gcc45-d-1_53.a...

gcc.archive
..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_wserialization-gcc45-d-1_53.a

The system cannot find the path specified.

The system cannot find the path specified.

"/usr/i686-pc-cygwin/bin/ar.exe" rc
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_wserialization-gcc45-d-1_53.a"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_text_wiprimitive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\basic_text_woprimitive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\text_wiarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\text_woarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\utf8_codecvt_facet.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_wgrammar.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_wiarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\xml_woarchive.o"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\codecvt_null.o"

"/usr/i686-pc-cygwin/bin/ranlib.exe"
"..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_wserialization-gcc45-d-1_53.a"

...failed gcc.archive
..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static\libboost_wserialization-gcc45-d-1_53.a...

...skipped
<p..\..\..\bin.v2\libs\serialization\test\test_array_xml_warchive.test\gcc-4.5.3\debug\link-static>test_array_xml_warchive.exe
for lack of
<p..\..\..\bin.v2\libs\serialization\build\gcc-4.5.3\debug\link-static>libboost_serialization-gcc45-d-1_53.a...

...skipped
<p..\..\..\bin.v2\libs\serialization\test\test_array_xml_warchive.test\gcc-4.5.3\debug\link-static>test_array_xml_warchive.run
for lack of
<p..\..\..\bin.v2\libs\serialization\test\test_array_xml_warchive.test\gcc-4.5.3\debug\link-static>test_array_xml_warchive.exe...

...failed updating 4 targets...

...skipped 3 targets...

...updated 4 targets...

anyway - I'd appreciate any available help.

Robert Ramey


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk