Hi,
I don't think I'm capable of answering that PETSc question: if you aren't sure, then try deleting the entire source directory and unpacking it again.
I see that, in H5private.h
#ifdef H5_HAVE_C99_FUNC
#define FUNC __func__
#elif defined(H5_HAVE_FUNCTION)
#define FUNC __FUNCTION__
#else
#error "We need __func__ or __FUNCTION__ to test function names!"
#endif
Here, H5_HAVE_C99_FUNC and H5_HAVE_FUNCTION are defined when the compiler supports those particular special values. There's something about your C compiler which is incompatible with what HDF5 expects - that shouldn't happen in WSL. Do you know what compilers
you have installed?
Best,
David Wells