Error of Installing Deal.ii 9.5.2 on Intel-based Mac Devices

152 views
Skip to first unread message

Lex Lee

unread,
Feb 3, 2024, 3:35:33 PM2/3/24
to deal.II User Group

I got the following error messages



-- Detecting CXX compiler ABI info - failed

-- Check for working CXX compiler: /Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++

-- Check for working CXX compiler: /Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++ - broken

CMake Error at /usr/local/Cellar/cmake/3.28.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60 (message):

  The C++ compiler


    "/Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++"


  is not able to compile a simple test program.


  It fails with the following output:


    Change Dir: '/Applications/deal.II.app/Contents/Resources/Libraries/share/deal.II/examples/step-32/CMakeFiles/CMakeScratch/TryCompile-Fkp1zK'

    

    Run Build Command(s): /usr/local/Cellar/cmake/3.28.2/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_e8efc/fast

    /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_e8efc.dir/build.make CMakeFiles/cmTC_e8efc.dir/build

    Building CXX object CMakeFiles/cmTC_e8efc.dir/testCXXCompiler.cxx.o

    /Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++    -o CMakeFiles/cmTC_e8efc.dir/testCXXCompiler.cxx.o -c /Applications/deal.II.app/Contents/Resources/Libraries/share/deal.II/examples/step-32/CMakeFiles/CMakeScratch/TryCompile-Fkp1zK/testCXXCompiler.cxx

    [spack cc] ERROR: Spack compiler must be run from Spack! Input 'SPACK_ENV_PATH' is missing.

    make[1]: *** [CMakeFiles/cmTC_e8efc.dir/testCXXCompiler.cxx.o] Error 1

    make: *** [cmTC_e8efc/fast] Error 2

    

    


  


  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:58 (project)



What happened? Thank you for your valuable time.

Wolfgang Bangerth

unread,
Feb 4, 2024, 3:40:30 PM2/4/24
to dea...@googlegroups.com
On 2/3/24 13:35, Lex Lee wrote:
>   The C++ compiler
>
>
>
> "/Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++"
>
>
>   is not able to compile a simple test program.
>

Lex:
As the error message says, your compiler does not work. How did you install
this compiler?
Best
W.

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


Lex Lee

unread,
Feb 4, 2024, 6:58:47 PM2/4/24
to dea...@googlegroups.com
Hello Prof. Bangerth,

Thanks for your instant reply.

I just use "brew install spack" in the command line.

Previous version of deal.ii app on macos platform can run successfully. However, the latest version 9.5.2 can not.

Best,
Lex

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/3X-tLW7i10k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/d8d9d933-0cb5-4544-a93b-9dcd871adf3b%40colostate.edu.

Luca Heltai

unread,
Feb 5, 2024, 2:56:09 AM2/5/24
to Deal.II Users
Dear Lex,

I see you are using a spack installed version of the dmg package.

What package version is this? What OS version do you have (i.e., is this sonoma?). If you upgraded to sonoma, and are still using the old package, this cannot work, since the compiler has changed with the upgrade.

If you use the 9.5.2 package, deal.II comes pre-installed. Does that work for you?

L.
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
> ---
> 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/8b2f0f8e-7b7e-4a66-9853-6b2e8b909820n%40googlegroups.com.

Lex Lee

unread,
Feb 5, 2024, 6:24:57 AM2/5/24
to dea...@googlegroups.com
Hello Luca,


Thank you for your kind reply.

I have 2 Intel-based mac devices. MacOS version on these 2 devices: Ventura + Sonoma. Both are installed with deal.ii version 9.5.2 and the latest compatible Xcode version. Unluckily, deal.ii 9.5.2 failed to run on these 2 devices.


Best,
Lex 

You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/3X-tLW7i10k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/A95D4F7D-E073-4503-88B7-3DB9C0EB9659%40gmail.com.

Ester Comellas

unread,
Feb 26, 2024, 8:14:30 AM2/26/24
to deal.II User Group
Hi Luca, hi Lex

Has this issue been solved? I'm trying to install deal.II on my macOS Sonoma 14.3.1 with an Intel processor using the dmg package "dealii-9.5.2-sonoma-intel.dmg" and get an error like the one Lex reported. Any help on how to get deal.II running on my laptopt will be appreciated!

Best,
Ester

El dia dilluns, 5 de febrer del 2024 a les 12:24:57 UTC+1, hitl...@gmail.com va escriure:

Lex Lee

unread,
Feb 26, 2024, 8:42:33 AM2/26/24
to dea...@googlegroups.com
Not fixed yet.   -Lex

Reply all
Reply to author
Forward
0 new messages