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 <[email protected]> ha scritto:

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 

--
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 [email protected].
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>

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/29EDE59F-37FA-449E-8081-BB6283AEA6DF%40gmail.com.

Reply via email to