]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: sets quit_if_fail for specific builds
authorUwe Köcher <koecher@hsu-hamburg.de>
Fri, 6 Nov 2015 17:11:20 +0000 (18:11 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Fri, 6 Nov 2015 17:11:20 +0000 (18:11 +0100)
12 files changed:
candi.sh
deal.II-toolchain/packages/boost.package
deal.II-toolchain/packages/bzip2.package
deal.II-toolchain/packages/dealii-prepare.package
deal.II-toolchain/packages/hdf5.package
deal.II-toolchain/packages/p4est.package
deal.II-toolchain/packages/parmetis.package
deal.II-toolchain/packages/petsc.package
deal.II-toolchain/packages/slepc.package
deal.II-toolchain/packages/superlu_dist.package
deal.II-toolchain/packages/trilinos.package
deal.II-toolchain/packages/zlib.package

index 90581439b8ff8ade792fa863e3034ad376e2c559..f78402e13595c86dc0ae54401e78da361e476481 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -205,7 +205,7 @@ download_archive () {
             # Remove the file and check if that was successful
             rm -f ${ARCHIVE_FILE}
             if [ $? = 0 ]; then
-                cecho ${GOOD} "corrupted ${ARCHIVE_FILE} has been removed"
+                cecho ${INFO} "corrupted ${ARCHIVE_FILE} has been removed"
             else
                 cecho ${BAD} "corrupted ${ARCHIVE_FILE} could not be removed."
                 cecho ${INFO} "Please remove the file ${DOWNLOAD_PATH}/${ARCHIVE_FILE} on your own!"
@@ -216,7 +216,7 @@ download_archive () {
         
         # Set up complete url
         url=${source}${ARCHIVE_FILE}
-        cecho ${GOOD} "Trying to download ${url}"
+        cecho ${INFO} "Trying to download ${url}"
         
         # Download.
         # If curl or wget is failing, continue this loop for trying an other mirror.
index 25578797444245e50b97c299363058ec73fbafd9..dd1f7ac8f79744a766d4614f9a8514e2533518cb 100644 (file)
@@ -9,8 +9,11 @@ INSTALL_PATH=${INSTALL_PATH}/${NAME}
 package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* .
     ./bootstrap.sh --prefix=${INSTALL_PATH}
+    quit_if_fail "boost build ./bootstrap.sh failed"
+    
     echo "using mpi ;" > user-config.jam
     ./b2 -j ${PROCS} --user-config=user-config.jam --build-dir=candi_build_dir link=shared install ${CONFOPTS}
+    quit_if_fail "boost build ./b2 failed"
 }
 
 package_specific_register () {
index ef4d77e567eabe22932ac958ccc7f038b5b4a871..0482cf1f38ef7a01284804ae71a3b6ef98d2223e 100644 (file)
@@ -1,5 +1,6 @@
-NAME=bzip2-1.0.6
-SOURCE=http://www.bzip.org/1.0.6/
+VERSION=1.0.6
+NAME=bzip2-${VERSION}
+SOURCE=http://www.bzip.org/${VERSION}/
 PACKING=.tar.gz
 CHECKSUM=00b516f4704d4a7cb50a1d97e6e8e15b
 BUILDCHAIN=custom
@@ -10,7 +11,7 @@ package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* .
     
     # patch the Makefile
-    patch -p1 --forward < ${ORIG_DIR}/${PROJECT}/patches/bzip2-1.0.6.patch || true
+    patch -p1 --forward < ${ORIG_DIR}/${PROJECT}/patches/bzip2-${VERSION}.patch || true
     
     # compile bzip2
     make install
index 75cc33f7163c67f1d3dc202c198d73e9db989097..fa3df42aca5ab3789b2134c9bdf698cd36196b65 100644 (file)
@@ -27,7 +27,6 @@ if [ -z "${SuperLUDist}" ]; then
     SuperLUDist=ON
 fi
 
-
 # Transform upper case to lower case.
 PACKAGES_OFF=${PACKAGES_OFF,,}
 
index e3be378e6f476d892e1860b4ea7b9093352b5157..1be6113ee524bb2b7a2b3718fb3089711739eb62 100644 (file)
@@ -12,4 +12,3 @@ INSTALL_PATH=${INSTALL_PATH}/${NAME}
 package_specific_register () {
     export HDF5_DIR=${INSTALL_PATH}
 }
-
index 5f867b9240ab4f3fa6fc6d655b3aab4eed077c53..8782bfb4249dcb3d6a505340dc3cf7238ddd2cc4 100644 (file)
@@ -31,7 +31,7 @@ package_specific_setup () {
     # choose names for fast and debug build directories
     BUILD_FAST="${BUILD_PATH}/${NAME}/FAST"
     BUILD_DEBUG="${BUILD_PATH}/${NAME}/DEBUG"
-
+    
     # choose names for fast and debug installation directories
     INSTALL_FAST="${INSTALL_PATH}/FAST"
     INSTALL_DEBUG="${INSTALL_PATH}/DEBUG"
@@ -43,7 +43,7 @@ package_specific_setup () {
     echo "Install FAST: $INSTALL_FAST"
     echo "Install DEBUG: $INSTALL_DEBUG"
     echo "Checking environment: CFLAGS P4EST_CFLAGS_FAST P4EST_CFLAGS_DEBUG"
-
+    
     test -f "${UNPACK_PATH}/${EXTRACTSTO}/src/p4est.h" || bdie "Main header file missing"
     test -f "${UNPACK_PATH}/${EXTRACTSTO}/configure" || bdie "Configure script missing"
     
@@ -53,8 +53,9 @@ package_specific_setup () {
     # remove old versions
     if test -d "${BUILD_PATH}/${NAME}"; then
         rm -rf "${BUILD_PATH}/${NAME}"
+        quit_if_fail "p4est: rm -rf ${BUILD_PATH}/${NAME} failed"
     fi
-
+    
     echo "Build FAST version in $BUILD_FAST"
     mkdir -p "$BUILD_FAST"
     cd "$BUILD_FAST"
@@ -87,7 +88,6 @@ package_specific_setup () {
     touch candi_successful_build
 }
 
-
 package_specific_register () {
     export P4EST_DIR=${INSTALL_PATH}
 }
index 57ae8b2d58c25f81b30783a0e34dad60bc97c62d..055ad28c8f800b5bffc921e52a2a80f6ad94d6ad 100644 (file)
@@ -8,14 +8,30 @@ INSTALL_PATH=${INSTALL_PATH}/${NAME}
 
 package_specific_build() {
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
+    
+    # Firstly build metis
     cd metis
+    
     make config prefix=${INSTALL_PATH} shared=1
+    quit_if_fail "parmetis/metis make config failed"
+    
     make -j ${PROCS}
+    quit_if_fail "parmetis/metis make failed"
+    
     make install
+    quit_if_fail "parmetis/metis make install failed"
+    
+    # Secondly build parmetis
     cd ..
+    
     make config prefix=${INSTALL_PATH} shared=1
+    quit_if_fail "parmetis make config failed"
+    
     make -j ${PROCS}
+    quit_if_fail "parmetis make failed"
+    
     make install
+    quit_if_fail "parmetis make install failed"
 }
 
 package_specific_register () {
index fffaeff630145bbc423e76f6243a30d0b8d9e1b7..e07a24ac1c5f20ef2d9e8d0baa58a5b4841df297 100644 (file)
@@ -20,23 +20,23 @@ for external_pkg in hypre; do
     CONFOPTS="${CONFOPTS} --download-${external_pkg}=1"
 done
 
-if [ "$CC" ]; then
+if [ ! -z "$CC" ]; then
     CONFOPTS="${CONFOPTS} CC=$CC"
 fi
 
-if [ "$CXX" ]; then
+if [ ! -z "$CXX" ]; then
     CONFOPTS="${CONFOPTS} CXX=$CXX"
 fi
 
-if [ "$FC" ]; then
+if [ ! -z "$FC" ]; then
     CONFOPTS="${CONFOPTS} FC=$FC"
 fi
 
-if [ "$F77" ]; then
+if [ ! -z "$F77" ]; then
     CONFOPTS="${CONFOPTS} F77=$F77"
 fi
 
-if [ "$F90" ]; then
+if [ ! -z "$F90" ]; then
     CONFOPTS="${CONFOPTS} F90=$F90"
 fi
 
@@ -51,10 +51,12 @@ package_specific_setup () {
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
     
     ./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
+    quit_if_fail "petsc ./configure failed"
+    
     make all install
+    quit_if_fail "petsc make all install failed"
 }
 
 package_specific_register () {
     export PETSC_DIR=${INSTALL_PATH}
 }
-
index dbae55ba16187b35ede871ff7223791d9c36397f..52225279b40070362f40776554958ea82bca688c 100644 (file)
@@ -12,7 +12,10 @@ package_specific_setup () {
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
     
     ./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
+    quit_if_fail "slepc ./configure failed"
+    
     make SLEPC_DIR=$PWD PETSC_DIR=${PETSC_DIR} all install
+    quit_if_fail "slepc make all install failed"
 }
 
 package_specific_register () {
index b4911e451fb0b83e6a64a69da3566e1c774672da..017e7d6aa94c92b4f28bdb5482d69cbe47fb844d 100644 (file)
@@ -78,6 +78,8 @@ CDEFS        = -DAdd_
     
     # now compile superlu_dist
     make superlulib
+    quit_if_fail "superlu_dist make superlulib failed"
+    
     mkdir -p ${INSTALL_PATH}/include/superlu
     cp SRC/*.h ${INSTALL_PATH}/include/superlu
 }
@@ -85,4 +87,3 @@ CDEFS        = -DAdd_
 package_specific_register () {
     export SUPERLU_DIR=${INSTALL_PATH}
 }
-
index 7859dacd9f7aee130fa449b6ae55c1b3513729a2..5e7e9ee64828dc026b212615f9017f4b65184a92 100644 (file)
@@ -1,3 +1,7 @@
+if [ -z "${TRILINOS_MAJOR_VERSION}" ]; then
+    TRILINOS_MAJOR_VERSION=AUTO
+fi
+
 if [ ${TRILINOS_MAJOR_VERSION} = "AUTO" ] || [ ${TRILINOS_MAJOR_VERSION} = "12" ]; then
     SOURCE=http://trilinos.csbsju.edu/download/files/
     VERSION=12.2.1
index 7e0f3cb4f63934aba5efb9443f9c3c1ac3c3b2f8..afffeb6240af1ad57a0bac14d6a3b23affd69e75 100644 (file)
@@ -9,10 +9,12 @@ INSTALL_PATH=${INSTALL_PATH}/${NAME}
 package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* .
     ./configure --prefix=${INSTALL_PATH}
+    quit_if_fail "zlib configure failed"
+    
     make install
+    quit_if_fail "zlib make install failed"
 }
 
-
 package_specific_register () {
     export ZLIB_DIR=${INSTALL_PATH}/
     export ZLIB_INCLUDE=${INSTALL_PATH}/include

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.