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/f8930967-4ca7-4dce-8a82-c6461089b608%40colostate.edu.

Reply via email to