From 31a41be573f4eacf6684908af0735bae7e10b44e Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 4 Jun 2024 08:35:15 +0200 Subject: [PATCH] try to debug failed cmake with openmpi + mac arm --- recipe/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/recipe/build.sh b/recipe/build.sh index d6c663e..6ee3bfa 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -24,7 +24,8 @@ if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then export OMPI_CXX=$CXX export OMPI_FC=$FC export OPAL_PREFIX=$PREFIX - export EXTRA_CMAKE="-DCDEFS=Add_ " + export EXTRA_CMAKE="-DCDEFS=Add_" + export EXTRA_CMAKE="${EXTRA_CMAKE} --debug-output --debug-trycompile" fi # As mpi libraries are not correctly linked in CMake scripts, use mpi wrappers for the compilers @@ -41,6 +42,9 @@ cmake ${CMAKE_ARGS} \ -DCMAKE_INSTALL_PREFIX="$PREFIX" \ -DCMAKE_PREFIX_PATH="$PREFIX" \ -DCMAKE_BUILD_TYPE=Release \ - .. || (cat CMakeFiles/CMakeOutput.log && cat CMakeFiles/CMakeError.log && exit 1) + .. || ( + cat CMakeFiles/CMakeConfigureLog.yaml; + exit 1 + ) make install -j${CPU_COUNT}