We saw this lately.

The problem was that, for whatever reason, the Xcode compiler toolchain
forgot to install the C++ standard library (clang/llvm's libc++).


Can you try reinstalling the toolchain as described here?

  https://mac.install.guide/commandlinetools/7


Best,
Matthias



On Sat, Dec 28, 2024, at 01:41 CST, akash ahmed <ahmed0...@gmail.com> wrote:

> Dear all,
> My MacBook Pro has a chip Apple M2 max and macOS Sonoma,
>
> Apple clang version 16.0.0 (clang-1600.0.26.6)
>
> cmake version 3.31.2. However, I got the following error:
>
> ./candi.sh -j 8 --packages="dealii"
>
> *Building dealii v9.6.1*
>
> -- This is CMake 3.31.3
>
> -- 
>
> .............................................
>
> -- Include 
> /Users/mmohebuj/dealii-candi/tmp/unpack/deal.II-v9.6.1/cmake/checks/check_01_cxx_features.cmake
>
> -- C++17 support is disabled.
>
> CMake Error at cmake/checks/check_01_cxx_features.cmake:368 (message):
>
>   
>
>
>   The current version of deal.II requires a compiler with enabled C++17
>
>   support.  Make sure to use a modern enough compiler (GCC version 9 
> onwards,
>
>   Clang version 10 onwards, or Microsoft MS VS 2019 onwards) and check that
>
>   the compiler flag "-std=" is either unset, or set to at least c++17.
>
>   Similarly, please make sure that the CMake variable CMAKE_CXX_STANDARD is
>
>   either unset, or set at least to 17.
>
>
>
> Call Stack (most recent call first):
>
>   cmake/macros/macro_verbose_include.cmake:18 (include)
>
>   CMakeLists.txt:116 (verbose_include)
>
>
> -- Configuring incomplete, errors occurred!
>
> *Failure with exit status: 1*
>
> *Exit message: There was a problem configuring dealii v9.6.1.*
>
> zsh: exit 1     ./candi.sh -j 8 --packages="dealii"
>
>
> It would be a great help if you please share your thoughts on resolving 
> this issue. 
>
> Thank you in advance.
>
> Jaman

-- 
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 visit 
https://groups.google.com/d/msgid/dealii/87h66j7jeq.fsf%4043-1.org.

Reply via email to