[lustre-discuss] Error while building Lustre on CentOS 7

Colin Faber cfaber at gmail.com
Thu Oct 18 12:52:45 PDT 2018


Thanks Andreas!

On Thu, Oct 18, 2018, 12:56 PM Andreas Dilger <adilger at whamcloud.com> wrote:

> On Oct 18, 2018, at 11:20, Colin Faber <cfaber at gmail.com> wrote:
> >
> > Is there a build compatibility table you guys have kicking around some
> place?
> >
> > I.e. lustre version XXX builds against ZoL YYY
>
>
> The compatibility matrix is listed in the lustre/ChangeLog file for each
> release:
>
>        * version 2.11.0
>        * See https://wiki.whamcloud.com/display/PUB/Lustre+Support+Matrix
>          for currently supported client and server kernel versions.
>        * Server known to build on patched kernels:
>          2.6.32-431.29.2.el6 (RHEL6.5)
>          2.6.32-504.30.3.el6 (RHEL6.6)
>          2.6.32-573.26.1.el6 (RHEL6.7)
>          2.6.32-642.15.1.el6 (RHEL6.8)
>          2.6.32-696.18.7.el6 (RHEL6.9)
>          3.10.0-693.21.1.el7 (RHEL7.4)
>          3.0.101-0.47.71     (SLES11 SP3)
>          3.0.101-107         (SLES11 SP4)
>          3.12.74-60.64.40    (SLES12 SP1)
>          4.4.114-92.64       (SLES12 SP2)
>          4.4.114-94.11       (SLES12 SP3)
>          3.13.0-101          (Ubuntu 14.04, ZFS only)
>          4.4.0-85.108        (Ubuntu 14.04.5 LTS)
>          4.4.0-116           (Ubuntu 16.04)
>          vanilla linux 4.6.7 (ZFS only)
>        * Recommended ZFS / SPL version: 0.7.9
>
> We should probably remove the RHEL6.x versions (or at least the older ones
> that we aren't actually testing).
>
> I also updated
> https://wiki.whamcloud.com/display/PUB/Lustre+Support+Matrix
> to indicate the ZFS versions used with each release.  We recommend using
> the
> "close to latest" ZFS version, but there have been a few recent ZFS
> releases that have serious bugs, so we've been keeping a bit behind on the
> ZFS updates until it has seen a few weeks of outside usage.
>
> Cheers, Andreas
>
> > On Sat, Oct 13, 2018 at 4:40 AM Andreas Dilger <adilger at whamcloud.com>
> wrote:
> > There is a build breakage with Lustre and ZFS 0.7.10/0.7.11.  There is
> a patch in
> > Gerrit that fixed this build issue for master, and there is a patch
> landed in ZFS
> > Git that also fixes this issue.
> >
> > That said, both ZFS 0.7.10 and 0.7.11 have serious bugs and should not
> be used.
> >
> > Also note that Lustre 2.11.56 is a development version and should only
> be used
> > for testing.
> >
> > Cheers, Andreas
> >
> > On Oct 13, 2018, at 00:04, Oscar Gatamah <gatamah at gmail.com> wrote:
> >
> >> I am trying to build Lustre. When I run ‘make rpms’ I the errors shown
> below.
> >>
> >> [root at localhost lustre-release-5f4ca70]#  make rpms
> >> ...
> >> ...
> >> ...
> >>
> >> CC:            gcc
> >> LD:            /usr/bin/ld -m elf_x86_64
> >> CPPFLAGS:      -include
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/undef.h -include
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/config.h
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/libcfs/include
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lnet/include
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lnet/include/uapi
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/include
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/include/uapi
>
> >> CFLAGS:        -g -O2 -Werror -Wall -Werror
> >> EXTRA_KCFLAGS: -include
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/undef.h -include
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/config.h  -g
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/libcfs/include
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lnet/include
> -I/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/include
> -Wno-format-truncation
> >>
> >> Type 'make' to build Lustre.
> >> + make -s
> >> Making all in .
> >>
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:
> In function '__osd_attr_init':
> >>
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:1522:2:
> error: unknown type name 'timestruc_t'
> >>   timestruc_t  now;
> >>   ^
> >>
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:1532:2:
> error: passing argument 1 of 'gethrestime' from incompatible pointer type
> [-Werror]
> >>   gethrestime(&now);
> >>   ^
> >> In file included from /usr/src/spl-0.7.11/include/sys/condvar.h:34:0,
> >>                  from /usr/src/spl-0.7.11/include/sys/t_lock.h:31,
> >>                  from /usr/src/zfs-0.7.11/include/sys/zfs_context.h:35,
> >>                  from /usr/src/zfs-0.7.11/include/sys/arc.h:30,
> >>                  from
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_internal.h:51,
> >>                  from
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:49:
> >> /usr/src/spl-0.7.11/include/sys/time.h:70:1: note: expected 'struct
> inode_timespec_t *' but argument is of type 'int *'
> >>  gethrestime(inode_timespec_t *ts)
> >>  ^
> >> In file included from
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_internal.h:53:0,
> >>                  from
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:49:
> >> /usr/src/zfs-0.7.11/include/sys/zfs_znode.h:278:28: error: request for
> member 'tv_sec' in something not a structure or union
> >>   (stmp)[0] = (uint64_t)(tp)->tv_sec; \
> >>                             ^
> >>
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:1533:2:
> note: in expansion of macro 'ZFS_TIME_ENCODE'
> >>   ZFS_TIME_ENCODE(&now, crtime);
> >>   ^
> >> /usr/src/zfs-0.7.11/include/sys/zfs_znode.h:279:28: error: request for
> member 'tv_nsec' in something not a structure or union
> >>   (stmp)[1] = (uint64_t)(tp)->tv_nsec; \
> >>                             ^
> >>
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:1533:2:
> note: in expansion of macro 'ZFS_TIME_ENCODE'
> >>   ZFS_TIME_ENCODE(&now, crtime);
> >>   ^
> >>
> /tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.c:
> At top level:
> >> cc1: error: unrecognized command line option "-Wno-format-truncation"
> [-Werror]
> >> cc1: all warnings being treated as errors
> >> make[7]: ***
> [/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs/osd_object.o]
> Error 1
> >> make[6]: ***
> [/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs]
> Error 2
> >> make[5]: ***
> [/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre] Error 2
> >> make[4]: ***
> [_module_/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56] Error 2
> >> make[3]: *** [modules] Error 2
> >> make[2]: *** [all-recursive] Error 1
> >> make[1]: *** [all] Error 2
> >> error: Bad exit status from
> /tmp/rpmbuild-lustre-test-OuOkY4qB/TMP/rpm-tmp.qA8OfS (%build)
> >>
> >> RPM build errors:
> >>     Macro %with_gss has empty body
> >>     Bad exit status from
> /tmp/rpmbuild-lustre-test-OuOkY4qB/TMP/rpm-tmp.qA8OfS (%build)
> >> make: *** [rpms] Error 1
> >>
> >> Regards,
> >>
> >> —
> >> Oscar Gatamah
> >>
> >> _______________________________________________
> >> lustre-discuss mailing list
> >> lustre-discuss at lists.lustre.org
> >> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
> > _______________________________________________
> > lustre-discuss mailing list
> > lustre-discuss at lists.lustre.org
> > http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
>
> Cheers, Andreas
> ---
> Andreas Dilger
> CTO Whamcloud
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20181018/d711cd32/attachment-0001.html>


More information about the lustre-discuss mailing list