[ewg] OFED4.8 build error

Jeff Becker jeffrey.c.becker at nasa.gov
Thu Aug 17 14:14:50 PDT 2017


Hi. I was syncing up my git trees with the latest on the OFED server, 
and got an unexpected build error. Thus I tried freshly cloning trees to 
try the build again (without NFS/RDMA). I get the same error (see 
below). This is on RHEL7.3. Am I missing a step or did something change? 
Thanks for your help.

-jeff

  1076$  cd /tmp
  1077$  git clone git://git.openfabrics.org/compat-rdma/linux-4.8.git
  1078$  git clone git://git.openfabrics.org/compat-rdma/compat.git
  1079$  git clone git://git.openfabrics.org/compat-rdma/compat-rdma.git
  1080$  cd compat-rdma/
  1081$  export GIT_TREE=/tmp/linux-4.8/
  1082$  export GIT_COMPAT_TREE=/tmp/compat/
  1083$  ./scripts/admin_rdma.sh -n -p
  1084$  ./configure --with-core-mod --with-user_mad-mod 
--with-user_access-mod --with-addr_trans-mod --with-mlx4-mod 
--with-ipoib-mod
...

configure: creating ./config.status
config.status: creating config.h
config.status: executing depfiles commands

CC:            gcc
LD:            ld
CFLAGS:        -g -O2
EXTRA_KCFLAGS: -include /tmp/compat-rdma/compat/config.h

Type 'make' to build kernel modules.
  1085$ make
Building kernel modules
Kernel version: 3.10.0-693.el7.x86_64
Modules directory: //lib/modules/3.10.0-693.el7.x86_64/updates
Kernel sources: /lib/modules/3.10.0-693.el7.x86_64/build
env CWD=/tmp/compat-rdma BACKPORT_INCLUDES= \
     make -C /lib/modules/3.10.0-693.el7.x86_64/build 
SUBDIRS="/tmp/compat-rdma" \
     V=0 KBUILD_NOCMDDEP=1  \
     CONFIG_MEMTRACK= \
     CONFIG_DEBUG_INFO=y \
     CONFIG_INFINIBAND=m \
     CONFIG_INFINIBAND_IPOIB=m \
     CONFIG_INFINIBAND_IPOIB_CM=y \
     CONFIG_INFINIBAND_SRP= \
     CONFIG_INFINIBAND_SRPT= \
     CONFIG_SCSI_SRP_ATTRS= \
     CONFIG_INFINIBAND_USER_MAD=m \
     CONFIG_INFINIBAND_USER_ACCESS=m \
     CONFIG_INFINIBAND_USER_MEM=y \
     CONFIG_INFINIBAND_ADDR_TRANS=y \
     CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y \
     CONFIG_INFINIBAND_MTHCA= \
     CONFIG_INFINIBAND_IPOIB_DEBUG=y \
     CONFIG_INFINIBAND_ISERT= \
     CONFIG_INFINIBAND_ISER= \
     CONFIG_SCSI_ISCSI_ATTRS= \
     CONFIG_ISCSI_TCP= \
     CONFIG_INFINIBAND_EHCA= \
     CONFIG_INFINIBAND_EHCA_SCALING= \
     CONFIG_RDS= \
     CONFIG_RDS_RDMA= \
     CONFIG_RDS_TCP= \
     CONFIG_RDS_DEBUG= \
     CONFIG_INFINIBAND_IPOIB_DEBUG_DATA= \
     CONFIG_INFINIBAND_SDP_SEND_ZCOPY= \
     CONFIG_INFINIBAND_SDP_RECV_ZCOPY= \
     CONFIG_INFINIBAND_SDP_DEBUG= \
     CONFIG_INFINIBAND_SDP_DEBUG_DATA= \
     CONFIG_INFINIBAND_IPATH= \
     CONFIG_INFINIBAND_QIB= \
     CONFIG_INFINIBAND_RDMAVT= \
     CONFIG_INFINIBAND_RXE= \
     CONFIG_INFINIBAND_MTHCA_DEBUG= \
     CONFIG_INFINIBAND_MADEYE= \
     CONFIG_INFINIBAND_QLGC_VNIC= \
     CONFIG_INFINIBAND_QLGC_VNIC_DEBUG= \
     CONFIG_INFINIBAND_QLGC_VNIC_STATS= \
     CONFIG_CHELSIO_T3= \
     CONFIG_INFINIBAND_CXGB3= \
     CONFIG_INFINIBAND_CXGB3_DEBUG= \
     CONFIG_CHELSIO_T4= \
     CONFIG_INFINIBAND_CXGB4= \
     CONFIG_SCSI_CXGB3_ISCSI= \
     CONFIG_SCSI_CXGB4_ISCSI= \
     CONFIG_INFINIBAND_I40IW= \
     CONFIG_I40E= \
     CONFIG_INFINIBAND_NES= \
     CONFIG_INFINIBAND_NES_DEBUG= \
     CONFIG_MLX4_CORE=m \
     CONFIG_MLX5_CORE= \
     CONFIG_MLX5_CORE_EN= \
     CONFIG_MLX5_CORE_EN_DCB= \
     CONFIG_MLX4_EN= \
     CONFIG_MLX4_EN_DCB= \
     CONFIG_MLX4_INFINIBAND=m \
     CONFIG_MLX5_INFINIBAND= \
     CONFIG_MLX4_ETHERNET= \
     CONFIG_MLX4_DEBUG=y \
     CONFIG_MLX5_DEBUG= \
     CONFIG_IBP_SERVER= \
     CONFIG_IBP_DEBUG= \
     CONFIG_INFINIBAND_SCIF= \
     CONFIG_INFINIBAND_AMSO1100= \
     CONFIG_SUNRPC_XPRT_RDMA= \
     CONFIG_SUNRPC_XPRT_RDMA_CLIENT= \
     CONFIG_SUNRPC_XPRT_RDMA_SERVER= \
     CONFIG_INFINIBAND_OCRDMA= \
     CONFIG_BE2NET= \
     CONFIG_INFINIBAND_ISERT= \
     CONFIG_INFINIBAND_USNIC= \
     CONFIG_INFINIBAND_HFI1= \
     CONFIG_INFINIBAND_VMWARE_PVRDMA= \
     CONFIG_NVME_CORE= \
     CONFIG_BLK_DEV_NVME= \
     CONFIG_NVME_RDMA= \
     CONFIG_NVME_FABRICS= \
     CONFIG_NVME_TARGET= \
     CONFIG_NVME_TARGET_RDMA= \
     CONFIG_QED= \
     CONFIG_QEDE= \
     CONFIG_QED_LL2= \
     CONFIG_QED_RDMA= \
     CONFIG_INFINIBAND_QEDR= \
     LINUXINCLUDE=' \
     -D__OFED_BUILD__ \
     -D__KERNEL__ \
     -DCOMPAT_BASE="\"vofed-4.8-1-g28bc496\"" 
-DCOMPAT_BASE_TREE="\"linux-4.8.git\"" 
-DCOMPAT_BASE_TREE_VERSION="\"896615f\"" 
-DCOMPAT_PROJECT="\"Compat-rdma\"" -DCOMPAT_VERSION="\"g36ae89d-np\""  \
     -include 
/lib/modules/3.10.0-693.el7.x86_64/build/include/generated/autoconf.h \
     -include 
