[LU-15026] Fix ZFS(2.0.0-1) build error on CentOS (3.10) Created: 22/Sep/21 Updated: 27/Jan/22 Resolved: 10/Oct/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.12.8, Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Arshad Hussain | Assignee: | Arshad Hussain |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Lustre (Latest Master (tip)) $ git log --format=oneline -1 608cce73d5149cb4d317ee189db94f0b6ade1ff5 LU-15007 tests: quota enable cmd fix ZFS (2.0.0-1) $ cat META Meta: 1 Name: zfs Branch: 1.0 Version: 2.0.0 Release: 1 Release-Tags: relext License: CDDL Author: OpenZFS Linux-Maximum: 5.9 Linux-Minimum: 3.10 CentOS $ uname -r 3.10.0-1160.15.2.el7.x86_64 The build always fails with two erros. First Making all in . make[4]: Entering directory `/root/lustre01/lustre-release/lustre/utils' gcc -DHAVE_CONFIG_H -I. -I../.. -DHAVE_IOCTL_IN_UNISTD_H -I /root/zfs/zfs_git_lustre_build/zfs/lib/libspl/include -I /root/zfs/zfs_git_lustre_build/zfs/include -include /root/lustre01/lustre-release/undef.h -include /root/lustre01/lustre-release/config.h -I/root/lustre01/lustre-release/lnet/include/uapi -I/root/lustre01/lustre-release/lustre/include/uapi -I/root/lustre01/lustre-release/libcfs/include -I/root/lustre01/lustre-release/lnet/utils/ -I/root/lustre01/lustre-release/lustre/include -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -MT libmount_utils_zfs_a-libmount_utils_zfs.o -MD -MP -MF .deps/libmount_utils_zfs_a-libmount_utils_zfs.Tpo -c -o libmount_utils_zfs_a-libmount_utils_zfs.o `test -f 'libmount_utils_zfs.c' || echo './'`libmount_utils_zfs.c In file included from /root/zfs/zfs_git_lustre_build/zfs/include/sys/spa.h:39:0, from libmount_utils_zfs.c:32: /root/zfs/zfs_git_lustre_build/zfs/include/sys/zfs_context.h:110:27: fatal error: sys/byteorder.h: No such file or directory #include <sys/byteorder.h> Second:
libtool: link: ar cru .libs/liblustreapi.a liblustreapi.o liblustreapi_hsm.o liblustreapi_nodemap.o liblustreapi_json.o liblustreapi_layout.o liblustreapi_lease.o liblustreapi_util.o liblustreapi_kernelconn.o liblustreapi_param.o liblustreapi_mirror.o liblustreapi_fid.o liblustreapi_ladvise.o liblustreapi_chlg.o liblustreapi_heat.o liblustreapi_pcc.o liblustreapi_lseek.o liblustreapi_swap.o .libs/liblustreapi.lax/libcfs.a/libcfs_la-l_ioctl.o .libs/liblustreapi.lax/libcfs.a/libcfs_la-nidstrings.o .libs/liblustreapi.lax/libcfs.a/libcfs_la-param.o .libs/liblustreapi.lax/libcfs.a/libcfs_la-parser.o .libs/liblustreapi.lax/libcfs.a/libcfs_la-string.o libtool: link: ranlib .libs/liblustreapi.a libtool: link: rm -fr .libs/liblustreapi.lax libtool: link: ( cd ".libs" && rm -f "liblustreapi.la" && ln -s "../liblustreapi.la" "liblustreapi.la" ) gcc -rdynamic -shared -export-dynamic -pthread \ -L/root/zfs/zfs_git_lustre_build/zfs/lib/libzfs/.libs/ -L/root/zfs/zfs_git_lustre_build/zfs/lib/libnvpair/.libs -o mount_osd_zfs.so \ `ar -t libmount_utils_zfs.a` \ -ldl -lzfs -lnvpair -lzpool /usr/bin/ld: cannot find -lzpool collect2: error: ld returned 1 exit status |
| Comments |
| Comment by Gerrit Updater [ 22/Sep/21 ] |
|
"Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/45016 |
| Comment by Arshad Hussain [ 22/Sep/21 ] |
|
I am not sure if I am the only one facing these issues. However, without the changes I cannot seem to get past the build. |
| Comment by Gerrit Updater [ 10/Oct/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45016/ |
| Comment by Peter Jones [ 10/Oct/21 ] |
|
Landed for 2.15 |
| Comment by Gerrit Updater [ 25/Oct/21 ] |
|
"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45355 |
| Comment by Gerrit Updater [ 14/Nov/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45355/ |