And furthermore, I noticed that the build was hanging up at this stage:
./configure --with-linux=/lib/modules/3.4.61/build \
--with-linux-obj=/lib/modules/3.4.61/build \
--disable-server \
--disable-quilt \
--disable-dependency-tracking \
--disable-doc \
--disable-utils \
--disable-iokit \
--disable-snmp \
--disable-tests \
--enable-quota \
--with-o2ib=/lib/modules/3.4.61/build
/lib/modules/3.4.61/build/drivers/infiniband
So, I went and edited the file lustre-release/debian/rules and I edited
line 338 so as to completely remove $(IB_OPTIONS) from that ./configure
statement.
I ran "make debs" again and now it fails with Error 1 but no clear error
message; can anyone help troubleshoot this?
export KPKG_DEST_DIR="$(pwd)/.." && \
version=$(sed -ne '1s/^lustre (\(.*\)).*$/\1/p' debian/changelog) && \
rm -rf debian/tmp/modules-deb && \
mkdir debian/tmp/modules-deb && \
pushd debian/tmp/modules-deb && \
dpkg -x ../../../../lustre-source_${version}_all.deb $(pwd) && \
mkdir usr_src/ && \
tar -C usr_src/ -xjf usr/src/lustre.tar.bz2 && \
chmod 755 usr_src/modules/lustre/debian/rules && \
mkdir -p usr_share_modass && \
ln -s /usr/share/modass/include/ usr_share_modass/ && \
ln -s /usr/share/modass/packages/ usr_share_modass/ && \
echo "lustre" > usr_share_modass/compliant.list && \
export MA_DIR=$(pwd)/usr_share_modass && \
KVERS=${KVERS:-} && \
[ "x" != "x" ] && \
export IB_OPTIONS="--with-o2ib=" && \
export KSRC_TREE= && \
KSRC=${KSRC:-} && \
m-a build ${KSRC:+-k $KSRC} ${KVERS:+-l $KVERS} -i -u $(pwd) lustre && \
popd && \
VER=$(sed -ne '1s/^lustre (\(.*-[0-9][0-9]*\)).*$/\1/p' debian/changelog)
&& \
mkdir -p debs && \
mv ../linux-patch-lustre_${VER}_all.deb ../lustre-dev_${VER}_*.deb \
../lustre-source_${VER}_all.deb ../lustre-tests_${VER}_*.deb \
../lustre-utils_${VER}_*.deb ../lustre_${VER}.dsc \
../lustre_${VER}_*.changes ../lustre_${VER}.tar.gz \
../lustre-client-modules-${KVERS}_${VER}_*.deb debs/
/usr/src/lustre-release/debian/tmp/modules-deb /usr/src/lustre-release
make: *** [debs] Error 1
I suppose the next thing I'll do is just try a fresh Git pull and see how
that behaves ... perhaps some of these issues have since been fixed?
Best,
Sean
On Tue, Jul 14, 2015 at 3:11 PM, Sean Caron <scaron(a)umich.edu> wrote:
Hi all,
Working with my Git pull of a few weeks ago, trying to build the client on
Ubuntu 12.04 with house kernel.
Running through the build procedure roughly outlined in bug report LU-1706
but with some changes since the last time I tried:
# tar xvfp lustre-release.tar
# cd lustre-release
# sh autogen.sh
# ./configure --disable-server --with-o2ib=no --with-linux=/usr/src/linux
--with-linux-obj=/usr/src/linux
Build fails at the module stage with the following error:
configure: error: bad --with-o2ib path
make[2]: *** [kdist_config] Error 1
make[2]: Leaving directory
`/usr/src/lustre-release/debian/tmp/modules-deb/usr_src/modules/lustre'
make[1]: *** [kdist_build] Error 2
make[1]: Leaving directory
`/usr/src/lustre-release/debian/tmp/modules-deb/usr_src/modules/lustre'
BUILD FAILED!
See
/usr/src/lustre-release/debian/tmp/modules-deb/var_cache_modass/lustre.buildlog.3.4.61.1436900735
for details.
make: *** [debs] Error 7
It appears it's not recognizing --with-o2ib=no as outlined in ./configure
--help or i.e. bug report LU-5953.
If I take that out, build chokes because it can't find Infiniband stuff
which is expected since I'm not using Infiniband.
I've tried moving the parameter around towards the beginning of the
./configure parameter list or towards the end and it doesn't seem to make a
difference.
Is this a legit bug? Am I missing something here? Maybe resolved if I do a
fresh Git pull?
Thanks,
Sean