<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>In fact Cray has observed this particular build failure. There is a Jira issue and proposed patch for the implicit declaration of ‘futimes’</div>
<div><br>
</div>
<div><a href="https://jira.hpdd.intel.com/browse/LU-6835">https://jira.hpdd.intel.com/browse/LU-6835</a></div>
<div><br>
</div>
<div>- Justin Miller</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>lustre-discuss on behalf of Patrick Farrell<br>
<span style="font-weight:bold">Date: </span>Friday, July 17, 2015 at 11:20 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a>"<br>
<span style="font-weight:bold">Subject: </span>Re: [lustre-discuss] Building Lustre client from Git pull fails when --with-o2ib=no parameter specified to ./configure<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#FFFFFF" text="#000000">You're building lfs with warnings and -Werror turned up. These may be default flags on your system, but it can be problematic, as Intel's build process tends not to do this.  (Cray has occasional issues with this, as we
 build our userspace tools with different compiler flags than Intel does)<br>
<br>
- Patrick<br>
<div class="moz-cite-prefix">On 07/17/2015 11:14 AM, Sean Caron wrote:<br>
</div>
<blockquote cite="mid:CAA43vkXHYwLARwXJQ_UmVuqQMCLZYguoo-Et=Gmhyfw9u-p2Ng@mail.gmail.com" type="cite">
<div dir="ltr">I was using a Git pull from Intel circa a few weeks ago ... same code base I had used to build Server on CentOS 7.
<div><br>
</div>
<div>I tried a fresh Git pull just from yesterday and the build failed with an actual compilation error:</div>
<div><br>
</div>
<div>
<div>gcc -DHAVE_CONFIG_H -I. -I../..   -include /usr/src/lustre-release/config.h -I/usr/src/lustre-release/libcfs/include -I/usr/src/lustre-release/lnet/include -I/usr/src/lustre-release/lustre/include -D_FORTIFY_SOURCE=2 -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wall -g -O2 -O2 -Werror -c lustre_lfsck.c</div>
<div>lfs.c: In function ‘migrate_copy_timestamps’:</div>
<div>lfs.c:481:2: error: implicit declaration of function ‘futimes’ [-Werror=implicit-function-declaration]</div>
<div>  return futimes(fdv, tv);</div>
<div>  ^</div>
<div>gcc -DHAVE_CONFIG_H -I. -I../..   -include /usr/src/lustre-release/config.h -I/usr/src/lustre-release/libcfs/include -I/usr/src/lustre-release/lnet/include -I/usr/src/lustre-release/lustre/include -D_FORTIFY_SOURCE=2 -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wall -g -O2 -O2 -Werror -c obd.c</div>
<div>gcc -DHAVE_CONFIG_H -I. -I../..   -include /usr/src/lustre-release/config.h -I/usr/src/lustre-release/libcfs/include -I/usr/src/lustre-release/lnet/include -I/usr/src/lustre-release/lustre/include -D_FORTIFY_SOURCE=2 -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wall -g -O2 -O2 -Werror -c lustre_cfg.c</div>
<div>cc1: all warnings being treated as errors</div>
<div>make[6]: *** [lfs.o] Error 1</div>
<div>make[6]: *** Waiting for unfinished jobs....</div>
<div>make[6]: Leaving directory `/usr/src/lustre-release/lustre/utils'</div>
<div>make[5]: *** [all-recursive] Error 1</div>
<div>make[5]: Leaving directory `/usr/src/lustre-release/lustre/utils'</div>
<div>make[4]: *** [all-recursive] Error 1</div>
<div>make[4]: Leaving directory `/usr/src/lustre-release/lustre'</div>
<div>make[3]: *** [all-recursive] Error 1</div>
<div>make[3]: Leaving directory `/usr/src/lustre-release'</div>
<div>make[2]: *** [all] Error 2</div>
<div>make[2]: Leaving directory `/usr/src/lustre-release'</div>
<div>make[1]: *** [build-stamp] Error 2</div>
<div>make[1]: Leaving directory `/usr/src/lustre-release'</div>
<div>dpkg-buildpackage: error: debian/rules build gave error exit status 2</div>
<div>make: *** [debs] Error 2</div>
</div>
<div><br>
</div>
<div>So looks like some issues there ... I will wait a few days and hopefully that gets resolved and I can try again.</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Sean</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jul 15, 2015 at 6:10 PM, Christopher J. Morrone <span dir="ltr">
<<a moz-do-not-send="true" href="mailto:morrone2@llnl.gov" target="_blank">morrone2@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hmmm.  There are certainly some puzzling things done in the lustre build system around O2IB options and debian packaging.  Sorry, don't think I'll be of much help on this one.<br>
<br>
chris
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 07/15/2015 02:25 PM, Christopher J. Morrone wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
What version of Lustre are you using?  I don't can't reproduce your<br>
problem on master.<br>
<br>
Chris<br>
<br>
On 07/15/2015 02:10 PM, Christopher J. Morrone wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
You could try seeing if "--without-o2ib" gets you what you want.  It<br>
might not, but at least it is quick to try.<br>
<br>
Chris<br>
<br>
<br>
On 07/15/2015 01:41 PM, Sean Caron wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Sorry for the cross-post from the Intel Lustre list but hoping I might<br>
get more traction here...<br>
<br>
Working with my Git pull of the Intel Lustre codebase from a few weeks<br>
ago, I'm trying to build the client on Ubuntu 12.04 with a house-built<br>
3.4.61 kernel.<br>
<br>
Running through the build procedure roughly outlined in bug report<br>
LU-1706 but with some changes since the last time I tried:<br>
<br>
# tar xvfp lustre-release.tar<br>
# cd lustre-release<br>
# sh autogen.sh<br>
# ./configure --disable-server --with-o2ib=no<br>
  --with-linux=/usr/src/linux --with-linux-obj=/usr/src/linux<br>
