[Lustre-discuss] Not able to build lustre 2.5.0 against OFED.

aayush agrawal aayush.agrawal at calsoftinc.com
Thu Sep 25 08:27:40 PDT 2014


Hi,

I am trying to build lustre 2.5.0 against OFED but not able to compile 
lustre with OFED.
My CentOS version is 6.4, So I downloaded 
MLNX_OFED_LINUX-2.2-1.0.1-rhel6.4-x86_64.
# cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m

Then I could run following commands successfully:

./mlnxofedinstall -vvv --add-kernel-support --without-32bit 
--without-fw-update --hpc
/etc/init.d/openibd restart
configure ib0 interface

After this I tried to compile lustre with OFED.
I could run ./configure --with-linux=Path_to_linux-2.6.32-358.18.1.el6 
--with-o2ib=/usr/src/ofa_kernel/default/ command successfully.

But make command gave me below error:

In file included from include/trace/ftrace.h:440,
                  from include/trace/define_trace.h:73,
                  from 
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:904,
                  from /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/super.c:56:
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h: In 
function 'ftrace_profile_enable_ldiskfs_free_inode':
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:18: 
error: implicit declaration of function 'register_trace_ldiskfs_free_inode'
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h: In 
function 'ftrace_profile_disable_ldiskfs_free_inode':
/root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:18: 
error: implicit declaration of function 
'unregister_trace_ldiskfs_free_inode'
.....
.....

I looked online for this error and found bug registered on the same: 
https://jira.hpdd.intel.com/browse/LU-4266
I tried below patches suggested in the link*one by one*:
1. http://review.whamcloud.com/#/c/8451/2
2. http://review.whamcloud.com/#/c/9109

Both patches resolve earlier error but then gives below error:
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
gcc: @EXTRA_OFED_INCLUDE@: No such file or directory

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.
Could anyone please point me to corresponding patches for 2.5.0 or 
suggest if I am missing anything in above explained procedure.

Thanks,
Aayush.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20140925/1174e952/attachment.htm>


More information about the lustre-discuss mailing list