dealii installation issues on Intel Mac

22 views
Skip to first unread message

Alexander Greiner

unread,
Sep 18, 2024, 9:56:40 AM9/18/24
to deal.II User Group
Dear all,

after updating my Intel Mac to 
Sonoma 14.6.1
Xcode 15.4
xcode-select version 2408
AppleClang 15.0.0
I have problems reinstalling deal.II.

I tried the https://github.com/dealii/dealii/releases/download/v9.5.2/dealii-9.5.2-sonoma-intel.dmg package ending up in cmake errors (attached) and discussed also here (https://groups.google.com/g/dealii/c/2hQ_pqbejgM). I tried ccmake to set the correct compiler which leads to a successful run of cmake, but make then leads to linker errors.

I also painfully managed to install the current dealii master version directly via spack, essentially leading to the same cmake problems.

I also tried using candi (as it recently worked successfully on a Mac with M3 processor) - also without success.

I highly appreciate any tips, tricks and magic to install a recent version of deal.II.

Thank you! Best,

Alex 
cmake_error.rtf

Luca Heltai

unread,
Sep 18, 2024, 2:11:16 PM9/18/24
to dea...@googlegroups.com
The fix for this is quite simple, actually. You don’t have to recompile anything. It is enough to replace che path of the compiler inside the cmake file. 

Modify $(spack location -i dealii)/lib/share/cmake/deal.II/deal.IIConfig.cmake, around lines 109/110

    set(DEAL_II_CXX_COMPILER "/spack/lib/spack/env/gcc/g++")
    set(DEAL_II_C_COMPILER "/spack/lib/spack/env/gcc/gcc")

must become

    set(DEAL_II_CXX_COMPILER "/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpicxx")
    set(DEAL_II_C_COMPILER "/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpicc")

Luca

Il giorno 18 set 2024, alle ore 15:56, 'Alexander Greiner' via deal.II User Group <dea...@googlegroups.com> ha scritto:

Dear all,
--
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/6c10fcf2-9d5b-463d-ae0f-1efc5e86bda6n%40googlegroups.com.
<cmake_error.rtf>

Alexander Greiner

unread,
Sep 19, 2024, 4:10:08 AM9/19/24
to deal.II User Group
Awesome! Thank you so much Luca!

Just for your information, in my case I had to replace 

with exactly your suggestion, works flawlessly.

Best,

Alex
Reply all
Reply to author
Forward
0 new messages