# Installing v0.9.0 via Spack on HPC

**URL:** <https://fenicsproject.discourse.group/t/installing-v0-9-0-via-spack-on-hpc/17366>\
**Category:** installation\
**Created:** [April 3, 2025, 9:38am UTC](https://fenicsproject.discourse.group/t/installing-v0-9-0-via-spack-on-hpc/17366 "2025-04-03T09:38:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steffenger](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/steffenger/32/8180_2.png) [@steffenger](https://fenicsproject.discourse.group/u/steffenger)\
**Post date:** [April 3, 2025, 9:38am UTC](https://fenicsproject.discourse.group/t/installing-v0-9-0-via-spack-on-hpc/17366/1 "2025-04-03T09:38:01Z")

</div>

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

```auto
spack add fenics-dolfinx py-fenics-dolfinx
spack install

```

When i try to install v0.9.0:

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

```

I get the following error:

```auto
==> 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.

```

```auto
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.

---

<div class="post-metadata">

**Author:** ![steffenger](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/steffenger/32/8180_2.png) [@steffenger](https://fenicsproject.discourse.group/u/steffenger)\
**Post date:** [April 16, 2025, 7:36am UTC](https://fenicsproject.discourse.group/t/installing-v0-9-0-via-spack-on-hpc/17366/2 "2025-04-16T07:36:31Z")

</div>

The problem is solved with this PR

[Make PETSc an optional dependency of `fenics-dolfinx` by chrisrichardson · Pull Request #49837 · spack/spack](https://github.com/spack/spack/pull/49837/files/81283c1008f6ee86c58d25a399efeba2922207c6)
