<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:12pt"><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; ">To whom it may concerns,</div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; ">I want to build Lustre 1.8 (or 2.1 if it's possible) on CentOS 5.5 with kernel version 2.6.18.194.el5</div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; ">I follow the instructions provided on the wiki.</div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; ">One of the patches (applied on <span style="text-align: left; ">drivers</span><span style="font-size: 12pt; ">/</span><span style="font-size: 12pt; text-align: left; ">scsi/isci/init.c) </span><span style="font-size: 12pt; ">is ignored, because it
 can't find the file.</span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; "><span style="font-size: 12pt; ">It also fails while running make rpm.</span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; ">The 
instructions and outputs are:</div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; "><br></div><div><pre class="code-java" style="font-family: 'Courier New', Courier, monospace; font-size: 12.727272033691406px; padding: 0px; margin-top: 0px; margin-bottom: 0px; text-align: left; overflow: auto; line-height: 1.3; color: rgb(51, 51, 51); "># wget http:<span class="code-comment" style="color: rgb(128, 128, 128); background-color: inherit; ">//download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm</span></pre><pre class="code-java" style="font-family: 'Courier New', Courier, monospace; font-size: 12.727272033691406px; padding: 0px; margin-top: 0px; margin-bottom: 0px; text-align: left; overflow: auto; line-height: 1.3; color: rgb(51, 51, 51); "><span class="code-comment" style="color: rgb(128, 128, 128); background-color: inherit; "><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom:
 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "># rpm -ivh ./epel-release-5-4.noarch.rpm</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># yum -y groupinstall <span class="code-quote" style="color: rgb(0, 145, 0); background-color: inherit; ">"Development Tools"</span>
# yum -y install rpm-build redhat-rpm-config unifdef gnupg quilt git</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># useradd -d /build build</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># su build
# cd $HOME</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># git clone git:<span class="code-comment" style="color: rgb(128, 128, 128); background-color: inherit; ">//git.whamcloud.com/fs/lustre-release.git
</span># cd lustre-release
# git checkout --track -b b1_8 origin/b1_8</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># sh ./autogen.sh </pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># cd $HOME
# mkdir -p kernel/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
# cd kernel
# echo '%_topdir %(echo $HOME)/kernel/rpmbuild' > ~/.rpmmacros</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; font-size: 12.727272033691406px; "># rpm -i <span style="font-size: 12.727272033691406px; line-height: 1.3; background-color: inherit; ">http://vault.centos.org/5.5/os/SRPMS/kernel-2.6.18-194.el5.src.rpm</span></pre></pre></span></pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; text-align: left; overflow: auto; "><span class="code-comment" style="background-color: inherit; "><font color="#808080" face="Courier New, Courier, monospace" size="2"><span style="line-height: 10.666666984558105px;"># rpmbuild -bp --target=`uname -m` ~/kernel/rpmbuild/SPECS/kernel-2.6.spec</span><span style="line-height: 1.3;"><br></span></font></span></pre><pre class="code-java" style="padding: 0px; margin-top:
 0px; margin-bottom: 0px; text-align: left; overflow: auto; "><span class="code-comment" style="background-color: inherit; "><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "># cd ~/kernel/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.x86_64</pre></span><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "># cp ~/lustre-release/lustre/kernel_patches/kernel_configs/kernel-2.6.18-2.6-rhel5-x86_64.config .config</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size:
 12.727272033691406px; "># ln -s ~/lustre-release/lustre/kernel_patches/series/2.6-rhel5.series series
# ln -s ~/lustre-release/lustre/kernel_patches/patches patches</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "># quilt push -av</pre>
Applying patch patches/blkdev_tunables-2.6-rhel5.patch
patching file include/linux/blkdev.h
Hunk #1 succeeded at 783 (offset -5 lines).
patching file include/scsi/scsi_host.h
<span style="color: rgb(255, 0, 0);">can't find file to patch at input line 36
</span>Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux-2.6.18-164.11.1/drivers/scsi/isci/init.c
|===================================================================
|--- linux-2.6.18-164.11.1/drivers/scsi/isci/init.c
|+++ linux-2.6.18-164.11.1/drivers/scsi/isci/init.c
--------------------------
No file to patch.  Skipping patch.
<span style="color: rgb(255, 0, 0);">1 out of 1 hunk ignored</span>
</pre><div style="text-align: left;"><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "><br></pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: 'Courier New', Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.727272033691406px; "># cd /build/kernel/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.x86_64
# make oldconfig || make menuconfig
# make include/asm
# make include/linux/version.h
# make SUBDIRS=scripts
# make include/linux/utsrelease.h
# make rpm</pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; "><span style="color: rgb(51, 51, 51); font-family: 'Courier New', Courier, monospace; font-size: 12.666666984558105px; line-height: 10.666666984558105px;"><br></span></pre><pre class="code-java" style="padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; "><span style="color: rgb(51, 51, 51); font-family: 'Courier New', Courier, monospace; font-size: 12.666666984558105px; line-height: 10.666666984558105px;">fs/dcache.c: In function 'd_move_locked':
fs/dcache.c:1619: error: implicit declaration of function '__d_move'
fs/dcache.c: At top level:
fs/dcache.c:1645: error: redefinition of 'd_move_locked'
fs/dcache.c:1617: error: previous definition of 'd_move_locked' was here
make[3]: *** [fs/dcache.o] Error 1
make[2]: *** [fs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.6263 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.6263 (%build)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2</span><span style="color: rgb(51, 51, 51); font-family: 'Courier New', Courier, monospace; font-size: 12.727272033691406px; line-height: 1.3; ">
</span></pre><div><br></div></div></div><div style="font-size: 12pt; font-family: verdana, helvetica, sans-serif; "><font face="verdana, helvetica, sans-serif" size="3">I would </font><font face="verdana, helvetica, sans-serif">appreciated</font><font face="verdana, helvetica, sans-serif" size="3"> it if you could help me to solve the problem.</font><br></div><div><font face="verdana, helvetica, sans-serif" size="3">Thanks in advance</font></div></div></body></html>