Permalink
Browse files

add buildme_dev for developers, create buildme for end users

  • Loading branch information...
adammoody committed Jun 30, 2017
1 parent 68b5e0d commit b3680d3ceff23556d8bdfb1877850b435768c3bf
Showing with 94 additions and 40 deletions.
  1. +42 −40 buildme
  2. +52 −0 buildme_dev
View
82 buildme
@@ -5,48 +5,50 @@ use mvapich2-gnu-2.2
set -x
mpifileutils=mpifileutils-0.7
topdir=`pwd`
installdir=$topdir/install
export PATH="${topdir}/autotools/install/bin:$PATH"
# if EA is set to true then add configure option
EA=false
build_type=""
CC=mpicc
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
CC=mpigcc
export CXX=mpig++
if [ ! -f ${mpifileutils}.tar.gz ] ; then
wget https://github.com/hpc/mpifileutils/releases/download/v0.7/${mpifileutils}.tar.gz
fi
./autogen.sh
rm -rf build
mkdir -p build
cd build
export PKG_CONFIG_PATH="${installdir}/lib/pkgconfig"
# TODO: avoid this step
# necessary so configure test of dtcmp links with MPI
export CC=${CC}
# hack to get things to build after common library
export CFLAGS="-g -O0 -I${topdir}/src/common -DDCOPY_USE_XATTRS"
export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircle"
../configure --build=${build_type} \
--enable-lustre \
--enable-experimental \
--prefix=$installdir \
--disable-silent-rules \
--with-dtcmp=$installdir && \
make uninstall && \
make VERBOSE=1 && \
make VERBOSE=1 install
if [ $? -ne 0 ] ; then
echo "failed to configure, build, or install file utils"
exit 1
fi
rm -rf ${mpifileutils}
tar -zxf ${mpifileutils}.tar.gz
pushd ${mpifileutils}
# if EA is set to true then add configure option
EA=false
build_type=""
export CC=mpicc
if $EA ; then
# build line option required if building for EA systems
build_type="--build=powerpc64le-redhat-linux-gnu"
export CC=mpigcc
export CXX=mpig++
fi
export PKG_CONFIG_PATH="${installdir}/lib/pkgconfig"
# TODO: avoid this step
# necessary so configure test of dtcmp links with MPI
# hack to get things to build after common library
export CFLAGS="-g -O0 -I${topdir}/src/common -DDCOPY_USE_XATTRS"
export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircle"
./configure \
$build_type \
--enable-lustre \
--enable-experimental \
--prefix=$installdir \
--disable-silent-rules \
--with-dtcmp=$installdir && \
make uninstall && \
make VERBOSE=1 && \
make VERBOSE=1 install
if [ $? -ne 0 ] ; then
echo "failed to configure, build, or install mpiFileUtils"
exit 1
fi
popd
View
@@ -0,0 +1,52 @@
#!/bin/bash
. /usr/local/tools/dotkit/init.sh
use mvapich2-gnu-2.2
set -x
topdir=`pwd`
installdir=$topdir/install
export PATH="${topdir}/autotools/install/bin:$PATH"
# if EA is set to true then add configure option
EA=false
build_type=""
CC=mpicc
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
CC=mpigcc
export CXX=mpig++
fi
./autogen.sh
rm -rf build
mkdir -p build
cd build
export PKG_CONFIG_PATH="${installdir}/lib/pkgconfig"
# TODO: avoid this step
# necessary so configure test of dtcmp links with MPI
export CC=${CC}
# hack to get things to build after common library
export CFLAGS="-g -O0 -I${topdir}/src/common -DDCOPY_USE_XATTRS"
export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircle"
../configure --build=${build_type} \
--enable-lustre \
--enable-experimental \
--prefix=$installdir \
--disable-silent-rules \
--with-dtcmp=$installdir && \
make uninstall && \
make VERBOSE=1 && \
make VERBOSE=1 install
if [ $? -ne 0 ] ; then
echo "failed to configure, build, or install file utils"
exit 1
fi

0 comments on commit b3680d3

Please sign in to comment.