<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;">
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>
<div>— Rich </div>
<div><br>
</div>
<div>
<div>On Feb 12, 2015, at 2:57 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">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 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 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 class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div></div>
</font></span></div>
<span class="HOEnZb"><font color="#888888"></font></span></div>
<span class="HOEnZb"><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 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>
</body>
</html>