From 65c4c8f29b586bc8bf67786999073ce28da74add Mon Sep 17 00:00:00 2001 From: mattip Date: Thu, 20 Nov 2025 12:36:12 +0200 Subject: [PATCH 1/2] debug gfortran install and version --- tools/gfortran_utils.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/gfortran_utils.sh b/tools/gfortran_utils.sh index b7127f50..9d5cb95f 100644 --- a/tools/gfortran_utils.sh +++ b/tools/gfortran_utils.sh @@ -84,6 +84,8 @@ function check_gfortran { echo Missing gfortran exit 1 fi + echo gfortran version + gfortran --version } function get_gf_lib_for_suf { @@ -101,6 +103,7 @@ function get_gf_lib_for_suf { } if [ "$(uname)" == "Darwin" ]; then + set -ex mac_target=${MACOSX_DEPLOYMENT_TARGET:-$(get_macosx_target)} export MACOSX_DEPLOYMENT_TARGET=$mac_target # Keep this for now as some builds might depend on this being From 1e897dd77f0b1af7eb8abfdec9e293bf1b6ead12 Mon Sep 17 00:00:00 2001 From: mattip Date: Thu, 20 Nov 2025 13:17:03 +0200 Subject: [PATCH 2/2] more debug --- tools/build_steps.sh | 1 + tools/gfortran_utils.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build_steps.sh b/tools/build_steps.sh index 5569eca1..b2ca1a7e 100644 --- a/tools/build_steps.sh +++ b/tools/build_steps.sh @@ -42,6 +42,7 @@ function before_build { # Since install_fortran uses `uname -a` to determine arch, # force the architecture arch -${PLAT} bash -s << EOF +set -ex source tools/gfortran_utils.sh install_gfortran EOF diff --git a/tools/gfortran_utils.sh b/tools/gfortran_utils.sh index 9d5cb95f..fadd6d33 100644 --- a/tools/gfortran_utils.sh +++ b/tools/gfortran_utils.sh @@ -163,10 +163,10 @@ if [ "$(uname)" == "Darwin" ]; then } function install_gfortran { download_and_unpack_gfortran $(uname -m) native - check_gfortran if [[ "${PLAT:-}" == "universal2" || "${PLAT:-}" == "arm64" ]]; then install_arm64_cross_gfortran fi + check_gfortran } function get_gf_lib {