set_omp_threads_for_mpi() in lib/src/gretl_foreign.c is defined only inside #ifdef _OPENMP, but write_mpi_script() calls it unconditionally, so a build with MPI support and without OpenMP fails with an implicit declaration error. The attached patch guards the call the same way as the definition. Found while building gretl 2026c for ALT Linux; the code is unchanged in current git master.
fix build patch
Thanks, Vitaly. That's now fixed.