3636
3737 - name : AMD64 FreeBSD
3838 freebsd_instance :
39- image_family : freebsd-14-0
39+ image_family : freebsd-16-0-snap
4040 architecture : amd64
4141
4242 # The following seems not available as of 20240409. See
4747 # image_family: freebsd-14-0
4848 # architecture: arm64
4949
50-
5150 dependencies_script : |
52- set -x
5351 set -euo pipefail
5452
5553 echo "MK=make" >> $CIRRUS_ENV
9088 export CC=gcc
9189 CFLAGS="-Wall -Wextra -Wpedantic -Werror"
9290 export FC=gfortran
93- #export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination -Wno-trampolines'
94- export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination'
91+ export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -ftrampoline-impl=heap -frecursive -fcheck=all -fstack-check -Wno-function-elimination'
9592
9693 $FC --version
9794 $CC --version
@@ -108,7 +105,8 @@ task:
108105 cd $ROOT_DIR/fortran/tests
109106
110107 # Decide the solver to test by $(date + %N)
111- SOLVER_NUM=$(($(date +%N) % 5))
108+ # The 10# prefix tells bash to interpret the number as base 10, regardless of leading zeros.
109+ SOLVER_NUM=$((10#$(date +%N) % 5))
112110 if [ $SOLVER_NUM -eq 0 ] ; then
113111 SOLVER=uobyqa
114112 elif [ $SOLVER_NUM -eq 1 ] ; then
@@ -123,11 +121,13 @@ task:
123121 echo $SOLVER_NUM $SOLVER
124122
125123 # Decide the integer kind to test by $(date +%N)
126- IK=$((2**($(date +%N) % 3 + 1)))
124+ # The 10# prefix tells bash to interpret the number as base 10, regardless of leading zeros.
125+ IK=$((2**(10#$(date +%N) % 3 + 1)))
127126 echo $IK
128127
129128 # Decide the real kind to test by $(date +%N)
130- RK=$((2**($(date +%N) % 3 + 2)))
129+ # The 10# prefix tells bash to interpret the number as base 10, regardless of leading zeros.
130+ RK=$((2**(10#$(date +%N) % 3 + 2)))
131131 echo $RK
132132
133133 $MK clean && $MK gtest_i${IK}_r${RK}_d1_tst.$SOLVER
0 commit comments