<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hmm, it does not say to run any executables.  I really don’t understand what it’s asking me for so I don’t know what to just stick in the variables.  
<div>Here is an example from that file:  <br>
<div><br>
<div>
<div># CMAKE_REQUIRE_LARGE_FILE_SUPPORT</div>
<div>#    indicates whether the executable would have been able to run on its</div>
<div>#    target platform. If so, set CMAKE_REQUIRE_LARGE_FILE_SUPPORT to</div>
<div>#    the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN".</div>
<div># CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT</div>
<div>#    contains the text the executable would have printed on stdout and stderr.</div>
<div>#    If the executable would not have been able to run, set CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT empty.</div>
<div>#    Otherwise check if the output is evaluated by the calling CMake code. If so,</div>
<div>#    check what the source file would have printed when called with the given arguments.</div>
<div># The HAVE_CMAKE_REQUIRE_LARGE_FILE_SUPPORT variable holds the build result for this TRY_RUN().</div>
<div># </div>
<div># Source file   : /collab/usr/global/tools/Kitware/Catalyst/bgqos_0/catalyst_backend_crossbuild/CMakeFiles/CMakeTmp/src.cxx</div>
<div># Executable    : /collab/usr/global/tools/Kitware/Catalyst/bgqos_0/catalyst_backend_crossbuild/CMakeFiles/cmTryCompileExec2363604927-CMAKE_REQUIRE_LARGE_FILE_SUPPORT</div>
<div># Run arguments : </div>
<div>#    Called from: [1]<span class="Apple-tab-span" style="white-space:pre"> </span>
/collab/usr/global/tools/Kitware/Catalyst/bgqos_0/base/VTK/CMakeLists.txt</div>
<div><br>
</div>
<div>set( CMAKE_REQUIRE_LARGE_FILE_SUPPORT </div>
<div>     "PLEASE_FILL_OUT-FAILED_TO_RUN"</div>
<div>     CACHE STRING "Result from TRY_RUN" FORCE)</div>
<div><br>
</div>
<div>set( CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT </div>
<div>     "PLEASE_FILL_OUT-NOTFOUND"</div>
<div>     CACHE STRING "Output from TRY_RUN" FORCE)</div>
<div><br>
</div>
<div>
<div>On Feb 12, 2015, at 4:08 PM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">These come from the way our build scripts ask cmake to runs _more_ helper executables at build time in order to introspect the machine that the code is going to run on (is it big or little endian, how big is a double on this CPU?, does the MPI
 there support feature X and stuff like that).
<div><br>
</div>
<div>In a host only build these aren't a problem, just build, run and take the output of the helper and continue.
<div><br>
</div>
<div>In a cross compile build it isn't so easy. The answers on the host and compute may be different (ex on a BGL or P), worse cmake can build it, but it does't know anything about how to submit a job to run the executable and then get results back from it.</div>
<div><br>
</div>
<div>If you look at:</div>
<div><span style="font-size:13px">/collab/usr/global/tools/</span><span style="font-size:13px">Kitware/Catalyst/bgqos_0/</span><span style="font-size:13px">catalyst_backend_crossbuild/</span><span style="font-size:13px">TryRunResults.cmake</span></div>
<div><br>
</div>
<div>It says things to the effect of:</div>
<div>run this executable on the compute node, and paste its output back into this variable. You can do that, or copy someone else's answers for the test on a BGQ (see the PVSB/cmake/crosscompile/bgq_gnu/*TryRunResults.cmake), or fill in the details from what
 you know about the compute node architecture.</div>
