[aspect-devel] problem installing aspect

Max Rudolph maxrudolph at ucdavis.edu
Wed Apr 11 10:15:06 PDT 2018


The easiest way to get a working copy of aspect and dependencies on the mac
is to install fink. Use fink to install gnu compilers and openmpi, and then
use candi to compile deal.ii and its dependencies. You need to set the
environment variables OMPI_CC and OMPI_CXX to point at the right c/c++
compiler (g++ in /sw/bin).

We had a very bad experience recently with the binary compilers provided on
hpc.sourceforge.net, which many mac users have been relying upon for more
than a decade.

Fink seems to be the best of the package managers because all of the added
libraries, headers, and binary files get installed in /sw where there is no
chance that there will be conflicts with Apple-provided libraries.

On Tue, Apr 10, 2018 at 1:09 PM, Cody Randel <cjr2219 at gmail.com> wrote:

> Hi All,
>
> I’ve tried to compile aspect on a Mac using the deal.ii application but am
> having problems with finding the right cxx compiler. I’ve tried not
> specifying the compiler (see first attempt below) and also setting it to
> clang++ (see second attempt below). I’m attaching the error messages for
> both cases. I’m also attaching the CMakeError.log and CMakeOutput.log file
> for when using clang.
>
> Thanks,
> Cody
>
> Mac OS Version …10.13.3
> CMake Version … 3.11.0
> deal.II version …  8.5.0
> Xcode version … 8.3
>
>
> bash-3.2$ cmake ../aspect
> -- ====================================================
> -- ============ Configuring ASPECT ====================
> -- ====================================================
> -- Found deal.II version 8.5.0 at '/Applications/deal.II-8.5-
> brew.app/Contents/Resources/lib/cmake/deal.II'
> -- Using ASPECT_USE_PETSC = 'OFF'
> -- The C compiler identification is AppleClang 8.1.0.8020038
> -- The CXX compiler identification is unknown
> -- Check for working C compiler: /Applications/Xcode.app/
> Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
> -- Check for working C compiler: /Applications/Xcode.app/
> Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /Applications/deal.II-8.5-
> brew.app/Contents/Resources/brew/bin/mpicxx
> -- Check for working CXX compiler: /Applications/deal.II-8.5-
> brew.app/Contents/Resources/brew/bin/mpicxx -- broken
> CMake Error at /Applications/deal.II-8.5-brew.app/Contents/Resources/
> brew/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake:44
> (message):
>   The C++ compiler
>   "/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx"
> is
>   not able to compile a simple test program.
>
>   It fails with the following output:
>
>    Change Dir: /Users/Cody/aspect/aspect-build/CMakeFiles/CMakeTmp
>
>
>
>   Run Build Command:"/usr/bin/make" "cmTC_b6801/fast"
>
>   /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
>   CMakeFiles/cmTC_b6801.dir/build.make CMakeFiles/cmTC_b6801.dir/build
>
>   Building CXX object CMakeFiles/cmTC_b6801.dir/testCXXCompiler.cxx.o
>
>   /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx -o
>   CMakeFiles/cmTC_b6801.dir/testCXXCompiler.cxx.o -c
>   /Users/Cody/aspect/aspect-build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
>
>   make[1]: *** [CMakeFiles/cmTC_b6801.dir/testCXXCompiler.cxx.o] Illegal
>   instruction: 4
>
>   make: *** [cmTC_b6801/fast] Error 2
>
>
>
>
>
>   CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>   CMakeLists.txt:83 (PROJECT)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/Users/Cody/aspect/aspect-build/CMakeFiles/CMakeOutput.log".
> See also "/Users/Cody/aspect/aspect-build/CMakeFiles/CMakeError.log".
>
>
>
> bash-3.2$ cmake -DCMAKE_CXX_COMPILER=clang++ ../aspect
> -- ====================================================
> -- ============ Configuring ASPECT ====================
> -- ====================================================
> -- Found deal.II version 8.5.0 at '/Applications/deal.II-8.5-
> brew.app/Contents/Resources/lib/cmake/deal.II'
> -- Using ASPECT_USE_PETSC = 'OFF'
> -- The CXX compiler identification is AppleClang 8.1.0.8020038
> -- Check for working CXX compiler: /usr/bin/clang++
> -- Check for working CXX compiler: /usr/bin/clang++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Query git repository information.
> -- Found Git: /usr/bin/git (found version "2.11.0 (Apple Git-81)")
> -- Setting up test project, see tests/setup_tests.log for details.
> CMake Error at /Applications/deal.II-8.5-brew.app/Contents/Resources/
> brew/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake:44
> (message):
>   The C++ compiler
>   "/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx"
> is
>   not able to compile a simple test program.
>
>   It fails with the following output:
>
>    Change Dir: /Users/Cody/aspect/aspect-build/tests/CMakeFiles/CMakeTmp
>
>
>
>   Run Build Command:"/usr/bin/make" "cmTC_fe7bd/fast"
>
>   /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
>   CMakeFiles/cmTC_fe7bd.dir/build.make CMakeFiles/cmTC_fe7bd.dir/build
>
>   Building CXX object CMakeFiles/cmTC_fe7bd.dir/testCXXCompiler.cxx.o
>
>   /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx -o
>   CMakeFiles/cmTC_fe7bd.dir/testCXXCompiler.cxx.o -c
>   /Users/Cody/aspect/aspect-build/tests/CMakeFiles/
> CMakeTmp/testCXXCompiler.cxx
>
>
>   make[1]: *** [CMakeFiles/cmTC_fe7bd.dir/testCXXCompiler.cxx.o] Illegal
>   instruction: 4
>
>   make: *** [cmTC_fe7bd/fast] Error 2
>
>
>
>
>
>   CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>   CMakeLists.txt:19 (PROJECT)
>
>
> CMake Error at CMakeLists.txt:183 (MESSAGE):
>   ERROR: Test project could not be configured.
>
>
> -- Configuring incomplete, errors occurred!
> See also "/Users/Cody/aspect/aspect-build/CMakeFiles/CMakeOutput.log".
> See also "/Users/Cody/aspect/aspect-build/CMakeFiles/CMakeError.log".
> bash-3.2$
>
>
>
>
>
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180411/c1326782/attachment-0001.html>


More information about the Aspect-devel mailing list