[ofa-general] compilation problem on ofed_1_2
Linev Sergei
S.Linev at gsi.de
Thu Mar 29 07:13:03 PDT 2007
Hi,
I take latest OFED 1.2 build (OFED-1.2-20070328-0625.tgz) and try to build on my node:
Dual Opteron, SuSE 9.3, Kernel 2.6.19 with Real Time Preemt patch.
Problem with vnic is still there:
gcc -Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/.vnic_main.o.d -nostdinc -isystem /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/include -D__KERNEL__ -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.19/include/ -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include -Iinclude -include include/linux/autoconf.h -include /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -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 -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -fomit-frame-pointer -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vnic_main)" -D"KBUILD_MODNAME=KBUILD_STR(ib_vnic)" -c -o /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/.tmp_vnic_main.o /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c: In function `vnic_allocate':
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:941: error: syntax error before '{' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:932: warning: unused variable `device'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c: At top level:
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:942: warning: type defaults to `int' in declaration of `vnic_alloc_stats'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:942: warning: parameter names (without types) in function declaration
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:942: error: conflicting types for `vnic_alloc_stats'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_stats.h:367: error: previous declaration of `vnic_alloc_stats'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:942: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:943: error: syntax error before '->' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:945: warning: type defaults to `int' in declaration of `device'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:945: error: `vnic' undeclared here (not in a function)
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:945: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:947: error: syntax error before '->' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:947: warning: type defaults to `int' in declaration of `strcpy'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:947: warning: function declaration isn't a prototype
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:947: warning: conflicting types for built-in function `strcpy'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:947: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:949: warning: type defaults to `int' in declaration of `ether_setup'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:949: warning: parameter names (without types) in function declaration
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:949: error: conflicting types for `ether_setup'
include/linux/netdevice.h:958: error: previous declaration of `ether_setup'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:949: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:951: error: syntax error before '->' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:963: error: syntax error before '&' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:963: warning: type defaults to `int' in declaration of `netpath_init'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:963: warning: function declaration isn't a prototype
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:963: error: conflicting types for `netpath_init'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_netpath.h:62: error: previous declaration of `netpath_init'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:963: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:964: error: syntax error before '&' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:964: warning: type defaults to `int' in declaration of `netpath_init'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:964: warning: function declaration isn't a prototype
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:964: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:966: error: syntax error before '->' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:968: error: syntax error before '&' token
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:968: warning: type defaults to `int' in declaration of `list_add_tail'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:968: warning: function declaration isn't a prototype
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:968: error: conflicting types for `list_add_tail'
include/linux/list.h:85: error: previous declaration of `list_add_tail'
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:968: warning: data definition has no type or storage class
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:161: warning: `vnic_get_stats' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:175: warning: `vnic_open' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:190: warning: `vnic_stop' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:206: warning: `vnic_hard_start_xmit' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:235: warning: `vnic_tx_timeout' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:249: warning: `vnic_set_multicast_list' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:312: warning: `vnic_set_mac_address' defined but not used
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c:353: warning: `vnic_change_mtu' defined but not used
make[4]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.o] Error 1
make[3]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/vnic] Error 2
make[2]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband] Error 2
make[1]: *** [_module_/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/kernel-2.6.19rt9smp'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.82634 (%install)
Another problem with fddi.h seems to be fixed.
Regards,
Sergey
> -----Original Message-----
> From: Roland Dreier [mailto:rdreier at cisco.com]
> Sent: Freitag, 23. März 2007 23:57
> To: Linev Sergei
> Cc: general at lists.openfabrics.org
> Subject: Re: [ofa-general] compilation problem on ofed_1_2
>
>
> > Second, in file
> ofa_kernel-1.2/drivers/infiniband/ulp/vnic/vnic_main.c,
> > failed definition SPIN_LOCK_UNLOCKED. Seems to be,
> "spinlock.h" include is
> > missed in this file.
>
> this is a problem with the vnic code that needs to be cleaned up --
> SPIN_LOCK_UNLOCKED is not really supposed to be used in generic code.
> Either spin_lock_init() or DEFINE_SPINLOCK() should be used instead.
>
> Thanks for the report.
>
More information about the general
mailing list