[meta-virtualization] [meta-cloud-services] open-iscsi-kernel build error

Bruce Ashfield bruce.ashfield at gmail.com
Mon Sep 25 17:51:07 PDT 2017


On Mon, Sep 25, 2017 at 8:47 PM, Lai Eddy <eddy.lai.tw at gmail.com> wrote:
> I want to use iscsi in my yocto project so I add
> open-iscsi-kernel and open-iscsi-kernel

These recipes have had relatively little use, and none for a while.

Last I checked:

http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-extended/iscsitarget/iscsitarget_1.4.20.3+svn502.bb?h=master

Is a better option for iscsi kernel support.

I need to purge the recipes from meta-openstack to make that clear (it
isn't clear at all at the moment).

Bruce

> into my local.conf
> but got following build error
> ---------------------------------------------------------------
> ERROR: open-iscsi-kernel-2.0-873-r2 do_compile: oe_runmake failed
> ERROR: open-iscsi-kernel-2.0-873-r2 do_compile: Function failed: do_compile
> (log file is located at
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/temp/log.do_compile.1691)
> ERROR: Logfile of failure stored in:
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/temp/log.do_compile.1691
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 8
> KERNEL_SRC=/home/user/poky/build/tmp/work-shared/intel-corei7-64/kernel-source
> KSRC=/home/user/poky/build/tmp/work-shared/intel-corei7-64/kernel-source
> LDFLAGS= kernel
> | make -C kernel
> | make[1]: Entering directory
> '/home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel'
> | echo "Patching source code for linux-2.6.28-33 ..."
> | Patching source code for linux-2.6.28-33 ...
> | if [ -e cur_patched ]; then \
> | make -C . clean; \
> | fi
> | patch -p1 < 2.6.28-32_compat.patch
> | patching file iscsi_tcp.c
> | patching file libiscsi.c
> | patching file libiscsi.h
> | patching file libiscsi_tcp.c
> | patching file libiscsi_tcp.h
> | patching file open_iscsi_compat.h
> | cp 2.6.28-32_compat.patch has_28to32_patch
> | ln -s has_28to32_patch cur_patched
> | make -C
> /home/user/poky/build/tmp/work-shared/intel-corei7-64/kernel-source M=`pwd`
> KBUILD_OUTPUT=/home/user/poky/build/tmp/work-shared/intel-corei7-64/kernel-build-artifacts
> V=0 modules
> | make[2]: Entering directory
> '/home/user/poky/build/tmp/work-shared/intel-corei7-64/kernel-source'
> | make[3]: Entering directory
> '/home/user/poky/build/tmp/work-shared/intel-corei7-64/kernel-build-artifacts'
> |   CC [M]
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/scsi_transport_iscsi.o
> |   CC [M]
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/libiscsi.o
> |   CC [M]
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/libiscsi_tcp.o
> |   CC [M]
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/iscsi_tcp.o
> | In file included from
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/iscsi_tcp.c:47:0:
> |
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/iscsi_tcp.h:48:19:
> error: field 'tx_hash' has incomplete type
> |   struct hash_desc tx_hash; /* CRC32C (Tx) */
> |                    ^~~~~~~
> |
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/iscsi_tcp.h:49:19:
> error: field 'rx_hash' has incomplete type
> |   struct hash_desc rx_hash; /* CRC32C (Rx) */
> |                    ^~~~~~~
> |
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/iscsi_tcp.c:
> In function 'iscsi_sw_tcp_conn_set_callbacks':
> |
> /home/user/poky/build/tmp/work/intel_corei7_64-poky-linux/open-iscsi-kernel/2.0-873-r2/open-iscsi-2.0-873/kernel/iscsi_tcp.c:201:30:
> error: assignment from incompatible pointer type
> [-Werror=incompatible-pointer-types]
> |   tcp_sw_conn->old_data_ready = sk->sk_data_ready;
>
> my build environment is:
> ----------------------------------------
> Build Configuration:
> BB_VERSION        = "1.34.0"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "universal"
> TARGET_SYS        = "x86_64-poky-linux"
> MACHINE           = "intel-corei7-64"
> DISTRO            = "poky"
> DISTRO_VERSION    = "2.3.1"
> TUNE_FEATURES     = "m64 corei7"
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


More information about the meta-virtualization mailing list