Boost C++ Libraries: Ticket #2164: locate_root wrong under CygWin https://svn.boost.org/trac10/ticket/2164 <p> When running the regression tests under cygwin, I get: </p> <p> locate_root: c:/tmp/boost_rt/boost/status/cygdrive/C/tmp/boost_rt/results </p> <p> (After this it can't find any files.) </p> <p> <a class="missing wiki">CygWin</a> maps Win32 to unix file names as such: </p> <blockquote> <p> cygwin: /cygdrive/C/tmp/boost_rt Win32: C:/tmp/boost_rt </p> </blockquote> <p> As you can see from locate_root above, bjam has blended both, yielding an invalid directory under either. </p> <p> This occurs even when I specify to run.py: </p> <blockquote> <p> --bjam-options="--locate-root=/cygdrive/C/tmp/boost_rt/results" </p> </blockquote> <p> I get this output (showing --locate-root being properly propagated): </p> <p> # Starting tests ("/cygdrive/C/tmp/boost_rt/tools_bjam/bin.cygwinx86/bjam.exe" "-sBOOST_BUILD_PATH=/cygdrive/C/tmp/boost_rt:/cygdrive/C/tmp/boost_rt/tools_bb" "-sBOOST_ROOT=/cygdrive/C/tmp/boost_rt/boost" "--boost=/cygdrive/C/tmp/boost_rt/boost" "--boost-build=/cygdrive/C/tmp/boost_rt/tools_bb" "--debug-configuration" -l300 -d2 --dump-tests --locate-root=/cygdrive/C/tmp/boost_rt/results "--build-dir=/cygdrive/C/tmp/boost_rt/results" &gt;&gt;"/cygdrive/C/tmp/boost_rt/results/bjam.log" 2&gt;&amp;1)... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2164 Trac 1.4.3 jim@… Sat, 02 Aug 2008 13:13:00 GMT <link>https://svn.boost.org/trac10/ticket/2164#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2164#comment:1</guid> <description> <p> Forgot to attach my e-mail address. </p> </description> <category>Ticket</category> </item> <item> <author>jim@…</author> <pubDate>Mon, 04 Aug 2008 20:12:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2164#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2164#comment:2</guid> <description> <p> More research: the problem is in libboost_system-gcc34-1_36.a, used to build process_jam_log.exe. The fs::initial_path() call in process_jam_log.cpp's set_boost_root() returns the DOSish name. </p> <p> <a class="missing wiki">CygWin</a>'s python interpreter uses UNIXish names, so any combination of things I try yields the UNIXish /cygdrive/C/tmp/boost_rt not being recognized as absolute by boost:filesystem. </p> <p> I tried these flags in regression.py, just before "if self.debug_level &gt; 0:" </p> <blockquote> <p> if sys.platform == 'cygwin': </p> <blockquote> <p> self.bjam<a class="missing wiki">build_args</a> += ' -DBOOST_POSIX_API=1' self.process_jam_log<a class="missing wiki">build_args</a> += ' -sBOOST_POSIX_API=1' self.bjam_options += ' -sBOOST_POSIX_API=1' </p> </blockquote> </blockquote> <p> All to no avail. </p> <p> I'm not convinced I'm getting the BOOST_POSIX_API definition to libboost_system-gcc34-1_36.a, when process_jam_log.cpp is compiled. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Sun, 23 Nov 2008 00:12:39 GMT</pubDate> <title>owner, component, milestone changed https://svn.boost.org/trac10/ticket/2164#comment:3 https://svn.boost.org/trac10/ticket/2164#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">René Rivera</span> to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">bjam</span> → <span class="trac-field-new">system</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket jim@… Fri, 05 Dec 2008 10:53:31 GMT <link>https://svn.boost.org/trac10/ticket/2164#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2164#comment:4</guid> <description> <p> This bug still present, though <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2163" title="#2163: Bugs: regression.py can't find bjam.exe under CygWin (closed: fixed)">#2163</a> is fixed. bjam derails here: </p> <pre class="wiki"># Getting test case results out of "/cygdrive/C/tmp/boost_rt/results/bjam.log"... boost_root: c:/tmp/boost_rt/boost locate_root: c:/tmp/boost_rt/boost/status/cygdrive/C/tmp/boost_rt/results *****Warning - can't open output file: c:/tmp/boost_rt/boost/status/cygdrive/C/tmp/boost_rt/results/rs/test/weighted_extended_p_square.test/gcc-3.4.4/debug/link-static/test_log.xml *****Warning - can't open output file: c:/tmp/boost_rt/boost/status/cygdrive/C/tmp/boost_rt/results/gcc-3.4.4/debug/link-static/test_log.xml ... </pre><p> No results files subsequently found. </p> <p> boost_root and locate_root should be /cygdrive/C/tmp/boost_rt/... not C:/tmp/boost_rt/.../cygdrive/C/tmp/... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Sun, 04 Jan 2009 05:23:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2164#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2164#comment:5</guid> <description> <p> Try </p> <pre class="wiki">self.process_jam_log['build_args'] += ' define=BOOST_CYGWIN_PATH=1' </pre><p> Beman, shouldn't BOOST_CYGWIN_PATH be used by default of cygwin? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Mon, 30 May 2011 16:17:28 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2164#comment:6 https://svn.boost.org/trac10/ticket/2164#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> Closing inactive ticket. If the reported problem still exists, please reopen the ticket and supply a test case that clearly illuminates the problem. </p> <p> Thanks, </p> <p> --Beman </p> Ticket