/lib/modules/3.10.0-693.el7.x86_64/source/include/linux/kconfig.h \
     -include /tmp/compat-rdma/include/linux/compat-2.6.h \
      \
      \
      \
     -I/tmp/compat-rdma/include \
     -I/tmp/compat-rdma/include/uapi \
     -I/tmp/compat-rdma/drivers/infiniband/debug \
     -I/usr/local/include/scst \
     -I/tmp/compat-rdma/drivers/infiniband/ulp/srpt \
     $(if 
$(CONFIG_XEN),-D__XEN_INTERFACE_VERSION__=$(CONFIG_XEN_INTERFACE_VERSION)) \
     $(if $(CONFIG_XEN),-I$(srctree)/arch/x86/include/mach-xen) \
     -I$(srctree)/arch/$(SRCARCH)/include \
     -Iarch/$(SRCARCH)/include/generated \
     -Iinclude \
     -I$(srctree)/arch/$(SRCARCH)/include/uapi \
     -Iarch/$(SRCARCH)/include/generated/uapi \
     -I$(srctree)/include \
     -I$(srctree)/include/uapi \
     -Iinclude/generated/uapi \
     $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
     -I$(srctree)/arch/$(SRCARCH)/include \
     -Iarch/$(SRCARCH)/include/generated \
     -I/tmp/compat-rdma/drivers/nvme/host \
     -I/tmp/compat-rdma/drivers/nvme/target \
     ' \
     modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.el7.x86_64'
   CC [M]  /tmp/compat-rdma/compat/main.o
In file included from /tmp/compat-rdma/include/linux/compat-3.11.h:7:0,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
/tmp/compat-rdma/include/linux/netdevice.h:81:0: warning: 
"netdev_master_upper_dev_link" redefined [enabled by default]
  #define netdev_master_upper_dev_link(a,b,c,d) 
netdev_master_upper_dev_link(a,b)
  ^
In file included from /tmp/compat-rdma/include/linux/netdevice.h:6:0,
                  from /tmp/compat-rdma/include/linux/compat-3.11.h:7,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
include/linux/netdevice.h:3887:0: note: this is the location of the 
previous definition
  #define netdev_master_upper_dev_link netdev_master_upper_dev_link_rh
  ^
In file included from /tmp/compat-rdma/include/linux/compat-3.11.h:7:0,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
/tmp/compat-rdma/include/linux/netdevice.h:81:0: warning: 
"netdev_master_upper_dev_link" redefined [enabled by default]
  #define netdev_master_upper_dev_link(a,b,c,d) 
netdev_master_upper_dev_link(a,b)
  ^
In file included from /tmp/compat-rdma/include/linux/netdevice.h:6:0,
                  from /tmp/compat-rdma/include/linux/compat-3.11.h:7,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
include/linux/netdevice.h:3887:0: note: this is the location of the 
previous definition
  #define netdev_master_upper_dev_link netdev_master_upper_dev_link_rh
  ^
   CC [M]  /tmp/compat-rdma/compat/compat-3.11.o
In file included from /tmp/compat-rdma/include/linux/compat-3.11.h:7:0,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
/tmp/compat-rdma/include/linux/netdevice.h:81:0: warning: 
"netdev_master_upper_dev_link" redefined [enabled by default]
  #define netdev_master_upper_dev_link(a,b,c,d) 
netdev_master_upper_dev_link(a,b)
  ^
In file included from /tmp/compat-rdma/include/linux/netdevice.h:6:0,
                  from /tmp/compat-rdma/include/linux/compat-3.11.h:7,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
include/linux/netdevice.h:3887:0: note: this is the location of the 
previous definition
  #define netdev_master_upper_dev_link netdev_master_upper_dev_link_rh
  ^
/tmp/compat-rdma/compat/compat-3.11.c:316:15: error: static declaration 
of ‘sg_copy_buffer’ follows non-static declaration
  static size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents,
                ^
In file included from include/linux/dmaengine.h:27:0,
                  from include/linux/netdevice.h:39,
                  from /tmp/compat-rdma/include/linux/netdevice.h:6,
                  from /tmp/compat-rdma/include/linux/compat-3.11.h:7,
                  from /tmp/compat-rdma/include/linux/compat-2.6.h:71,
                  from <command-line>:0:
include/linux/scatterlist.h:243:8: note: previous declaration of 
‘sg_copy_buffer’ was here
  size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, 
void *buf,
         ^
make[3]: *** [/tmp/compat-rdma/compat/compat-3.11.o] Error 1
make[2]: *** [/tmp/compat-rdma/compat] Error 2
make[1]: *** [_module_/tmp/compat-rdma] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.el7.x86_64'
make: *** [kernel] Error 2
jcbecker at linux214 1086$




More information about the ewg mailing list