[Paraview] Superbuild and OSX

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Sep 3 18:23:50 EDT 2014


Michael,

Let me try this on a Moutain Lion myself and I'll let you know. What
projects  are you turning on in your build?

Utkarsh

On Wed, Sep 3, 2014 at 2:40 PM, Reuter, Michael A. <reuterma at ornl.gov> wrote:
> This gets around the clang argument problem, but the ParaView CMake configuration step still fails for an unknown reason.
>
> M
>
> On Sep 3, 2014, at 10:28 AM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com<mailto:utkarsh.ayachit at kitware.com>> wrote:
>
> Cherry-pick this fix for now : http://review.source.kitware.com/#/c/16665/
> It'll go into master soon.
>
> Ben, anything this fix is waiting on?
>
> Utkarsh
>
> On Wed, Sep 3, 2014 at 9:42 AM, Reuter, Michael A. <reuterma at ornl.gov<mailto:reuterma at ornl.gov>> wrote:
> Hi,
>
>        I’m having trouble getting the git-master version of the Superbuild running on OSX (10.9) with clang (5.1). Setting the CMAKE_OSX_SYSROOT variable causes the following error during CMake (2.8.12.2) generation for the ParaView subproject:
>
> -- The C compiler identification is unknown
> -- The CXX compiler identification is unknown
> -- Check for working C compiler using: Ninja
> -- Check for working C compiler using: Ninja -- broken
> CMake Error at /Applications/CMake 2.8-12.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
>  The C compiler "/usr/bin/cc" is not able to compile a simple test program.
>
>  It fails with the following output:
>
>   Change Dir: /Users/2zr/build/ParaView-Superbuild/paraview/src/paraview-build/CMakeFiles/CMakeTmp
>
>  Run Build Command:/usr/local/bin/ninja cmTryCompileExec4050157075
>
>  [1/2] Building C object
>  CMakeFiles/cmTryCompileExec4050157075.dir/testCCompiler.c.o
>
>  FAILED: /usr/bin/cc -fPIC -arch x86_64 -mmacosx-version-min=10.9
>  -sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>  -o CMakeFiles/cmTryCompileExec4050157075.dir/testCCompiler.c.o -c
>  testCCompiler.c
>
>  clang: error: unknown argument:
>  '-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
>  [-Wunused-command-line-argument-hard-error-in-future]
>
>  clang: note: this will be a hard error (cannot be downgraded to a warning)
>  in the future
>
>  ninja: build stopped: subcommand failed.
>
> Even if I empty the CMAKE_OSX_SYSROOT variable, the system still tries to pass an empty -sysroot flag to clang causing it to choke. I removed the sysroot flag from the top-level CMakeLists.txt, but then the ParaView CMake setup fails for a reason I can’t seem to understand. I’m attaching the log showing the CMake output. The only obvious thing I see is the Fortran compiler. Is that required?
>
> Thanks,
> M
>
> Dr. Michael Reuter
> Scientific Data Analysis Group
> Neutron Data Analysis and Visualization Division
> Oak Ridge National Laboratory
>
> Office: 1-865-241-7216
> Fax: 1-865-574-6080
> Email: reuterma at ornl.gov<mailto:reuterma at ornl.gov>
>
>
> _______________________________________________
> Powered by www.kitware.com<http://www.kitware.com/>
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list