Build metis faild on Mac
Description
metis
package cannot be built on my Mac if I build ogs in the existing build directory.
Steps to Reproduce the Problem
- Use this command for the first build
CC=mpicc CXX=mpicxx cmake ../ogs -DOGS_USE_PETSC=ON -DCMAKE_BUILD_TYPE=release -DOGS_USE_CONAN=OFF
- Duplicate step 1
Expected behavior: It should not be a problem if I want to repeat the build in the same directory.
Actual behavior: Here is the error message:
-- │ CPM: Adding package metis@5.2.1 (v5.2.1)
│ [ 11%] Performing update step for 'metis-populate'
│ [ 22%] Performing patch step for 'metis-populate'
│ error: patch failed: CMakeLists.txt:37
│ error: CMakeLists.txt: patch does not apply
│ error: patch failed: conf/gkbuild.cmake:126
│ error: conf/gkbuild.cmake: patch does not apply
│ error: patch failed: programs/CMakeLists.txt:11
│ error: programs/CMakeLists.txt: patch does not apply
│ error: patch failed: programs/mpmetis.c:188
│ error: programs/mpmetis.c: patch does not apply
│ make[2]: *** [metis-populate-prefix/src/metis-populate-stamp/metis-populate-patch] Error 1
│ make[1]: *** [CMakeFiles/metis-populate.dir/all] Error 2
│ make: *** [all] Error 2
│
CMake Error at /opt/homebrew/Cellar/cmake/3.27.7/share/cmake/Modules/FetchContent.cmake:1662 (message):
Build step for metis failed: 2
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.27.7/share/cmake/Modules/FetchContent.cmake:1802:EVAL:2 (__FetchContent_directPopulate)
/opt/homebrew/Cellar/cmake/3.27.7/share/cmake/Modules/FetchContent.cmake:1802 (cmake_language)
scripts/cmake/CPM.cmake:1005 (FetchContent_Populate)
scripts/cmake/CPM.cmake:799 (cpm_fetch_package)
scripts/cmake/CPM.cmake:306 (CPMAddPackage)
scripts/cmake/Dependencies.cmake:407 (CPMFindPackage)
CMakeLists.txt:93 (include)
-- Configuring incomplete, errors occurred!
Specifications
- Version: ufz/master
- Platform: Apple M1, macOS: 13.2.1
Edited by Tao_You