[ewg] OFA EWG Meeting: Monday, Sept 23rd, 2019 - 9:00 am PST - Minutes
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Tue Sep 24 08:33:09 PDT 2019
On 09/24/2019 06:18 AM, oulijun wrote:
> Hi, Arlin R & Vlad
> I am following the steps you gave to verify and use, the cmd as
> follows:
>
> To build working tree for manual compilation: # mkdir ofed # cd ofed #
> git clone git://git.openfabrics.org/compat-rdma/compat-rdma.git # git
> clone git://git.openfabrics.org/compat-rdma/linux-5.3.git # git clone
> git://git.openfabrics.org/compat-rdma/compat.git # OFED_EWG_DIR=$PWD #
> cd compat-rdma # GIT_TREE=${OFED_EWG_DIR}/linux-5.3
> GIT_COMPAT_TREE=${OFED_EWG_DIR}/compat ./scripts/admin_rdma.sh -n -p
> To compile drivers: # ./configure --with-core-mod --with-ipoib-mod
> --with-ipoib_debug-mod --with-ipoib_debug_data-mod --with-user_mad-mod
> --with-user_access-mod --with-addr_trans-mod --with-mlx4-mod
> --with-mlx4_core-mod --with-mlx4_en-mod --with-mlx4_inf-mod
> --with-mlx4_debug-mod --with-ipoib-cm --with-srp-mod --with-iser-mod
> --with-iscsi-mod --with-isert-mod Add other relevant flags... # make #
> make install However, the error as follows:
> oulijun at EstBuildSvr1:~/OFED$ OFED_EWG_DIR=$PWD
> oulijun at EstBuildSvr1:~/OFED$ cd compat-rdma/
> oulijun at EstBuildSvr1:~/OFED/compat-rdma$
> GIT_TREE=${OFED_EWG_DIR}/linux-5.3
> GIT_COMPAT_TREE=${OFED_EWG_DIR}/compat ./scripts/admin_rdma.sh -n -p
> [snip] Base tree: linux-5.3.git Base tree version: 3d05bf7 compat.git:
> vofed-4.17-1-14-g761116a compat-rdma release: gfd0060b-np
> oulijun at EstBuildSvr1:~/OFED/compat-rdma$
> oulijun at EstBuildSvr1:~/OFED/compat-rdma$
> oulijun at EstBuildSvr1:~/OFED/compat-rdma$ ./configure --with-core-mod
> --with-ipoib-mod --with-ipoib_debug-mod --with-ipoib_debug_data-mod
> --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod
> --with-mlx4-mod --with-mlx4_core-mod --with-mlx4_en-mod
> --with-mlx4_inf-mod --with-mlx4_debug-mod --with-ipoib-cm
> --with-srp-mod --with-iser-mod --with-iscsi-mod --with-isert-mod
> Created configure.mk.kernel: Created
> /home/oulijun/OFED/compat-rdma/include/generated/autoconf.h
> ./configure --with-linux-obj=/lib/modules/4.2.0-27-generic/build
> --with-linux=/lib/modules/4.2.0-27-generic/source [snip]
> /usr/src/linux-headers-4.2.0-27-generic
> /usr/src/linux-headers-4.2.0-27-generic checking for Linux sources...
> /lib/modules/4.2.0-27-generic/source checking for
> /lib/modules/4.2.0-27-generic/source... no configure: error: Kernel
> source /lib/modules/4.2.0-27-generic/source could not be found. Failed
> executing ./configureoulijun at EstBuildSvr1:~/OFED/compat-rdma$ make
> grep: 4.2.0-27-generic/include/linux/blkdev.h: No such file or
> directory Building kernel modules Kernel version: 4.2.0-27-generic
> Modules directory: //lib/modules/4.2.0-27-generic/updates Kernel
> sources: /lib/modules/4.2.0-27-generic/build env
> CWD=/home/oulijun/OFED/compat-rdma BACKPORT_INCLUDES= \ make -C
> /lib/modules/4.2.0-27-generic/build M="/home/oulijun/OFED/compat-rdma"
> \ V=0 KBUILD_NOCMDDEP=1 \ CONFIG_53C700_BE_BUS=
> CONFIG_53C700_LE_ON_BE= CONFIG_A2091_SCSI= CONFIG_A3000_SCSI=
> CONFIG_ATARI_SCSI= CONFIG_B44= CONFIG_B44_PCI=
> CONFIG_B44_PCI_AUTOSELECT= CONFIG_B44_PCICORE_AUTOSELECT=
> CONFIG_BCM63XX_ENET= CONFIG_BCMGENET= CONFIG_BE2NET=
> CONFIG_BE2NET_BE2= CONFIG_BE2NET_BE3= CONFIG_BE2NET_HWMON=
> CONFIG_BE2NET_LANCER= CONFIG_BE2NET_SKYHAWK= CONFIG_BGMAC=
> CONFIG_BGMAC_BCMA= CONFIG_BGMAC_PLATFORM= CONFIG_BLK_DEV_3W_XXXX_RAID=
> CONFIG_BLK_DEV_NVME= CONFIG_BLK_DEV_SD= CONFIG_BLK_DEV_SR=
> CONFIG_BLK_DEV_SR_VENDOR= CONFIG_BNX2= CONFIG_BNX2X=
> CONFIG_BNX2X_SRIOV= CONFIG_BNXT= CONFIG_BNXT_DCB=
> CONFIG_BNXT_FLOWER_OFFLOAD= CONFIG_BNXT_HWMON= CONFIG_BNXT_SRIOV=
> CONFIG_BVME6000_SCSI= CONFIG_CHELSIO_LIB= CONFIG_CHELSIO_T1=
> CONFIG_CHELSIO_T1_1G= CONFIG_CHELSIO_T3= CONFIG_CHELSIO_T4=
> CONFIG_CHELSIO_T4_DCB= CONFIG_CHELSIO_T4_FCOE= CONFIG_CHELSIO_T4VF=
> CONFIG_CHR_DEV_SCH= CONFIG_CHR_DEV_SG= CONFIG_CHR_DEV_ST= CONFIG_CNIC=
> CONFIG_COMPAT_RDMA=m CONFIG_E100= CONFIG_E1000= CONFIG_E1000E=
> CONFIG_E1000E_HWTS= CONFIG_FCOE= CONFIG_FCOE_FNIC= CONFIG_FM10K=
> CONFIG_GVP11_SCSI= CONFIG_HFI1_DEBUG_SDMA_ORDER=
> CONFIG_HYPERV_STORAGE= CONFIG_I40E= CONFIG_I40E_DCB= CONFIG_I40EVF=
> CONFIG_IAVF= CONFIG_ICE= CONFIG_IGB= CONFIG_IGB_DCA= CONFIG_IGB_HWMON=
> CONFIG_IGBVF= CONFIG_IGC= CONFIG_INFINIBAND_ADDR_TRANS=y
> CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y CONFIG_INFINIBAND_BNXT_RE=
> CONFIG_INFINIBAND_CXGB3= CONFIG_INFINIBAND_CXGB4=
> CONFIG_INFINIBAND_EFA= CONFIG_INFINIBAND_EXP_LEGACY_VERBS_NEW_UAPI=
> CONFIG_INFINIBAND_HFI1= CONFIG_INFINIBAND_HNS=
> CONFIG_INFINIBAND_HNS_HIP06= CONFIG_INFINIBAND_HNS_HIP08=
> CONFIG_INFINIBAND_I40IW= CONFIG_INFINIBAND_IPOIB=m
> CONFIG_INFINIBAND_IPOIB_CM=y CONFIG_INFINIBAND_IPOIB_DEBUG=y
> CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=y CONFIG_INFINIBAND_ISER=m
> CONFIG_INFINIBAND_ISERT=m CONFIG_INFINIBAND_MTHCA=
> CONFIG_INFINIBAND_MTHCA_DEBUG= CONFIG_INFINIBAND_OCRDMA=
> CONFIG_INFINIBAND_ON_DEMAND_PAGING= CONFIG_INFINIBAND_OPA_VNIC=
> CONFIG_INFINIBAND_QEDR= CONFIG_INFINIBAND_QIB=
> CONFIG_INFINIBAND_QIB_DCA= CONFIG_INFINIBAND_RDMAVT=
> CONFIG_INFINIBAND_SRP=m CONFIG_INFINIBAND_SRPT=
> CONFIG_INFINIBAND_USER_ACCESS=m CONFIG_INFINIBAND_USER_MAD=m
> CONFIG_INFINIBAND_USER_MEM=y CONFIG_INFINIBAND_USNIC=
> CONFIG_INFINIBAND_VMWARE_PVRDMA= CONFIG_ISCSI_BOOT_SYSFS=
> CONFIG_ISCSI_TCP=m CONFIG_IXGB= CONFIG_IXGBE= CONFIG_IXGBE_DCA=
> CONFIG_IXGBE_DCB= CONFIG_IXGBE_HWMON= CONFIG_IXGBE_IPSEC=
> CONFIG_IXGBEVF= CONFIG_IXGBEVF_IPSEC= CONFIG_JAZZ_ESP= CONFIG_LIBFC=
> CONFIG_LIBFCOE= CONFIG_MAC_SCSI= CONFIG_MLX4_CORE=m
> CONFIG_MLX4_CORE_GEN2= CONFIG_MLX4_DEBUG=y CONFIG_MLX4_EN=m
> CONFIG_MLX4_EN_DCB=y CONFIG_MLX4_INFINIBAND=m CONFIG_MLX5_ACCEL=
> CONFIG_MLX5_CORE= CONFIG_MLX5_CORE_EN= CONFIG_MLX5_CORE_EN_DCB=
> CONFIG_MLX5_CORE_IPOIB= CONFIG_MLX5_EN_ARFS= CONFIG_MLX5_EN_IPSEC=
> CONFIG_MLX5_EN_RXNFC= CONFIG_MLX5_EN_TLS= CONFIG_MLX5_ESWITCH=
> CONFIG_MLX5_FPGA= CONFIG_MLX5_FPGA_IPSEC= CONFIG_MLX5_FPGA_TLS=
> CONFIG_MLX5_INFINIBAND= CONFIG_MLX5_MPFS= CONFIG_MLX5_TLS=
> CONFIG_MLXFW= CONFIG_MLXSW_CORE= CONFIG_MLXSW_CORE_HWMON=
> CONFIG_MLXSW_CORE_THERMAL= CONFIG_MLXSW_I2C= CONFIG_MLXSW_MINIMAL=
> CONFIG_MLXSW_PCI= CONFIG_MLXSW_SPECTRUM= CONFIG_MLXSW_SPECTRUM_DCB=
> CONFIG_MLXSW_SWITCHIB= CONFIG_MLXSW_SWITCHX2= CONFIG_MVME147_SCSI=
> CONFIG_MVME16x_SCSI= CONFIG_NET_VENDOR_BROADCOM=
> CONFIG_NET_VENDOR_CHELSIO= CONFIG_NET_VENDOR_EMULEX=
> CONFIG_NET_VENDOR_INTEL= CONFIG_NET_VENDOR_MELLANOX=
> CONFIG_NET_VENDOR_QLOGIC= CONFIG_NETXEN_NIC= CONFIG_NVME_CORE=
> CONFIG_NVME_FABRICS= CONFIG_NVME_FC= CONFIG_NVME_MULTIPATH=
> CONFIG_NVME_RDMA= CONFIG_NVME_TARGET= CONFIG_NVME_TARGET_FC=
> CONFIG_NVME_TARGET_FCLOOP= CONFIG_NVME_TARGET_LOOP=
> CONFIG_NVME_TARGET_RDMA= CONFIG_NVME_TARGET_TCP= CONFIG_NVME_TCP=
> CONFIG_QED= CONFIG_QEDE= CONFIG_QEDF= CONFIG_QED_FCOE= CONFIG_QEDI=
> CONFIG_QED_ISCSI= CONFIG_QED_LL2= CONFIG_QED_OOO= CONFIG_QED_RDMA=
> CONFIG_QED_SRIOV= CONFIG_QLA3XXX= CONFIG_QLCNIC= CONFIG_QLCNIC_DCB=
> CONFIG_QLCNIC_HWMON= CONFIG_QLCNIC_SRIOV= CONFIG_QLGE=
> CONFIG_RAID_ATTRS= CONFIG_RDMA_RXE= CONFIG_RDMA_SIW= CONFIG_RDS=
> CONFIG_RDS_DEBUG= CONFIG_RDS_RDMA= CONFIG_RDS_TCP=
> CONFIG_RPCSEC_GSS_KRB5= CONFIG_SB1250_MAC= CONFIG_SCSI=
> CONFIG_SCSI_3W_9XXX= CONFIG_SCSI_3W_SAS= CONFIG_SCSI_A4000T=
> CONFIG_SCSI_AACRAID= CONFIG_SCSI_ACARD= CONFIG_SCSI_ADVANSYS=
> CONFIG_SCSI_AHA152X= CONFIG_SCSI_AHA1542= CONFIG_SCSI_AHA1740=
> CONFIG_SCSI_AM53C974= CONFIG_SCSI_ARCMSR= CONFIG_SCSI_BFA_FC=
> CONFIG_SCSI_BUSLOGIC= CONFIG_SCSI_CONSTANTS= CONFIG_SCSI_CXGB3_ISCSI=
> CONFIG_SCSI_CXGB4_ISCSI= CONFIG_SCSI_DC395x= CONFIG_SCSI_DEBUG=
> CONFIG_SCSI_DMA= CONFIG_SCSI_DMX3191D= CONFIG_SCSI_DPT_I2O=
> CONFIG_SCSI_ENCLOSURE= CONFIG_SCSI_ESP_PIO= CONFIG_SCSI_FC_ATTRS=
> CONFIG_SCSI_FDOMAIN= CONFIG_SCSI_FDOMAIN_ISA= CONFIG_SCSI_FDOMAIN_PCI=
> CONFIG_SCSI_FLASHPOINT= CONFIG_SCSI_GDTH= CONFIG_SCSI_GENERIC_NCR5380=
> CONFIG_SCSI_HPSA= CONFIG_SCSI_HPTIOP= CONFIG_SCSI_IBMVFC=
> CONFIG_SCSI_IBMVFC_TRACE= CONFIG_SCSI_IBMVSCSI= CONFIG_SCSI_IBMVSCSIS=
> CONFIG_SCSI_IMM= CONFIG_SCSI_INIA100= CONFIG_SCSI_INITIO=
> CONFIG_SCSI_IPR= CONFIG_SCSI_IPR_DUMP= CONFIG_SCSI_IPR_TRACE=
> CONFIG_SCSI_IPS= CONFIG_SCSI_ISCI= CONFIG_SCSI_ISCSI_ATTRS=m
> CONFIG_SCSI_IZIP_EPP16= CONFIG_SCSI_IZIP_SLOW_CTR=
> CONFIG_SCSI_LASI700= CONFIG_SCSI_LOGGING= CONFIG_SCSI_LPFC=
> CONFIG_SCSI_LPFC_DEBUG_FS= CONFIG_SCSI_MAC53C94= CONFIG_SCSI_MAC_ESP=
> CONFIG_SCSI_MESH= CONFIG_SCSI_MESH_RESET_DELAY_MS=
> CONFIG_SCSI_MESH_SYNC_RATE= CONFIG_SCSI_MOD= CONFIG_SCSI_MVUMI=
> CONFIG_SCSI_MYRB= CONFIG_SCSI_MYRS=
> CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS= CONFIG_SCSI_NCR53C8XX_MAX_TAGS=
> CONFIG_SCSI_NCR53C8XX_NO_DISCONNECT= CONFIG_SCSI_NCR53C8XX_SYNC=
> CONFIG_SCSI_NETLINK= CONFIG_SCSI_NSP32= CONFIG_SCSI_PM8001=
> CONFIG_SCSI_PMCRAID= CONFIG_SCSI_PPA= CONFIG_SCSI_PROC_FS=
> CONFIG_SCSI_QLOGIC_1280= CONFIG_SCSI_QLOGIC_FAS=
> CONFIG_SCSI_QLOGICPTI= CONFIG_SCSI_SAS_ATTRS= CONFIG_SCSI_SCAN_ASYNC=
> CONFIG_SCSI_SIM710= CONFIG_SCSI_SNI_53C710= CONFIG_SCSI_SNIC=
> CONFIG_SCSI_SNIC_DEBUG_FS= CONFIG_SCSI_SPI_ATTRS=
> CONFIG_SCSI_SRP_ATTRS=m CONFIG_SCSI_STEX= CONFIG_SCSI_SUNESP=
> CONFIG_SCSI_SYM53C8XX_2= CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=
> CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=
> CONFIG_SCSI_SYM53C8XX_MAX_TAGS= CONFIG_SCSI_SYM53C8XX_MMIO=
> CONFIG_SCSI_VIRTIO= CONFIG_SCSI_WD719X= CONFIG_SCSI_ZALON=
> CONFIG_SCSI_ZORRO7XX= CONFIG_SCSI_ZORRO_ESP= CONFIG_SDMA_VERBOSITY=
> CONFIG_SGIWD93_SCSI= CONFIG_SUN3_SCSI= CONFIG_SUN3X_ESP=
> CONFIG_SUNRPC= CONFIG_SUNRPC_BACKCHANNEL= CONFIG_SUNRPC_DEBUG=
> CONFIG_SUNRPC_DISABLE_INSECURE_ENCTYPES= CONFIG_SUNRPC_GSS=
> CONFIG_SUNRPC_SWAP= CONFIG_SUNRPC_XPRT_RDMA= CONFIG_SYSTEMPORT=
> CONFIG_TIGON3= CONFIG_TIGON3_HWMON= CONFIG_VMWARE_PVSCSI=
> CONFIG_XEN_SCSI_FRONTEND= CONFIG_ZFCP= \ LINUXINCLUDE=' \
> -D__OFED_BUILD__ \ -D__KERNEL__ \
> -DCOMPAT_BASE="\"vofed-4.17-1-14-g761116a\""
> -DCOMPAT_BASE_TREE="\"linux-5.3.git\""
> -DCOMPAT_BASE_TREE_VERSION="\"3d05bf7\""
> -DCOMPAT_PROJECT="\"Compat-rdma\"" -DCOMPAT_VERSION="\"gfd0060b-np\""
> \ -include
> /lib/modules/4.2.0-27-generic/build/include/generated/autoconf.h \ \
> -include /home/oulijun/OFED/compat-rdma/include/linux/compat-2.6.h \ \
> \ \ -I/home/oulijun/OFED/compat-rdma/include \
> -I/home/oulijun/OFED/compat-rdma/include/uapi \
> -I/home/oulijun/OFED/compat-rdma/drivers/infiniband/debug \
> -I/usr/local/include/scst \
> -I/home/oulijun/OFED/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 \ ' \ modules make[1]: Entering
> directory '/usr/src/linux-headers-4.2.0-27-generic' CC [M]
> /home/oulijun/OFED/compat-rdma/compat/main.o In file included from
> <command-line>:0:0:
> /home/oulijun/OFED/compat-rdma/include/linux/compat-2.6.h:7:33: fatal
> error: ../../compat/config.h: No such file or directory #include
> "../../compat/config.h" ^ compilation terminated.
> scripts/Makefile.build:258: recipe for target
> '/home/oulijun/OFED/compat-rdma/compat/main.o' failed make[3]: ***
> [/home/oulijun/OFED/compat-rdma/compat/main.o] Error 1
> scripts/Makefile.build:403: recipe for target
> '/home/oulijun/OFED/compat-rdma/compat' failed make[2]: ***
> [/home/oulijun/OFED/compat-rdma/compat] Error 2 Makefile:1398: recipe
> for target '_module_/home/oulijun/OFED/compat-rdma' failed make[1]:
> *** [_module_/home/oulijun/OFED/compat-rdma] Error 2 make[1]: Leaving
> directory '/usr/src/linux-headers-4.2.0-27-generic' makefile:70:
> recipe for target 'kernel' failed make: *** [kernel] Error 2
> oulijun at EstBuildSvr1:~/OFED/compat-rdma$ Please forgive me for taking
> the liberty, Because I was trying for the first time, I don't know how
> to resolved the build error? Beside, if i want to build hns, how to do
> and set the config? Lijun Ou
Hi Lijun,
OFED-5.3 does not support Ubuntu. In this specific case configure script
failed to find kernel headers and therefore did not create compat/config.h.
Please use one of the supported Distros.
Regards,
Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20190924/014ab514/attachment-0001.html>
More information about the ewg
mailing list