Awesome! Thank you so much Luca!

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

set(DEAL_II_CXX_COMPILER 
"/Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang++")

set(DEAL_II_C_COMPILER 
"/Applications/deal.II.app/Contents/Resources/spack/lib/spack/env/clang/clang")

with exactly your suggestion, works flawlessly.

Best,

Alex
luca....@gmail.com schrieb am Mittwoch, 18. September 2024 um 20:11:16 
UTC+2:

> 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,
>
>
> 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 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
>  
> <https://groups.google.com/d/msgid/dealii/6c10fcf2-9d5b-463d-ae0f-1efc5e86bda6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/a57e98a3-18ce-4ff2-aa0a-29a37fe8453cn%40googlegroups.com.

Reply via email to