Thanks for the clues! 
There are several errors which appear from the search: "__AVX__ flag not 
set, no support for AVX", "insufficient support for C++20", and even "‘concept’ 
does not name a type; did you mean ‘const’?", but I think the key error is 
the following:

3.28.3/CompilerIdC/CMakeCCompilerId.c:# error "A C++ compiler has been 
selected for C." 
3.28.3/CompilerIdCXX/CMakeCXXCompilerId.cpp:# error "A C compiler has been 
selected for C++."

I've tried 
cmake -DDEAL_II_WITH_MPI=ON   -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ 
-DCMAKE_CXX_FLAGS=-std=c++17 ../CMakeLists.txt
with same errors. It looks like I need to reinstall all libraries 
specifying the compiler explicitly, right?

Best,
Vladimir

среда, 4 декабря 2024 г. в 13:37:42 UTC-5, Wolfgang Bangerth: 

>
> On 12/3/24 08:53, yushut wrote:
> > I am installing dealii an a new machine with Ubuntu 24 .  I succeed 
> > wIthout MPI, but when I run
> > cmake -DDEAL_II_WITH_MPI=ON ../CMakeLists.txt
> > I get the following error:
> > CMake Error at cmake/setup_sanity_checks.cmake:99 (message):
> >    Configuration error: Cannot compile a test program with the final set 
> of
> >    compiler and linker flags:
> >      CXX flags (DEBUG): -fopenmp-simd -O0 -ggdb -Wa,--compress-debug- 
> > sections
> >      LD flags  (DEBUG): -rdynamic  -ggdb 
> -Wl,--compress-debug-sections=zlib
> >      LIBRARIES (DEBUG): dl;rt;
> > From where this inconsistency of flags can be coming? Any help is 
> > appreciated! I'm attaching the full log.
>
> Vladimir:
> I can't tell from your log what exactly the compiler error is that leads 
> cmake to declare that it can't compile a simple test program. In 
> essence, what we do is collect the flags that we want to pass to the 
> compiler (to switch on warnings, enable optimizations, link with 
> external libraries) and then we see whether we can compile a small 
> program with it. That steps seems to be failing for you, which means 
> that either the compiler did not understand one of the flags or perhaps 
> could not find one of the external libraries. I don't know what the 
> specific reason is why it fails, but if you search through the files 
> that are probably in a directory called CMakeFiles then I think you 
> should be able to identify the specific error the compiler gives you and 
> that would be helpful to know what it is that is going wrong.
>
> So, can you see whether you can find out something more in this direction?
>
> Best
> W.
>

-- 
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/6130e188-5f85-4283-b1c6-9ec6da129c70n%40googlegroups.com.

Reply via email to