Installing v0.9.0 via Spack on HPC

I tried to install v0.9.0 via spack. While i have no problems installing older versions (example v0.7.2)

spack add fenics-dolfinx py-fenics-dolfinx
spack install

When i try to install v0.9.0:

spack add fenics-dolfinx@0.9.0 py-fenics-dolfinx
spack install

I get the following error:

==> Installing fenics-dolfinx-0.9.0-vx5ed6nuwjjpotmlseufe2dbm26qqscx [69/71]
==> No binary for fenics-dolfinx-0.9.0-vx5ed6nuwjjpotmlseufe2dbm26qqscx found: installing from source
==> Using cached archive: /zhome/academic/HLRS/isd/isdsg/spack/var/spack/cache/_source-cache/archive/b2/b266c74360c2590c5745d74768c04568c965b44739becca4cd6b5aa58cdbbbd1.tar.gz
==> No patches needed for fenics-dolfinx
==> fenics-dolfinx: Executing phase: 'cmake'

3 errors found in build log:
     3     -- The C compiler identification is unknown
     4     -- The CXX compiler identification is GNU 12.2.0
     5     -- Detecting C compiler ABI info
     6     -- Detecting C compiler ABI info - failed
     7     -- Check for working C compiler: /zhome/academic/HLRS/isd/isdsg/spack/opt/spack/linux-skylake_avx512/compiler-wrapper-1.0-5isgcady7hsyypjtqqdf37uougwgmbns/libexec/spack/cc
     8     -- Check for working C compiler: /zhome/academic/HLRS/isd/isdsg/spack/opt/spack/linux-skylake_avx512/compiler-wrapper-1.0-5isgcady7hsyypjtqqdf37uougwgmbns/libexec/spack/cc - broken
  >> 9     CMake Error at /zhome/academic/HLRS/isd/isdsg/spack/opt/spack/linux-rocky8-skylake_avx512/gcc-11.2.0/cmake-3.27.9-akawbnh536ivrvygyer2xirvp5w56zzd/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:
           67 (message):
     10      The C compiler
     11
     12        "/zhome/academic/HLRS/isd/isdsg/spack/opt/spack/linux-skylake_avx512/compiler-wrapper-1.0-5isgcady7hsyypjtqqdf37uougwgmbns/libexec/spack/cc"
     13
     14      is not able to compile a simple test program.
spack debug report
* **Spack:** 1.0.0.dev0 (46f773762640503530f1987f3b4dd233830ef15e)
* **Python:** 3.6.8
* **Platform:** linux-rocky8-skylake_avx512

I was also not sure if spack github or slack channel are more suitable for this problem.

The problem is solved with this PR

Make PETSc an optional dependency of fenics-dolfinx by chrisrichardson · Pull Request #49837 · spack/spack