<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I am trying to build lustre 2.5.0 against OFED but not able to
compile lustre with OFED.<br>
My CentOS version is 6.4, So I downloaded
MLNX_OFED_LINUX-2.2-1.0.1-rhel6.4-x86_64.<br>
<font face="Courier New"># cat /etc/issue<br>
CentOS release 6.4 (Final)<br>
Kernel \r on an \m</font><br>
<br>
Then I could run following commands successfully:<br>
<br>
./mlnxofedinstall -vvv --add-kernel-support --without-32bit
--without-fw-update --hpc<br>
/etc/init.d/openibd restart<br>
configure ib0 interface<br>
<br>
After this I tried to compile lustre with OFED. <br>
I could run <font face="Courier New">./configure --with-linux=Path_to_linux-2.6.32-358.18.1.el6
--with-o2ib=/usr/src/ofa_kernel/default/</font> command
successfully.<br>
<br>
But make command gave me below error:<br>
<br>
<font face="Courier New">In file included from
include/trace/ftrace.h:440,<br>
from include/trace/define_trace.h:73,<br>
from
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:904,<br>
from
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/super.c:56:<br>
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:
In function 'ftrace_profile_enable_ldiskfs_free_inode':<br>
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:18:
error: implicit declaration of function
'register_trace_ldiskfs_free_inode'<br>
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:
In function 'ftrace_profile_disable_ldiskfs_free_inode':<br>
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:18:
error: implicit declaration of function
'unregister_trace_ldiskfs_free_inode'<br>
.....<br>
.....</font><br>
<br>
I looked online for this error and found bug registered on the same:
<a class="moz-txt-link-freetext" href="https://jira.hpdd.intel.com/browse/LU-4266">https://jira.hpdd.intel.com/browse/LU-4266</a><br>
I tried below patches suggested in the link<b> one by one</b>:<br>
1. <a class="moz-txt-link-freetext" href="http://review.whamcloud.com/#/c/8451/2">http://review.whamcloud.com/#/c/8451/2</a><br>
2. <a class="moz-txt-link-freetext" href="http://review.whamcloud.com/#/c/9109">http://review.whamcloud.com/#/c/9109</a><br>
<br>
Both patches resolve earlier error but then gives below error:<br>
<font face="Courier New">CC [M]
/home/calsoft/common/lustre_2.5.0/lustre-2.5.0_InfinibandTrial/fresh/lustre-2.5.0_61/lnet/klnds/o2iblnd/o2iblnd.o<br>
gcc: @EXTRA_OFED_INCLUDE@: No such file or directory<br>
</font><br>
In my understanding this must be due to change in lustre version.
The patches seems to be for lustre version 2.5.2 and 2.6.0.<br>
Could anyone please point me to corresponding patches for 2.5.0 or
suggest if I am missing anything in above explained procedure.<br>
<br>
Thanks,<br>
Aayush.
</body>
</html>