From 70efc141fee6657ef1073ac9fbddf5ce6f142ffb Mon Sep 17 00:00:00 2001 From: Matthias Krack Date: Sun, 25 Jan 2026 11:04:01 +0100 Subject: [PATCH] Add hint message on failure --- make_cp2k.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make_cp2k.sh b/make_cp2k.sh index c763b5f1f3..309ea659b7 100755 --- a/make_cp2k.sh +++ b/make_cp2k.sh @@ -457,6 +457,10 @@ if [[ ! -d "${SPACK_BUILD_PATH}" ]]; then # Install CP2K dependencies via Spack if ! make -j"${NUM_PROCS}" --file=spack_makefile SPACK_COLOR=never --output-sync=recurse; then echo "ERROR: Building the CP2K dependencies with spack failed" + if [[ "${USE_EXTERNALS}" == "yes" ]]; then + echo "HINT: Try to re-run the build with the --no_externals flag which avoids errors" + echo " or conflicts caused by externals from the host system" + fi ${EXIT_CMD} 1 fi