Problem compiling Mesa as part of SuperBuild of ParaView 5.10.0-RC1 on Power 9 Architecture

There is a problem on compiling Mesa as part of the Superbuild of ParaView 5.10.0-RC on a Power 9 Architecture system.

Here is the end of the file

Build_directory/superbuild/mesa/src/build/meson-logs/meson-log.txt

which shows the error messages.

WARNING: Ignoring LLVM CMake dependency because dynamic was requested
llvm-config binary missing from cross or native file, or env var undefined.
Trying a default llvm-config fallback at llvm-config
Trying a default llvm-config fallback at llvm-config-12
Trying a default llvm-config fallback at llvm-config12
Trying a default llvm-config fallback at llvm-config-11
Trying a default llvm-config fallback at llvm-config11
Trying a default llvm-config fallback at llvm-config-10
Trying a default llvm-config fallback at llvm-config10
Trying a default llvm-config fallback at llvm-config-9
Trying a default llvm-config fallback at llvm-config90
Trying a default llvm-config fallback at llvm-config-8
Trying a default llvm-config fallback at llvm-config80
Trying a default llvm-config fallback at llvm-config-7
Trying a default llvm-config fallback at llvm-config70
Trying a default llvm-config fallback at llvm-config-6.0
Trying a default llvm-config fallback at llvm-config60
Trying a default llvm-config fallback at llvm-config-5.0
Trying a default llvm-config fallback at llvm-config50
Trying a default llvm-config fallback at llvm-config-4.0
Trying a default llvm-config fallback at llvm-config40
Trying a default llvm-config fallback at llvm-config-3.9
Trying a default llvm-config fallback at llvm-config39
Trying a default llvm-config fallback at llvm-config-3.8
Trying a default llvm-config fallback at llvm-config38
Trying a default llvm-config fallback at llvm-config-3.7
Trying a default llvm-config fallback at llvm-config37
Trying a default llvm-config fallback at llvm-config-3.6
Trying a default llvm-config fallback at llvm-config36
Trying a default llvm-config fallback at llvm-config-3.5
Trying a default llvm-config fallback at llvm-config35
Trying a default llvm-config fallback at llvm-config-13
Trying a default llvm-config fallback at llvm-config-devel
Trying a default llvm-config fallback at llvm-config-64
llvm-config found: YES (/usr/cta/DAAC/build/PV/Build_5.10.0-RC1_mesa_openmpi_411_gcc_1021/install/bin/llvm-config) 7.0.0
Run-time dependency LLVM (modules: bitwriter, core, engine, executionengine, instcombine, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: YES 7.0.0
Got config-tool variable has-rtti : YES
Pkg-config binary for MachineChoice.HOST is cached as not found.
Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
Run-time dependency valgrind found: NO (tried pkgconfig)
Program bison found: YES (/usr/bin/bison)
Running command: /usr/bin/bison --version
--- stdout ---
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--- stderr ---


Program bison found: YES 3.0.4 (/usr/bin/bison)
Program flex found: YES (/usr/cta/DAAC/utils/flex/2.6.4/bin/flex)
Pkg-config binary for MachineChoice.HOST is cached as not found.
Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
CMake binary for 1 is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency libunwind found: NO (tried pkgconfig and cmake)
Pkg-config binary for MachineChoice.HOST is cached as not found.
Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
CMake binary for 1 is cached.

Determining dependency 'x11' with CMake executable '/usr/cta/DAAC/build/PV/Build_5.10.0-RC1_mesa_openmpi_411_gcc_1021/install/bin/cmake'
Try CMake generator: auto
Calling CMake (['/usr/cta/DAAC/build/PV/Build_5.10.0-RC1_mesa_openmpi_411_gcc_1021/install/bin/cmake']) in /p/app/DAAC/build/PV/Build_5.10.0-RC1_mesa_openmpi_411_gcc_1021/superbuild/mesa/src/build/meson-private/cmake_x11 with:
  - "-DNAME=x11"
  - "-DARCHS="
  - "-DVERSION="
  - "-DCOMPS="
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/p/app/DAAC/build/PV/Build_5.10.0-RC1_mesa_openmpi_411_gcc_1021/superbuild/mesa/src/build/meson-private/cmake_x11/CMakeMesonToolchainFile.cmake"
  - "."
Run-time dependency x11 found: NO (tried cmake)

meson.build:1952:4: ERROR: Pkg-config binary for machine MachineChoice.HOST not found. Giving up.

It would seem that it cannot find an entry for the Power 9 architecture.

Also, it can not seem to find libunwind, even though I have built it and added its lib64 directory to the LD_LIBRARY_PATH environment variable. I am not sure if libunwind is necessary or not.

Thanks,

Joe