[CIG-SHORT] issues compiling PyLith on MacOS High Sierra

Matthew Knepley knepley at rice.edu
Tue Oct 2 10:09:32 PDT 2018


On Tue, Oct 2, 2018 at 12:14 PM Moortgat, Joachim B. <moortgat.1 at osu.edu>
wrote:

>
> Dear Developers,
>
>
> I'm having trouble compiling the latest Pylith release on a new and fully
> updated Macbook Pro, i.e. running MacOS High Sierra with clang
> compilers Apple LLVM version 9.1.0 (clang-902.0.39.2). However, I don't
> seem to get any error messages that provide a clear suggestion of where the
> problem lies.
>
>
> I configured as follows (initially it configured by default using the gcc
> 8.1 compilers from hpc.sourceforge.net , then I changed it to explicitly
> use cc and c++):
>
>
> $HOME/src/pylith/pylith-installer-2.2.1-0/configure
> --enable-mpi=openmpi     --with-fetch=curl
> --with-petsc-options="--download-chaco=1 --download-ml=1
> --download-f2cblaslapack=1"     --prefix=$HOME/pylith CC=cc CXX=c++ |tee
> config_log.txt
>
>
> Make finishes with:
>
>
> In file included from
> /System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32,
>
>                  from
> /System/Library/Frameworks/Security.framework/Headers/Security.h:43,
>
>                  from
> /Users/moortgat/build/pylith/cmake-3.7.0/Utilities/cmcurl/lib/urldata.h:146,
>
>                  from
> /Users/moortgat/build/pylith/cmake-3.7.0/Utilities/cmcurl/lib/file.c:52:
>
> /System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7:
> error: variably modified ‘bytes’ at file scope
>
>   char bytes[kAuthorizationExternalFormLength];
>
>        ^~~~~
>
> make[6]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/file.c.o] Error 1
>
> make[5]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all] Error 2
>
> make[4]: *** [all] Error 2
>
> make[3]: *** [cmake] Error 2
>
> make[2]: *** [installed_cmake] Error 2
>
> make[1]: *** [installed_petsc] Error 2
>
> make: *** [installed_pylith] Error 2
>
> I'm attaching all standard output from both the configure and make steps
> (and did remember to run the setup.sh in between).
>

I really dislike CMake. It looks like your C compiler does not like sizing
an array using a static const. This is common.
You could get a CMake binary and specify it to configure.

  Thanks,

     Matt


> I'd appreciate any suggestions on how to resolve these issues.
>
>
> --Joachim
>
>
>
> ------------------------------------
> Joachim Moortgat
> Assistant Professor
> School of Earth Sciences
> the Ohio State University
> 275 Mendenhall Lab, #303
> 125 South Oval Mall
> Columbus, OH 43210
> http://u.osu.edu/moortgat/
> -------------------------------------
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-short/attachments/20181002/1dcf555d/attachment.html>


More information about the CIG-SHORT mailing list