[openib-general] Trouble installing OFED-1.1-rc3 on a x86_64 SLES 10 machine
Michael S. Tsirkin
mst at mellanox.co.il
Tue Sep 12 05:54:37 PDT 2006
Quoting r. Bub Thomas <thomas.bub at thomson.net>:
> Subject: Trouble installing OFED-1.1-rc3 on a x86_64 SLES 10 machine
>
> Just migrated from SLES 9 x86_64 to SLES 10 x86_64 in order to get
> 32-Bit support.
> Stumbled over some installation problems.
> First I tried "All packages" then "Basic install". Both failed to build
> at different places.
> Only a "customizied" installation worked.
> Find the details blow.
>
> Thomas Bub
>
> An All packages fails at:
>
> gcc
> -Wp,-MD,/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/.i
> scsi_iser.o.d -nostdinc -isystem
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/include -D__KERNEL__
> -I/var/tmp/OFEDRPM/BUILD/openib-1.1/include
> -I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/include
> -Iinclude -Iinclude2 -I/usr/src/linux-2.6.16.21-0.8/include
> -I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser -Wall
> -Wundef -Wstrict-prototypes -Wno-trigraphs
> -Werror-implicit-function-declaration -fno-strict-aliasing -fno-common
> -ffreestanding -Os -fomit-frame-pointer -mtune=generic -m64
> -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks
> -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time
> -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement
> -Wno-pointer-sign -I/var/tmp/OFEDRPM/BUILD/openib-1.1/include
> -I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/include
> -I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/ipoib
> -I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/debug -DMODULE
> -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(iscsi_iser)"
> -D"KBUILD_MODNAME=KBUILD_STR(ib_iser)" -c -o
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/.tmp_iscsi
> _iser.o
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c: In function 'iscsi_iser_set_param':
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c:478: error: implicit declaration of function 'iscsi_set_param'
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c: At top level:
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c:612: warning: initialization from incompatible pointer type
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c:613: error: 'iscsi_conn_get_param' undeclared here (not in a
> function)
> /var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/iser/iscsi_iser
> .c:614: error: 'iscsi_session_get_param' undeclared here (not in a
> function)
Or - could you check this please? AFAIK iser should work on this kernel.
> A Basic install fails at:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I../libibverbs/include -Wall
> -D_GNU_SOURCE -g -O2 -MT src_ipathverbs_la-ipathverbs.lo -MD -MP -MF
> .deps/src_ipathverbs_la-ipathverbs.Tpo -c src/ipathverbs.c -fPIC -DPIC
> -o .libs/src_ipathverbs_la-ipa
> thverbs.o
> In file included from src/ipathverbs.c:45:
> src/ipathverbs.h: In function 'to_ictx':
> src/ipathverbs.h:72: warning: implicit declaration of function
> 'offsetof'
> src/ipathverbs.h:72: error: expected expression before 'struct'ib_mthca
Looks like ipthverbs.h uses offsetof without including stddef.h
Please post fix for trunk and OFED branch.
> My customized installation that works:
>
> ib_verbs
> kernel-ib
> kernel-ib-devel
> libibcm
> libibcm-devel
> libibverbs
> libibverbs-devel
> libibverbs-utils
> libmthca
> libmthca-devel
--
MST
More information about the general
mailing list