<div dir="ltr">I may have sent this on the wrong dl. I'm trying <a href="mailto:cmake@cmake.org">cmake@cmake.org</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 28, 2017 at 12:44 PM, Jom O'Fisher <span dir="ltr"><<a href="mailto:jomofisher@gmail.com" target="_blank">jomofisher@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have an issue that's really difficult to track down because it only seems to repro on certain machines which don't have access to. <br></div><div><br></div><div>The sequence of events seems to be:</div><div>(1) Invoke cmake to generate ninja project. Success. </div>* Note that generated rules.ninja has .o compilation dependencies with absolute paths and .so link dependencies with relative paths.<div>(2) Invoke "cmake --build my-path --target my-target"</div><div>(3) CMake changes tries to change it's working directory here:</div><div><a href="https://github.com/Kitware/CMake/blob/08ce62bee5bee6805fbb01c1821c438028e858dc/Source/cmGlobalGenerator.cxx#L1811" target="_blank">https://github.com/Kitware/<wbr>CMake/blob/<wbr>08ce62bee5bee6805fbb01c1821c43<wbr>8028e858dc/Source/<wbr>cmGlobalGenerator.cxx#L1811</a><br></div><div>(4) Evidence suggests this fails and is silently ignored here:</div><div><a href="https://github.com/Kitware/CMake/blob/967ba2e18055943faabf6eec39703bcad95a7551/Source/cmWorkingDirectory.cxx#L10" target="_blank">https://github.com/Kitware/<wbr>CMake/blob/<wbr>967ba2e18055943faabf6eec39703b<wbr>cad95a7551/Source/<wbr>cmWorkingDirectory.cxx#L10</a><br></div><div>(5) CMake invokes ninja.exe to build.</div><div>(6) Ninja eventually tries to link the resulting .so and this fails because the .so path is relative in rules.ninja and the output folder doesn't exist relative to the current directory.</div><div><br></div><div>A common theme of the machines this repros on seems to be that they run a non-US-English Windows. There has to be more to it though because I tried that myself and still didn't repro. A theory I had was that CMakeCache.txt is written in some encoding that loses information in the presence of Unicode characters. I tried this and it didn't seem to pan out.</div><div><br></div><div>Mainly I'd like to see if anyone has ideas that would help me reproduce the issue and also whether you suspect it may be fixed in versions of CMake after 3.6.</div><div><br></div><div>My tracking bug which has the full history: <a href="https://issuetracker.google.com/37131900" target="_blank">https://issuetracker.<wbr>google.com/37131900</a></div><div><br></div><div>Thanks for your help</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div>