Discussion:
[lustre-discuss] Error while building Lustre on CentOS 7
Oscar Gatamah
2018-10-13 06:02:41 UTC
Permalink
I am trying to build Lustre. When I run ‘make rpms’ I the errors shown
below.

[***@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
Andreas Dilger
2018-10-13 07:03:27 UTC
Permalink
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 <***@gmail.com<mailto:***@gmail.com>> wrote:


I am trying to build Lustre. When I run ‘make rpms’ I the errors shown below.

[***@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
Oscar Gatamah
2018-10-13 07:23:34 UTC
Permalink
Ok, thanks. Noted.


Regards
--
Oscar Gatamah
Post by Andreas Dilger
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
I am trying to build Lustre. When I run ‘make rpms’ I the errors shown
below.
...
...
...
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: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,
/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,
/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);
^
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)
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
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
Colin Faber
2018-10-18 17:20:15 UTC
Permalink
This post might be inappropriate. Click to display it.
Peter Jones
2018-10-18 17:25:08 UTC
Permalink
This post might be inappropriate. Click to display it.
Andreas Dilger
2018-10-18 18:56:36 UTC
Permalink
Post by Peter Jones
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
Post by Peter Jones
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
I am trying to build Lustre. When I run ‘make rpms’ I the errors shown below.
...
...
...
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: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,
/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,
/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);
^
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)
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
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
_______________________________________________
lustre-discuss mailing list
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
Cheers, Andreas
---
Andreas Dilger
CTO Whamcloud
Colin Faber
2018-10-18 19:52:45 UTC
Permalink
Thanks Andreas!
Post by Colin Faber
Post by Colin Faber
Is there a build compatibility table you guys have kicking around some
place?
Post by Colin Faber
I.e. lustre version XXX builds against ZoL YYY
* version 2.11.0
* See https://wiki.whamcloud.com/display/PUB/Lustre+Support+Matrix
for currently supported client and server kernel versions.
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
Post by Colin Faber
There is a build breakage with Lustre and ZFS 0.7.10/0.7.11. There is
a patch in
Post by Colin Faber
Gerrit that fixed this build issue for master, and there is a patch
landed in ZFS
Post by Colin Faber
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.
Post by Colin Faber
Also note that Lustre 2.11.56 is a development version and should only
be used
Post by Colin Faber
for testing.
Cheers, Andreas
Post by Oscar Gatamah
I am trying to build Lustre. When I run ‘make rpms’ I the errors shown
below.
Post by Colin Faber
Post by Oscar Gatamah
...
...
...
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
Post by Colin Faber
Post by Oscar Gatamah
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
Post by Colin Faber
Post by Oscar Gatamah
Type 'make' to build Lustre.
+ make -s
Making all in .
error: unknown type name 'timestruc_t'
Post by Colin Faber
Post by Oscar Gatamah
timestruc_t now;
^
error: passing argument 1 of 'gethrestime' from incompatible pointer type
[-Werror]
Post by Colin Faber
Post by Oscar Gatamah
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,
Post by Colin Faber
Post by Oscar Gatamah
from
/usr/src/spl-0.7.11/include/sys/time.h:70:1: note: expected 'struct
inode_timespec_t *' but argument is of type 'int *'
Post by Colin Faber
Post by Oscar Gatamah
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,
Post by Colin Faber
Post by Oscar Gatamah
from
/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
Post by Colin Faber
Post by Oscar Gatamah
(stmp)[0] = (uint64_t)(tp)->tv_sec; \
^
note: in expansion of macro 'ZFS_TIME_ENCODE'
Post by Colin Faber
Post by Oscar Gatamah
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
Post by Colin Faber
Post by Oscar Gatamah
(stmp)[1] = (uint64_t)(tp)->tv_nsec; \
^
note: in expansion of macro 'ZFS_TIME_ENCODE'
Post by Colin Faber
Post by Oscar Gatamah
ZFS_TIME_ENCODE(&now, crtime);
^
cc1: error: unrecognized command line option "-Wno-format-truncation"
[-Werror]
Post by Colin Faber
Post by Oscar Gatamah
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
Post by Colin Faber
Post by Oscar Gatamah
make[6]: ***
[/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre/osd-zfs]
Error 2
Post by Colin Faber
Post by Oscar Gatamah
make[5]: ***
[/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56/lustre] Error 2
Post by Colin Faber
Post by Oscar Gatamah
make[4]: ***
[_module_/tmp/rpmbuild-lustre-test-OuOkY4qB/BUILD/lustre-2.11.56] Error 2
Post by Colin Faber
Post by Oscar Gatamah
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)
Post by Colin Faber
Post by Oscar Gatamah
Macro %with_gss has empty body
Bad exit status from
/tmp/rpmbuild-lustre-test-OuOkY4qB/TMP/rpm-tmp.qA8OfS (%build)
Post by Colin Faber
Post by Oscar Gatamah
make: *** [rpms] Error 1
Regards,
—
Oscar Gatamah
_______________________________________________
lustre-discuss mailing list
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
_______________________________________________
lustre-discuss mailing list
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
Cheers, Andreas
---
Andreas Dilger
CTO Whamcloud
Loading...