<div><br>
</div>
<div>However you do it, once you fill in that form just make again in the build tree, cmake will see that you've given it the details it needs, and finish.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</div>
</div>
<br>
<div class="gmail_quote">On Thu, Feb 12, 2015 at 6:32 PM, Cook, Rich <span dir="ltr">
<<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">OK, thanks, that gets me a bit farther.  I pointed it at a successful build of Catalyst.  But now when I run cmake.sh, I get this error (and more later)
<div><br>
</div>
<div>
<div>-- Performing Test Support for 64 bit file systems</div>
<div>CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:</div>
<div>   CMAKE_REQUIRE_LARGE_FILE_SUPPORT (advanced)</div>
<div>   CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT (advanced)</div>
<div>…</div>
<div>
<div>CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:</div>
<div>   VTK_TYPE_CHAR_IS_SIGNED (advanced)</div>
<div>For details see /collab/usr/global/tools/Kitware/Catalyst/bgqos_0/catalyst_backend_crossbuild/TryRunResults.cmake</div>
</div>
<div><br>
</div>
<div>What am I to make of these cryptic errors?  </div>
<div>Thanks</div>
<span class="HOEnZb"><font color="#888888">
<div>— Rich </div>
</font></span>
<div>
<div class="h5">
<div><br>
</div>
<div>
<div>On Feb 12, 2015, at 2:57 PM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>> wrote:</div>
<br>
<blockquote type="cite">
<div dir="ltr">ParaView/Catalyst/VTK build and run some helper executables during the build process of themselves. An example is vtkWrapPython, who's job during the compile process is to parse the C++ header files and spit out additional header and cxx files
 that make the originals callable from python. All of those c++ files are later compiled for the target environment.
