<div dir="ltr">Hi, <div><br></div><div>I'm trying to use ParaviewSuperBuild on OS X Yosemite 10.10.3, and the system clang version is 6.1.0. I have some errors when I build, and what could I do to solve this problem? Thanks. </div><div><br></div><div>Best, </div><div>Hanqi Guo</div><div><br></div><div><br></div><div>







<p class=""><span class="">CMake Warning at CMakeLists.txt:5 (message):</span></p>
<p class=""><span class="">  Ensure that CMAKE_OSX_SYSROOT, CMAKE_OSX_DEPLOYMENT_TARGET are set</span></p>
<p class=""><span class="">  correctly</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">-- Manta is currently not supported on Macs</span></p>
<p class=""><span class="">-- Using system python. Pick correct python based on your deployment target</span></p>
<p class=""><span class="">-- Enabling paraview as requested.</span></p>
<p class=""><span class="">-- PROJECTS_ENABLED paraview</span></p>
<p class=""><span class="">-- Configuring done</span></p>
<p class=""><span class="">-- Generating done</span></p>
<p class=""><span class="">-- Build files have been written to: /Users/hguo/workspace/compile/ParaViewSuperbuild/build</span></p>
<p class=""><span class="">[ 12%] </span><span class="">Performing update step for 'paraview'</span></p>
<p class=""><span class="">[ 25%] </span><span class="">Performing configure step for 'paraview'</span></p>
<p class=""><span class="">-- The C compiler identification is unknown</span></p>
<p class=""><span class="">-- The CXX compiler identification is unknown</span></p>
<p class=""><span class="">-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc</span></p>
<p class=""><span class="">-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- broken</span></p>
<p class=""><span class="">CMake Error at /Users/hguo/local/cmake-3.2.2/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61 (message):</span></p>
<p class=""><span class="">  The C compiler</span></p>
<p class=""><span class="">  "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"</span></p>
<p class=""><span class="">  is not able to compile a simple test program.</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  It fails with the following output:</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">   Change Dir: /Users/hguo/workspace/compile/ParaViewSuperbuild/build/paraview/src/paraview-build/CMakeFiles/CMakeTmp</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  Run Build Command:"/usr/bin/make" "cmTryCompileExec1161683309/fast"</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  /Applications/Xcode.app/Contents/Developer/usr/bin/make -f</span></p>
<p class=""><span class="">  CMakeFiles/cmTryCompileExec1161683309.dir/build.make</span></p>
<p class=""><span class="">  CMakeFiles/cmTryCompileExec1161683309.dir/build</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  /Users/hguo/local/cmake-3.2.2/bin/cmake -E cmake_progress_report</span></p>
<p class=""><span class="">  /Users/hguo/workspace/compile/ParaViewSuperbuild/build/paraview/src/paraview-build/CMakeFiles/CMakeTmp/CMakeFiles</span></p>
<p class=""><span class="">  1</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  Building C object</span></p>
<p class=""><span class="">  CMakeFiles/cmTryCompileExec1161683309.dir/testCCompiler.c.o</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span></p>
<p class=""><span class="">  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc</span></p>
<p class=""><span class="">  -fPIC -arch x86_64 -mmacosx-version-min=</span></p>
<p class=""><span class="">  --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk</span></p>
<p class=""><span class="">  -o CMakeFiles/cmTryCompileExec1161683309.dir/testCCompiler.c.o -c</span></p>
<p class=""><span class="">  /Users/hguo/workspace/compile/ParaViewSuperbuild/build/paraview/src/paraview-build/CMakeFiles/CMakeTmp/testCCompiler.c</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  clang: error: invalid version number in '-mmacosx-version-min='</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  make[4]: *** [CMakeFiles/cmTryCompileExec1161683309.dir/testCCompiler.c.o]</span></p>
<p class=""><span class="">  Error 1</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  make[3]: *** [cmTryCompileExec1161683309/fast] Error 2</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  CMake will not be able to correctly generate this project.</span></p>
<p class=""><span class="">Call Stack (most recent call first):</span></p>
<p class=""><span class="">  CMakeLists.txt:40 (project)</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">-- Configuring incomplete, errors occurred!</span></p>
<p class=""><span class="">See also "/Users/hguo/workspace/compile/ParaViewSuperbuild/build/paraview/src/paraview-build/CMakeFiles/CMakeOutput.log".</span></p>
<p class=""><span class="">See also "/Users/hguo/workspace/compile/ParaViewSuperbuild/build/paraview/src/paraview-build/CMakeFiles/CMakeError.log".</span></p>
<p class=""><span class="">make[2]: *** [paraview/src/paraview-stamp/paraview-configure] Error 1</span></p>
<p class=""><span class="">make[1]: *** [CMakeFiles/paraview.dir/all] Error 2</span></p>
<p class=""><span class="">make: *** [all] Error 2</span></p><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif">Hanqi Guo</font></div></div>
</div></div>