Re: [aspect-devel] Fwd: Aspect installation error on OS X El Capitan

34 views
Skip to first unread message

Wolfgang Bangerth

unread,
Nov 6, 2017, 9:15:33 PM11/6/17
to aspect...@geodynamics.org, deal.II user group, Hiroaki Matsui, Hammond, Noah

Hiro,
I don't know the answer (and I don't know whether there are enough people with
Macs using ASPECT), so let me redirect you further to the deal.II mailing list
(CC:ed).

If you're not subscribed to the deal.II mailing list, you should be able to
find answers on the online google group for this mailing list.

Best
W.


On 11/06/2017 03:14 PM, Hiroaki Matsui wrote:
> Hi, all,
>
> I have sent this question to CIG-MC mailing list,
> but I found that here would be better place to discuss about it.
>
> I found that MPI compiler and mpirun command in dealii-8.5.app does not run on
> my macbook with El Capitan (OS X 10.11.6)
> with the illegal instruction. And, looking at information of gcc, this package
> seems to be built for OS X 10.12.
>
> I wonder if this package can work on El Capitan.
> If so, do we have to use an older version of deal ii for El Capitan?
> Or, do we need another deal.ii-8.5.app for the older OS X?
>
> Hiro.
>
> bash-3.2$ /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicc
> Illegal instruction: 4
> bash-3.2$ /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpic++
> Illegal instruction: 4
> bash-3.2$ /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpirun
> Illegal instruction: 4
> bash-3.2$ /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/gcc-6 -v
> Using built-in specs.
> COLLECT_GCC=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/gcc-6
> COLLECT_LTO_WRAPPER=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/gcc/6.3.0_1/libexec/gcc/x86_64-apple-darwin16.4.0/6.3.0/lto-wrapper
> Target: x86_64-apple-darwin16.4.0
> Configured with: ../configure --build=x86_64-apple-darwin16.4.0
> --prefix=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/gcc/6.3.0_1
> --libdir=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/gcc/6.3.0_1/lib/gcc/6
> --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-6
> --with-gmp=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/opt/gmp
> --with-mpfr=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/opt/mpfr --with-mpc=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/opt/libmpc
> --with-isl=/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/opt/isl
> --with-system-zlib --enable-stage1-checking --enable-checking=release
> --enable-lto --with-build-config=bootstrap-debug --disable-werror
> --with-pkgversion='Homebrew GCC 6.3.0_1'
> --with-bugurl=https://github.com/Homebrew/homebrew-core/issues
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Homebrew_homebrew-2Dcore_issues&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=KkOrCga5IcWjxrpeTIn1nmQG6jJSnwzdZwfNniMeeCc&m=xvjM-3PalmzkfsiyCsZ2CxN1rxxuFjV4-dKbyhY5F7Y&s=U59tknJQoBoqy7sftIHrx-BJ2YS-BS7nL4I6yVInS-g&e=>
> --disable-nls --enable-multilib --with-native-system-header-dir=/usr/include
> --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
> Thread model: posix
> gcc version 6.3.0 (Homebrew GCC 6.3.0_1)
>
>
>> 転送されたメッセージ:
>>
>> *差出人: *Hiroaki Matsui <hrma...@ucdavis.edu <mailto:hrma...@ucdavis.edu>>
>> *件名: **Re: Aspect installation error*
>> *日付: *2017年11月3日 16:43:58 GMT-7
>> *宛先: *"Hammond, Noah" <noah_h...@alumni.brown.edu
>> <mailto:noah_h...@alumni.brown.edu>>, cig...@geodynamics.org
>> <mailto:cig...@geodynamics.org>
>>
>> Dear Hammond,
>>
>> Thank you for asking the installation problem.
>>
>> I made the instruction with Deal II v8.2.1 and I also meet the same problem
>> by using deal II v8.5.
>> Then, this document becomes outdated instruction.
>>
>> I am solving this problem, and I also ask if anyone have already install the
>> latest ASPECT with the latest deal ii. on the mailing list.
>>
>> Have a good weekend,
>> Hiro.
>>
>>> 2017/11/03 12:53、Hammond, Noah <noah_h...@alumni.brown.edu
>>> <mailto:noah_h...@alumni.brown.edu>> のメール:
>>>
>>> Hello, I have been following your document
>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.geodynamics.org_-5Fmedia_software-3Aaspect-3Aaspect-5Fyosemite-5F20150529.pdf&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=KkOrCga5IcWjxrpeTIn1nmQG6jJSnwzdZwfNniMeeCc&m=xvjM-3PalmzkfsiyCsZ2CxN1rxxuFjV4-dKbyhY5F7Y&s=SZJsJ1mxGfvdn5zKyoV0DWOYjr0dlhUsTBHQ5jb_moo&e=>
>>> on how to install ASPECT on Mac OS X. I ran into an error with compiling
>>> Aspect and I was wondering if you could help.
>>>
>>> I am using Mac OS X El Capitan, 10.11.6.
>>>
>>> After installing Cmake and Deal.II I ran into an error Configuring aspect.
>>> It looks like there is a problem with the C compiler but I will include the
>>> error message below. I am not very experienced with Cmake so any help would
>>> be appreciated. Thanks in advance. Below is the error message:
>>>
>>> bash-3.2$ /Applications/CMake.app/Contents/bin/cmake \
>>> > -D DEAL_II_DIR=/Applications/deal.II.app/Contents/Resources \
>>> > -D CMAKE_C_COMPILER="mpicc" \
>>> > -D CMAKE_CXX_COMPILER="mpicxx" \
>>> > -D CMAKE_CXX_FLAGS="-g -O3 -std=c++11" \
>>> > -D CMAKE_C_FLAGS="-g -O3" \
>>> > ../
>>> -- ====================================================
>>> -- ============ 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 7.3.0.7030031
>>> -- The CXX compiler identification is AppleClang 7.3.0.7030031
>>> -- Check for working C compiler:
>>> /Applications/deal.II.app/Contents/Resources/opt/openmpi-1.6.5/bin/mpicc
>>> -- Check for working C compiler:
>>> /Applications/deal.II.app/Contents/Resources/opt/openmpi-1.6.5/bin/mpicc --
>>> 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.app/Contents/Resources/opt/openmpi-1.6.5/bin/mpicxx
>>> -- Check for working CXX compiler:
>>> /Applications/deal.II.app/Contents/Resources/opt/openmpi-1.6.5/bin/mpicxx
>>> -- works
>>> -- Detecting CXX compiler ABI info
>>> -- Detecting CXX compiler ABI info - done
>>> -- Detecting CXX compile features
>>> -- Detecting CXX compile features - done
>>> -- Setting up test project, see tests/setup_tests.log for details.
>>> CMake Error at
>>> /Applications/CMake.app/Contents/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45
>>> (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/noahhammond/src/aspect/build_deal.ii.app/tests/CMakeFiles/CMakeTmp
>>>
>>> Run Build Command:"/usr/bin/make" "cmTC_65999/fast"
>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
>>> CMakeFiles/cmTC_65999.dir/build.make CMakeFiles/cmTC_65999.dir/build
>>> Building CXX object CMakeFiles/cmTC_65999.dir/testCXXCompiler.cxx.o
>>>
>>> /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx
>>> -o CMakeFiles/cmTC_65999.dir/testCXXCompiler.cxx.o -c
>>> /Users/noahhammond/src/aspect/build_deal.ii.app/tests/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
>>> make[1]: *** [CMakeFiles/cmTC_65999.dir/testCXXCompiler.cxx.o] Illegal
>>> instruction: 4
>>> make: *** [cmTC_65999/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:178 (MESSAGE):
>>> ERROR: Test project could not be configured.
>>>
>>>
>>> -- Configuring incomplete, errors occurred!
>>>
>>>
>>
>
>
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect...@geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Timo Heister

unread,
Nov 7, 2017, 10:18:47 AM11/7/17
to dea...@googlegroups.com
cross-posting also here:

This is caused by the fact that the binary was compiled with
optimizations that are CPU dependent and they fail if you run on older
hardware.

We are still struggling with getting the installers to work reliable,
but I just added a .dmg file for 8.5.1 here
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dealii_dealii_releases_tag_v8.5.1&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=qZdJXcdJ_RHA7I1PcIuMSFEr6wRGXEvXd6Az7ex65z0&e= that should work
provided that you are using OSX 10.12 and not "high sierra" yet.

Can you please test and confirm if it works for you?
>> --with-bugurl=https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Homebrew_homebrew-2Dcore_issues&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=qD_7V50rP04N0FOkJkChWTsuJiM7uygomqdmeNFX5uI&e=
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.geodynamics.org_cgi-2Dbin_mailman_listinfo_aspect-2Ddevel&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=Za2hEtaY4QlfinvhcRPzsoKg4LrDM5w2y19SjA9GxA8&e=
>>
>
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: bang...@colostate.edu
> www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.math.colostate.edu_-7Ebangerth_&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=_pXVOvor16Pf5q1mKz8RaubxlStsVT7UJMqEZZaUI_U&e=
>
> --
> The deal.II project is located at https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dealii.org_&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=dnYmG8ofBeYOvmjuKMKAwTd6eW046gfCV8QF02dWgCQ&e=
> For mailing list/forum options, see
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_forum_dealii-3Fhl-3Den&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=SeHwJW1vfCgu_i5Gom3TfcCdg2s_1RWZKwZyA5kIWbA&e=
> --- You received this message because you are subscribed to the Google
> Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+un...@googlegroups.com.
> For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=sVpOvXGLo7QErSsl8bimvJCJPF2SSgH1mhpX4DJ1NVE&s=39-7No03B_dJm8MCDSHVRTCyyuOy2cXs6C6BJtnlNio&e= .



--
Timo Heister
http://www.math.clemson.edu/~heister/
Reply all
Reply to author
Forward
0 new messages