[lustre-discuss] Error building Robinhood 3.1.7 with Lustre 2.14.0

Hugo R Hernandez hdezmora at gmail.com
Mon Jul 12 11:01:52 PDT 2021


Hello there!



We are trying to compile Robinhood 3.1.7 with Lustre 2.14.0 (ZFS 2.0.4) on
a CentOS 7.9.  We are getting this problem:



wget https://github.com/cea-hpc/robinhood/archive/refs/tags/3.1.7.tar.gz

tar -zxvf 3.1.7.tar.gz

cd robinhood-3.1.7

./autogen.sh

./configure

make

...

  CC       basename.lo

  CC       lustre_tools.lo

*lustre_tools.c:857:0:* error: "IOC_MDC_GETFILEINFO_V1" redefined [-Werror]

#   define IOC_MDC_GETFILEINFO_V1   IOC_MDC_GETFILEINFO

^

In file included from */usr/include/lustre/lustreapi.h:47:0*,

                 from *../../src/include/lustre_extended_types.h:45*,

                 from *../../src/include/db_schema.h:32*,

                 from *../../src/include/list_mgr.h:144*,

                 from *lustre_tools.c:18*:

*/usr/include/linux/lustre/lustre_user.h:662:0:* note: this is the location
of the previous definition

#define IOC_MDC_GETFILEINFO_V1 _IOWR(IOC_MDC_TYPE, 22, struct
lov_user_mds_data_v1 *)

^

*lustre_tools.c:* In function '*lustre_mds_stat*':

*lustre_tools.c:857:37:* error: '*IOC_MDC_GETFILEINFO_V1*' undeclared
(first use in this function)

#   define IOC_MDC_GETFILEINFO_V1   IOC_MDC_GETFILEINFO

                                     ^

*lustre_tools.c:888:26:* note: in expansion of macro '
*IOC_MDC_GETFILEINFO_V1*'

     rc = ioctl(parentfd, IOC_MDC_GETFILEINFO_V1, (void *)lmd);

                          ^

*lustre_tools.c:857:37:* note: each undeclared identifier is reported only
once for each function it appears in

#   define IOC_MDC_GETFILEINFO_V1   IOC_MDC_GETFILEINFO

                                     ^

*lustre_tools.c:888:26:* note: in expansion of macro '
*IOC_MDC_GETFILEINFO_V1*'

     rc = ioctl(parentfd, IOC_MDC_GETFILEINFO_V1, (void *)lmd);

                          ^

*lustre_tools.c:* In function '*lustre_mds_stat_by_fid*':

*lustre_tools.c:857:37:* error: '*IOC_MDC_GETFILEINFO_V1*' undeclared
(first use in this function)

#   define IOC_MDC_GETFILEINFO_V1   IOC_MDC_GETFILEINFO

                                     ^

*lustre_tools.c:971:35:* note: in expansion of macro '
*IOC_MDC_GETFILEINFO_V1*'

     rc = ioctl(dirfd(fid_dir_fd), IOC_MDC_GETFILEINFO_V1, (void *)lmd);

                                   ^

cc1: all warnings being treated as errors

make[2]: *** [lustre_tools.lo] Error 1

make[2]: Leaving directory `/tmp/robinhood-3.1.7/src/common'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/tmp/robinhood-3.1.7/src'

make: *** [all-recursive] Error 1





We have tried both make or make rpm as from Robinhood's documentation.  Can
we have some help with this?


 https://github.com/cea-hpc/robinhood


Thanks in advance!

-Hugo



=================================================================



[root at mds1-vm robinhood-3.1.7]# uname -a

Linux mds1-vm.local 3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45
UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

[root at mds1-vm robinhood-3.1.7]# cat /etc/redhat-release

CentOS Linux release 7.9.2009 (Core)

[root at mds1-vm robinhood-3.1.7]# rpm -qa | grep lustre

lustre-tools-0.7.10-2.noarch

lustre-osd-ldiskfs-mount-2.14.0-1.el7.x86_64

lustre-2.14.0-1.el7.x86_64

kmod-lustre-2.14.0-1.el7.x86_64

lustre-devel-2.14.0-1.el7.x86_64

lustre-tests-2.14.0-1.el7.x86_64

kmod-lustre-osd-zfs-2.14.0-1.el7.x86_64

kmod-lustre-tests-2.14.0-1.el7.x86_64

kmod-lustre-osd-ldiskfs-2.14.0-1.el7.x86_64

lustre-osd-zfs-mount-2.14.0-1.el7.x86_64

lustre-resource-agents-2.14.0-1.el7.x86_64

lustre-iokit-2.14.0-1.el7.x86_64


-- 
*Hugo R Hernandez*

"Se seus esforços foram vistos com indeferença, não desanime que o sol faze
um espectacolo maravilhoso todas as manhãs enquanto a maioria das pessoas
ainda estão dormindo"
- Anónimo brasileiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20210712/9ca93c38/attachment.html>


More information about the lustre-discuss mailing list