Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15026

Fix ZFS(2.0.0-1) build error on CentOS (3.10)

    XMLWordPrintable

Details

    • 3
    • 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

      Attachments

        Activity

          People

            arshad512 Arshad Hussain
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: