Is it possible to change the C/C++ Compiler used by ffcx
, when installing fenicsx
with conda
? I’m working on Linux (openSUSE Leap 15.6) and have installed fenicsx
via conda
as described on Download | FEniCS Project, but compiling the linear forms with ffcx
/jit
uses the default gcc-Compiler (Version 7.5.0) instead of the more recent gcc-14
compiler on my computer.
Hence, the compilation of demo_poisson.py
from Poisson equation — DOLFINx 0.10.0.0 documentation failed since gcc-7
does not support C17 (compiler flag -std=c17
was not accepted when comiling the C-code generated by ffcx
/jit
). Changing the compiler to gcc-14
, which is not the default compiler /usr/bin/gcc
, would probably solve the problem, but I found no option to change the compiler, neither during the installation with conda
, nor at runtime as additional option for ffcx
. Just additional compiler flags can be set to the constructor of dolfinx.fem.petsc.LinearProblem
in the tutorial, but not the compiler itself could be changed. Thanks for your help!