[aspect-devel] problem installing aspect

Cody Randel cjr2219 at gmail.com
Tue Apr 10 13:09:52 PDT 2018


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$ 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180410/2668165b/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeError.log
Type: application/octet-stream
Size: 1259 bytes
Desc: not available
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180410/2668165b/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180410/2668165b/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeOutput.log
Type: application/octet-stream
Size: 34826 bytes
Desc: not available
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180410/2668165b/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180410/2668165b/attachment-0005.html>


More information about the Aspect-devel mailing list