# make debs<br>
<br>
Build fails at the module stage with the following error:<br>
<br>
configure: error: bad --with-o2ib path<br>
make[2]: *** [kdist_config] Error 1<br>
make[2]: Leaving directory<br>
`/usr/src/lustre-release/debian/tmp/modules-deb/usr_src/modules/lustre'<br>
make[1]: *** [kdist_build] Error 2<br>
make[1]: Leaving directory<br>
`/usr/src/lustre-release/debian/tmp/modules-deb/usr_src/modules/lustre'<br>
BUILD FAILED!<br>
See<br>
/usr/src/lustre-release/debian/tmp/modules-deb/var_cache_modass/lustre.buildlog.3.4.61.1436900735<br>
<br>
<br>
for details.<br>
make: *** [debs] Error 7<br>
<br>
It appears it's not recognizing --with-o2ib=no as outlined in<br>
./configure --help or i.e. bug report LU-5953.<br>
<br>
If I take that out, build chokes because it can't find Infiniband stuff<br>
which I suppose is to be expected since this site is not using<br>
Infiniband.<br>
<br>
I've tried moving the parameter around towards the beginning of the<br>
./configure parameter list or towards the end and it doesn't seem to<br>
make a difference.<br>
<br>
Noting the place where the install hung; I went in and modified line 338<br>
in file:<br>
<br>
lustre-release/debian/rules<br>
<br>
to completely remove $(IB_OPTIONS) from the ./configure statement on<br>
that line; the build still fails, but in a way that's not really clear<br>
what the cause is:<br>
<br>
export KPKG_DEST_DIR="$(pwd)/.." && \<br>
version=$(sed -ne '1s/^lustre (\(.*\)).*$/\1/p' debian/changelog) && \<br>
rm -rf debian/tmp/modules-deb && \<br>
mkdir debian/tmp/modules-deb && \<br>
pushd debian/tmp/modules-deb && \<br>
dpkg -x ../../../../lustre-source_${version}_all.deb $(pwd) && \<br>
mkdir usr_src/ && \<br>
tar -C usr_src/ -xjf usr/src/lustre.tar.bz2 && \<br>
chmod 755 usr_src/modules/lustre/debian/rules && \<br>
mkdir -p usr_share_modass && \<br>
ln -s /usr/share/modass/include/ usr_share_modass/ && \<br>
ln -s /usr/share/modass/packages/ usr_share_modass/ && \<br>
echo "lustre" > usr_share_modass/compliant.list && \<br>
export MA_DIR=$(pwd)/usr_share_modass && \<br>
KVERS=${KVERS:-} && \<br>
[ "x" != "x" ] && \<br>
export IB_OPTIONS="--with-o2ib=" && \<br>
export KSRC_TREE= && \<br>
KSRC=${KSRC:-} && \<br>
m-a build ${KSRC:+-k $KSRC} ${KVERS:+-l $KVERS} -i -u $(pwd) lustre && \<br>
popd && \<br>
VER=$(sed -ne '1s/^lustre (\(.*-[0-9][0-9]*\)).*$/\1/p'<br>
debian/changelog) && \<br>
mkdir -p debs && \<br>
mv ../linux-patch-lustre_${VER}_all.deb ../lustre-dev_${VER}_*.deb \<br>
    ../lustre-source_${VER}_all.deb ../lustre-tests_${VER}_*.deb \<br>
    ../lustre-utils_${VER}_*.deb ../lustre_${VER}.dsc \<br>
    ../lustre_${VER}_*.changes ../lustre_${VER}.tar.gz \<br>
    ../lustre-client-modules-${KVERS}_${VER}_*.deb debs/<br>
/usr/src/lustre-release/debian/tmp/modules-deb /usr/src/lustre-release<br>
make: *** [debs] Error 1<br>
<br>
Is this a legit bug? Am I missing something here? Maybe resolved if I do<br>
a fresh Git pull? Any suggestions would be a huge help.<br>
<br>
Thanks,<br>
<br>
Sean<br>
<br>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a moz-do-not-send="true" href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a moz-do-not-send="true" href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
<br>
</blockquote>
<br>
.<br>
<br>
</blockquote>
<br>
.<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a moz-do-not-send="true" href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a moz-do-not-send="true" href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
lustre-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a><a class="moz-txt-link-freetext" href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></pre>
</blockquote>
<br>
</div>
</div>
</span>
</body>
</html>