gptune / GPTune

Other
64 stars 18 forks source link

spack install building error #9

Closed jaehoonkoo closed 2 years ago

jaehoonkoo commented 2 years ago

Hi @liuyangzhuan,

I am trying to build gptune on a linux cluster.

I was able to build and run on: "PRETTY_NAME="SUSE Linux Enterprise Server 15 SP1"

However, I am getting errors on: "PRETTY_NAME="openSUSE Leap 15.3" with installing OpenMPI and Openblas with C and Fortran compilers not available.

Any idea how to solve?? Thank you for your help.

==> Installing openblas-0.3.19-ls3h7rf5vnaosnguugrvkyy77lnvtbtj
==> No binary for openblas-0.3.19-ls3h7rf5vnaosnguugrvkyy77lnvtbtj found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/94/947f51bfe50c2a0749304fbe373e00e7637600b0a47b78a51382aeb30ca08562.tar.gz
==> No patches needed for openblas
==> openblas: Executing phase: 'edit'
==> Error: InstallError: OpenBLAS requires both C and Fortran compilers!

/home/jkoo/spack/var/spack/repos/builtin/packages/openblas/package.py:159, in check_compilers:
        156        # require both.
        157        if self.compiler.fc is None:
        158            raise InstallError(
  >>    159                'OpenBLAS requires both C and Fortran compilers!'
        160            )

See build log for details:
  /tmp/jkoo/spack-stage/spack-stage-openblas-0.3.19-ls3h7rf5vnaosnguugrvkyy77lnvtbtj/spack-build-out.txt

...
==> No binary for openmpi-4.1.2-rocbhe3isjd3bu5wyhherzqudt5o6fcd found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/9b/9b78c7cf7fc32131c5cf43dd2ab9740149d9d87cadb2e2189f02685749a6b527.tar.bz2
==> No patches needed for openmpi
==> openmpi: Executing phase: 'autoreconf'
==> Error: InstallError: OpenMPI requires both C and Fortran compilers!

/home/jkoo/spack/var/spack/repos/builtin/packages/openmpi/package.py:615, in die_without_fortran:
        612        # avoid delayed build errors in dependents.
        613        if (self.compiler.f77 is None) or (self.compiler.fc is None):
        614            raise InstallError(
  >>    615                'OpenMPI requires both C and Fortran compilers!'
        616            )

See build log for details:
  /tmp/jkoo/spack-stage/spack-stage-openmpi-4.1.2-rocbhe3isjd3bu5wyhherzqudt5o6fcd/spack-build-out.txt
liuyangzhuan commented 2 years ago

It seems that your spack does not find a usable C and Fortran compiler. This is not a GPTune related problem, but rather a spack problem.

You can take a look at https://spack.readthedocs.io/en/latest/getting_started.html#spack-compilers

to see how to add compilers into spack.

jaehoonkoo commented 2 years ago

Thank you for your help! It works now.