<div><br>
</div>
<div>In cross compilation the helper executables have to be compiled to run in the host environment.</div>
<div>The source code that the helpers produce has to be compiled to run in the compute environment.</div>
<div><br>
</div>
<div>So build paraview (or better yet just the CompileTools target to save time) once for the host.</div>
<div>Then in a different directory build paraview again, using the toolchain you are now using to tell it what compilers and libraries to use for the compute nodes, and in this build tell cmake where the host tools can be found.</div>
<div><br>
</div>
<div>See the ParaViewSuperbuild project's CMake/crosscompile/bgq_gnu directory for how I set this up on mira.</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>
</div>
<br>
<div class="gmail_quote">On Thu, Feb 12, 2015 at 5:33 PM, Cook, Rich <span dir="ltr">
<<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="word-wrap:break-word">Hello, 
<div>I have made a CMAKE_TOOLCHAIN_FILE which contains the following: </div>
<div><br>
</div>
<div>
<div>rcook@rzuseqlac2 (catalyst_backend_crossbuild ): cat ../backend_toolchain.cmake </div>
<div>#=====================================</div>
<div>set(CMAKE_SYSTEM_NAME BlueGeneQ-dynamic)</div>
<div><br>
</div>
<div>set(TOOLCHAIN_LOCATION /bgsys/drivers/ppcfloor/gnu-linux/bin)</div>
<div>set(TOOLCHAIN_PREFIX powerpc64-bgq-linux-)</div>
<div><br>
</div>
<div>set(CMAKE_C_COMPILER       ${TOOLCHAIN_LOCATION}/${TOOLCHAIN_PREFIX}gcc)</div>
<div>set(CMAKE_CXX_COMPILER     ${TOOLCHAIN_LOCATION}/${TOOLCHAIN_PREFIX}g++)</div>
<div>set(CMAKE_Fortran_COMPILER ${TOOLCHAIN_LOCATION}/${TOOLCHAIN_PREFIX}gfortran)</div>
<div>
<div>#=====================================</div>
</div>
<div><br>
</div>
<div>When I try to use it to compile catalyst, I get an error which arises from a file in the Catalyst distribution and which I don’t understand.  Can someone ’splain it?  Thanks!</div>
<div><br>
</div>
<div>
<div>rcook@rzuseqlac2 (catalyst_backend_crossbuild ): /collab/usr/global/tools/Kitware/Catalyst/bgqos_0/base/cmake.sh  -DCMAKE_TOOLCHAIN_FILE=/collab/usr/global/tools/Kitware/Catalyst/bgqos_0/backend_toolchain.cmake  /collab/usr/global/tools/Kitware/Catalyst/bgqos_0/base</div>
<div>Not searching for unused variables given on the command line.</div>
<div>-- The C compiler identification is GNU 4.4.7</div>
<div>-- The CXX compiler identification is GNU 4.4.7</div>
<div>-- Check for working C compiler: /bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc64-bgq-linux-gcc</div>
<div>-- Check for working C compiler: /bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc64-bgq-linux-gcc -- works</div>
<div>-- Detecting C compiler ABI info</div>
<div>-- Detecting C compiler ABI info - done</div>
<div>-- Detecting C compile features</div>
<div>-- Detecting C compile features - done</div>
<div>-- Check for working CXX compiler: /bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc64-bgq-linux-g++</div>
<div>-- Check for working CXX compiler: /bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc64-bgq-linux-g++ -- works</div>
<div>-- Detecting CXX compiler ABI info</div>
<div>-- Detecting CXX compiler ABI info - done</div>
<div>-- Detecting CXX compile features</div>
<div>-- Detecting CXX compile features - done</div>
<div>-- Found Git: /usr/bin/git (found version "1.7.1") </div>
<div>-- Determined Source Version : 4.3.1</div>
<div>CMake Error at CMakeLists.txt:94 (find_package):</div>
<div>  By not providing "FindParaViewCompileTools.cmake" in CMAKE_MODULE_PATH this</div>
<div>  project has asked CMake to find a package configuration file provided by</div>
<div>  "ParaViewCompileTools", but CMake did not find one.</div>
<div><br>
</div>
<div>  Could not find a package configuration file provided by</div>
<div>  "ParaViewCompileTools" with any of the following names:</div>
<div><br>
</div>
<div>    ParaViewCompileToolsConfig.cmake</div>
<div>    paraviewcompiletools-config.cmake</div>
<div><br>
</div>
<div>  Add the installation prefix of "ParaViewCompileTools" to CMAKE_PREFIX_PATH</div>
<div>  or set "ParaViewCompileTools_DIR" to a directory containing one of the</div>
<div>  above files.  If "ParaViewCompileTools" provides a separate development</div>
<div>  package or SDK, be sure it has been installed.</div>
<div><br>
</div>
<div><br>
</div>
<div>-- Configuring incomplete, errors occurred!</div>
<div>See also "/collab/usr/global/tools/Kitware/Catalyst/bgqos_0/catalyst_backend_crossbuild/CMakeFiles/CMakeOutput.log”.</div>
</div>
<div><br>
</div>
<div>This is odd because if I do not use the toolchain file, Catalyst compiles fine  </div>
<div>-----------------------------------------------------------------------</div>
<div>I’m attaching the log referenced, I don’t see anything in it that tips me off. </div>
<span><font color="#888888">
<div><br>
</div>
<div></div>
</font></span></div>
<span><font color="#888888"></font></span></div>
<span><font color="#888888">
<div style="word-wrap:break-word">
<div>
<div></div>
<div><br>
</div>
<div><br>
</div>
<div><span style="border-collapse:separate;font-size:13px;border-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div>-- </div>
<div>✐Richard Cook   </div>
<div>✇ Lawrence Livermore National Laboratory</div>
<div>Bldg-453 Rm-4024, Mail Stop L-557        </div>
<div>7000 East Avenue,  Livermore, CA, 94550, USA</div>
<div>☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605" target="_blank">
(925) 423-9605</a>    </div>
<div>☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961" target="_blank">(925) 423-6961</a></div>
<div>---</div>
<div>Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div>(opinions expressed herein are mine and not those of LLNL)</div>
<br>
</span></span></span></span></span></span></span><br>
</span></div>
<br>
</div>
</div>
</font></span></div>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
<div><span style="border-collapse:separate;font-size:13px;border-spacing:0px"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<div>-- </div>
<div>✐Richard Cook   </div>
<div>✇ Lawrence Livermore National Laboratory</div>
<div>Bldg-453 Rm-4024, Mail Stop L-557        </div>
<div>7000 East Avenue,  Livermore, CA, 94550, USA</div>
<div>☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605" target="_blank">
(925) 423-9605</a>    </div>
<div>☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961" target="_blank">(925) 423-6961</a></div>
<div>---</div>
<div>Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div>(opinions expressed herein are mine and not those of LLNL)</div>
<br>
</span></span></span></span></span></span></span><br>
</span></div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-size: 13px; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">
<div>-- </div>
<div>✐Richard Cook   </div>
<div>✇ Lawrence Livermore National Laboratory</div>
<div>Bldg-453 Rm-4024, Mail Stop L-557        </div>
<div>7000 East Avenue,  Livermore, CA, 94550, USA</div>
<div>☎ (office) (925) 423-9605    </div>
<div>☎ (fax) (925) 423-6961</div>
<div>---</div>
<div>Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div>(opinions expressed herein are mine and not those of LLNL)</div>
<br class="Apple-interchange-newline">
</span></span></span></span></span></span></span><br class="Apple-interchange-newline">
</span></div>
<br>
</div>
</div>
</div>
</body>
</html>