Skip to content

Commit 532d758

Browse files
committed
More diagnostics
1 parent 9e1f036 commit 532d758

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

dev/conda/build-generic.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ abort()
3232
}
3333

3434
TIMESTAMP=$( date '+%Y-%m-%d %H:%M:%S' )
35-
echo "START $TIMESTAMP"
35+
log "START $TIMESTAMP"
3636

3737
# This is in the exported Swift/T source tree
3838
DEV_BUILD=dev/build
3939
# This is in the builder RECIPE_DIR source tree
4040
DEV_CONDA=$( cd $RECIPE_DIR/.. ; /bin/pwd -P )
4141

4242
: ${ENABLE_R:=0}
43-
echo ENABLE_R=$ENABLE_R
43+
log ENABLE_R=$ENABLE_R
4444

4545
{
4646
log "TIMESTAMP: $TIMESTAMP"
@@ -74,10 +74,10 @@ if [[ ! -d $DEV_BUILD ]]
7474
then
7575
# This directory disappears under certain error conditions
7676
# The user must clean up the work directory
77-
echo "Cannot find DEV_BUILD=$DEV_BUILD under $PWD"
78-
echo "Delete this directory and the corresponding work_moved"
79-
echo $PWD
80-
echo "See build-generic.log for SRC_DIR"
77+
log "Cannot find DEV_BUILD=$DEV_BUILD under $PWD"
78+
log "Delete this directory and the corresponding work_moved"
79+
log $PWD
80+
log "See build-generic.log for SRC_DIR"
8181
exit 1
8282
fi
8383

@@ -114,7 +114,7 @@ then
114114
fi
115115
export R_HOME=$( R RHOME )
116116

117-
echo "build-generic.sh: Installing RInside into $R_HOME ..."
117+
log "Installing RInside into $R_HOME ..."
118118
Rscript $DEV_CONDA/install-RInside.R 2>&1 | \
119119
tee $RECIPE_DIR/install-RInside.log
120120
if ! grep -q "Swift-RInside-SUCCESS" $RECIPE_DIR/install-RInside.log
@@ -153,9 +153,12 @@ ${SED_I[@]} -f $SETTINGS_SED swift-t-settings.sh
153153
{
154154
echo
155155
# Anaconda Autoconf 2.72 is buggy
156-
echo "Build tools:"
157-
which autoreconf aclocal autom4te m4
156+
log "build tools:"
157+
which m4 autoreconf aclocal autom4te mpicc
158158
m4 --version
159+
autoreconf --version | head -1
160+
log "mpicc show:"
161+
mpicc -show
159162
echo
160163
log "BUILD SWIFT-T START: $( date '+%Y-%m-%d %H:%M:%S' )"
161164
./build-swift-t.sh -vv 2>&1

0 commit comments

Comments
 (0)