From 3ad3ebaf7073abbc9708d50aff429cafc949aafd Mon Sep 17 00:00:00 2001 From: Louis Smith <> Date: Fri, 15 May 2026 12:02:20 -0400 Subject: [PATCH 1/2] conda_build.sh: wipe stale CMakeCache; abort install on build failure --- conda_build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conda_build.sh b/conda_build.sh index 7fb3d135..cdf7d402 100755 --- a/conda_build.sh +++ b/conda_build.sh @@ -108,7 +108,8 @@ source $CONDA_BASE/etc/profile.d/conda.sh conda activate $envname if [[ -d build ]] ; then - echo "Warning- using existing build directory" + echo "Warning- using existing build directory; clearing CMakeCache.txt to force a fresh configure against $CONDA_PREFIX" + rm -f build/CMakeCache.txt else mkdir build fi @@ -118,7 +119,10 @@ echo "*** Configuring LOOS ***" cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} .. echo "*** Building LOOS ***" -cmake --build . -j${numprocs} +if ! cmake --build . -j${numprocs} ; then + echo "*** LOOS build failed; skipping install ***" + exit 1 +fi if [[ ${do_install} ]]; then echo "*** Installing LOOS ***" From 86432953889aa9c65d1aaf10578c7f2df0a6d4ab Mon Sep 17 00:00:00 2001 From: Louis Smith <> Date: Fri, 15 May 2026 12:32:26 -0400 Subject: [PATCH 2/2] conda_build.sh: tee build output to build.log for failure diagnosis --- conda_build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conda_build.sh b/conda_build.sh index cdf7d402..001136fd 100755 --- a/conda_build.sh +++ b/conda_build.sh @@ -119,8 +119,9 @@ echo "*** Configuring LOOS ***" cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} .. echo "*** Building LOOS ***" -if ! cmake --build . -j${numprocs} ; then - echo "*** LOOS build failed; skipping install ***" +set -o pipefail +if ! cmake --build . -j${numprocs} 2>&1 | tee build.log ; then + echo "*** LOOS build failed; full output in build/build.log ***" exit 1 fi