[lustre-discuss] Compiling lustre-2.10.6

Patrick Farrell pfarrell at whamcloud.com
Tue Mar 12 08:55:13 PDT 2019


Hsieh,


We have instructions for compiling from source here on our Wiki:

https://wiki.whamcloud.com/display/PUB/Building+Lustre+from+Source


Are you following those?  If not, I'd suggest it - Your problem looks likely to be an error in the build process.


We also have prebuilt 2.10.6 packages for many platforms:
https://downloads.whamcloud.com/public/lustre/


- Patrick



________________________________
From: lustre-discuss <lustre-discuss-bounces at lists.lustre.org> on behalf of Tung-Han Hsieh <thhsieh at twcp1.phys.ntu.edu.tw>
Sent: Tuesday, March 12, 2019 9:22:57 AM
To: lustre-discuss at lists.lustre.org
Subject: [lustre-discuss] Compiling lustre-2.10.6

Dear All,

I am trying to compile lustre-2.10.6 from source code. During
compilation, there are undefined symbols:

==========================================================================
  CC [M]  /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.o
In file included from /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:72:0:
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h: In function 'ldiskfs_get_htree_eof':
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1254:10: error: 'LDISKFS_HTREE_EOF_32BIT' undeclared (first use in this function)
   return LDISKFS_HTREE_EOF_32BIT;
          ^
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1254:10: note: each undeclared identifier is reported only once for each function it appears in
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1256:10: error: 'LDISKFS_HTREE_EOF_64BIT' undeclared (first use in this function)
   return LDISKFS_HTREE_EOF_64BIT;
          ^
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c: In function 'osd_check_lmv':
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:968:19: error: 'LDISKFS_HTREE_EOF_64BIT' undeclared (first use in this function)
    filp->f_pos != LDISKFS_HTREE_EOF_64BIT);
                   ^
In file included from /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:72:0:
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h: In function 'ldiskfs_get_htree_eof':
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1257:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:321: recipe for target '/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.o' failed
==========================================================================

I searched the source code, only find the definition of LDISKFS_HTREE_EOF
in ldiskfs/ldiskfs.h:

#define LDISKFS_HTREE_EOF       0x7fffffff

but cannot find the definition of LDISKFS_HTREE_EOF_32BIT and
LDISKFS_HTREE_EOF_64BIT. Could anyone tell me how to fix this problem ?

Thanks very much.

T.H.Hsieh
_______________________________________________
lustre-discuss mailing list
lustre-discuss at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20190312/5fb4bea0/attachment.html>


More information about the lustre-discuss mailing list