From 77643115d72bfff907f0f4e0f3c5a5142ac749c7 Mon Sep 17 00:00:00 2001 From: thesz Date: Wed, 6 Apr 2016 17:03:20 +0300 Subject: [PATCH] Fixed local build script Proper commit checkout for terra. Check for gcc version (we need 4.9). --- MS7/libs/scripts/setup-local-udp.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/MS7/libs/scripts/setup-local-udp.sh b/MS7/libs/scripts/setup-local-udp.sh index 20e5868b..1cda989d 100755 --- a/MS7/libs/scripts/setup-local-udp.sh +++ b/MS7/libs/scripts/setup-local-udp.sh @@ -2,6 +2,9 @@ # Setting up the environment to build everything - download packages, build them, etc. +# Check for gcc version. +(gcc -v |& egrep "^gcc version 4.9") || (echo "needs gcc 4.9"; exit 1) + # Bolierplate reduction. function clonepull { git clone $1 $2 || (cd $2 ; git pull) || exit 1 @@ -54,10 +57,14 @@ export GASNET_BIN="$GASNET_ROOT/bin" # -- Terra --------------------------------------------------------------------- # Terra also unavailable on cluster. -clonepull https://github.com/zdevito/terra.git terra +git clone https://github.com/zdevito/terra.git terra # won't pull for a while. cd terra +# Known good commit. +git checkout c501af43915 + + make all || exit 1 cd .. @@ -66,13 +73,15 @@ export TERRA_DIR=$BUILDDIR/terra/release # -- Legion -------------------------------------------------------------------- # We will build Legion by compiling one of the applications. -clonepull git@github.com:SKA-ScienceDataProcessor/legion.git Legion +git clone git@github.com:SKA-ScienceDataProcessor/legion.git Legion +cd Legion +git pull origin master +git checkout -b master +cd .. # Go to Regent place. cd Legion/language -sh - # Running the installation, enabling the GASnet. # TODO: optionally enable CUDA. CONDUIT=udp ./install.py --with-terra=$TERRA_DIR --gasnet || exit 1