Mac OS X 10.13.4 Installation problem

125 views
Skip to first unread message

mrjonm...@gmail.com

unread,
May 10, 2018, 2:22:58 PM5/10/18
to deal.II User Group
Hi all,
I want to be able to run step-40 on my Mac, but the installation using the .dmg doesn't have PETSc and p4est turned on.

I'm trying to build 8.5.1 starting with the following cmake command:

~/Library/dealii/sources/build$ cmake -DCMAKE_INSTALL_PREFIX=/Users/matthejl/Library/dealii -DDEAL_II_WITH_PETSC=ON -DDEAL_II_WITH_P4EST=ON -DPETSC_DIR=/Users/matthejl/Library/petsc/petsc-3.9.0/ -DPETSC_ARCH=arch-darwin-c-debug -DP4EST_DIR=/Users/matthejl/Library/p4est-2.0/local -DDEAL_II_WITH_HDF5=OFF ../dealii-8.5.1/


It seems to have a problem compiling the simple test program:

CMake Error at cmake/setup_finalize.cmake:95 (MESSAGE):

  


    Configuration error: Cannot compile a test program with the final set of

    compiler and linker flags:

      CXX flags (DEBUG): -pedantic -fPIC -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch -Woverloaded-virtual -Wno-long-long -Wno-implicit-fallthrough -Wno-deprecated-declarations -Qunused-arguments -Wno-unsupported-friend -Wno-unused-parameter -Wno-unused-variable -Wno-c99-extensions -Wno-variadic-macros -Wno-c++11-extensions -Wno-undefined-var-template -openmp-simd -std=c++14 -ftemplate-depth=1024 -Wno-parentheses -Wno-unused-local-typedefs -Og -ggdb -Wa,--compress-debug-sections

      LD flags  (DEBUG): -Wl,-headerpad_max_install_names -Wl,-flat_namespace -Wl,-commons,use_dylibs -ggdb

      LIBRARIES (DEBUG): /usr/lib/libbz2.dylib;/usr/lib/libz.dylib;/Users/matthejl/Library/petsc/petsc-3.9.0/arch-darwin-c-debug/lib/libpetsc.dylib;/Users/matthejl/Library/petsc/petsc-3.9.0/arch-darwin-c-debug/lib/libHYPRE.a;/usr/lib/liblapack.dylib;/usr/lib/libblas.dylib;/opt/local/lib/mpich-mp/libmpifort.dylib;/opt/local/lib/gcc5/libgcc_ext.10.5.dylib;/usr/lib/libc++.dylib;/opt/local/lib/mpich-mp/libmpicxx.dylib;/System/Library/Frameworks/System.framework;dl;/opt/local/lib/libboost_iostreams-mt.dylib;/opt/local/lib/libboost_serialization-mt.dylib;/opt/local/lib/libboost_system-mt.dylib;/opt/local/lib/libboost_thread-mt.dylib;/opt/local/lib/libboost_regex-mt.dylib;/opt/local/lib/libboost_chrono-mt.dylib;/opt/local/lib/libboost_date_time-mt.dylib;/opt/local/lib/libboost_atomic-mt.dylib;/Users/matthejl/Library/p4est-2.0/local/lib/libp4est.dylib;/Users/matthejl/Library/p4est-2.0/local/lib/libsc.dylib;/System/Library/Frameworks/Accelerate.framework;/opt/local/lib/libf77blas.a;/opt/local/lib/libatlas.a;m;/opt/local/lib/mpich-mp/libmpi.dylib;/opt/local/lib/mpich-mp/libpmpi.dylib;

    

Attached are my output and error logs for reference. 
Thanks,
Jon
CMakeOutput.log
CMakeError.log

Denis Davydov

unread,
May 11, 2018, 5:56:28 PM5/11/18
to deal.II User Group
Hi Jon,

If that won't work, you can try building with Spack https://github.com/dealii/dealii/wiki/deal.II-in-Spack that's what I use on macOS.
You would need to first compile gcc with it, see the wiki page.

Regards,
Denis.
Reply all
Reply to author
Forward
0 new messages