I am unable to build METIS immediately after cloning, because gklib cannot be found because the git commit for gklib cannot be found. See the following log:
% git clone https://github.com/scivision/METIS
Cloning into 'METIS'...
remote: Enumerating objects: 512, done.
remote: Counting objects: 100% (336/336), done.
remote: Compressing objects: 100% (207/207), done.
remote: Total 512 (delta 148), reused 259 (delta 108), pack-reused 176
Receiving objects: 100% (512/512), 9.79 MiB | 4.92 MiB/s, done.
Resolving deltas: 100% (159/159), done.
% cd METIS
% cmake -Bbuild
-- The C compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- metis 5.2.1.1 CMake 3.26.1 install prefix /Users/<user>/intact/METIS/build/local
[ 11%] Creating directories for 'gklib-populate'
[ 22%] Performing download step (git clone) for 'gklib-populate'
Cloning into 'gklib-src'...
fatal: invalid reference: 6897bfe
CMake Error at gklib-subbuild/gklib-populate-prefix/tmp/gklib-populate-gitclone.cmake:49 (message):
Failed to checkout tag: '6897bfe'
make[2]: *** [gklib-populate-prefix/src/gklib-populate-stamp/gklib-populate-download] Error 1
make[1]: *** [CMakeFiles/gklib-populate.dir/all] Error 2
make: *** [all] Error 2
CMake Error at /opt/homebrew/Cellar/cmake/3.26.1/share/cmake/Modules/FetchContent.cmake:1622 (message):
Build step for gklib failed: 2
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.26.1/share/cmake/Modules/FetchContent.cmake:1762:EVAL:2 (__FetchContent_directPopulate)
/opt/homebrew/Cellar/cmake/3.26.1/share/cmake/Modules/FetchContent.cmake:1762 (cmake_language)
/opt/homebrew/Cellar/cmake/3.26.1/share/cmake/Modules/FetchContent.cmake:1976 (FetchContent_Populate)
CMakeLists.txt:30 (FetchContent_MakeAvailable)
-- Configuring incomplete, errors occurred!
Using the most recent commit of gklib 078042614ff5192ab4c9bde0575bfef0d4572687 appears to resolve the problem because the referenced commit 6897bfe does not appear to exist in the repo https://github.com/scivision/GKlib.