[ewg] ehca backport issues

Vladimir Sokolovsky vlad at mellanox.co.il
Sun Aug 17 03:25:32 PDT 2008


Hi Stefan,
I have the following ehca compilation issues on RHEL4 U5/6 (ppc64):
Please check,

RHEL4 U5 (2.6.9-55.EL):
   gcc -m64 -Wp,-MD,/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.ehca_main.o.d -nostdinc -iwithprefix include -D__KERNEL__ -include include/linux/autoconf.h  -include 
/root/ofa_1_4_dev_kernel-20080817-1103/include/linux/autoconf.h  -I/root/ofa_1_4_dev_kernel-20080817-1103/kernel_addons/backport/2.6.9_U5/include/    -I/root/ofa_1_4_dev_kernel-20080817-1103/include 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/debug  -I/usr/local/include/scst  -I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/ulp/srpt 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/net/cxgb3  -Iinclude     -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -g -Wdeclaration-after-statement -msoft-float 
-pipe -mminimal-toc -mtraceback=none -mcall-aixdesc                   -mtune=power4 -fno-unit-at-a-time   -DMODULE -DKBUILD_BASENAME=ehca_main -DKBUILD_MODNAME=ib_ehca -c -o 
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.tmp_ehca_main.o /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c
In file included from include/asm/ibmebus.h:44,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_tools.h:64,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ipz_pt_fn.h:51,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_classes_pSeries.h:46,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_classes.h:62,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:47:
include/asm/of_device.h:1:31: asm-ppc/of_device.h: No such file or directory
In file included from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_tools.h:64,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ipz_pt_fn.h:51,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_classes_pSeries.h:46,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_classes.h:62,
                  from /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:47:
include/asm/ibmebus.h:54: error: field `ofdev' has incomplete type
include/asm/ibmebus.h: In function `to_ibmebus_dev':
include/asm/ibmebus.h:85: warning: type defaults to `int' in declaration of `__mptr'
include/asm/ibmebus.h:85: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: In function `ehca_sense_attributes':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:291: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:293: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: In function `ehca_init_device':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:461: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: At top level:
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:661: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:662: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:663: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:664: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:665: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:666: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:667: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:668: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:669: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:670: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:671: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:672: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:673: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:674: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:685: warning: initialization from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: In function `ehca_probe':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:718: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:718: warning: assignment from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:720: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:726: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:744: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:821: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: In function `ehca_remove':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:873: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:876: error: dereferencing pointer to incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: At top level:
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:928: error: variable `ehca_driver' has initializer but incomplete type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:929: error: unknown field `name' specified in initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:929: warning: excess elements in struct initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:929: warning: (near initialization for `ehca_driver')
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:930: error: unknown field `match_table' specified in initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:930: warning: excess elements in struct initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:930: warning: (near initialization for `ehca_driver')
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:931: error: unknown field `probe' specified in initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:931: warning: excess elements in struct initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:931: warning: (near initialization for `ehca_driver')
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:932: error: unknown field `remove' specified in initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:932: warning: excess elements in struct initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:932: warning: (near initialization for `ehca_driver')
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:933: error: unknown field `driver' specified in initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:933: error: extra brace group at end of initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:933: error: (near initialization for `ehca_driver')
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:935: warning: excess elements in struct initializer
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:935: warning: (near initialization for `ehca_driver')
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: In function `ehca_module_init':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:987: warning: passing arg 1 of `ibmebus_register_driver' from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: In function `ehca_module_exit':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:1019: warning: passing arg 1 of `ibmebus_unregister_driver' from incompatible pointer type
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c: At top level:
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.c:928: error: storage size of `ehca_driver' isn't known
make[4]: *** [/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_main.o] Error 1

RHEL4 U6 (2.6.9-67.EL):
   gcc -m64 -Wp,-MD,/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.ehca_mrmw.o.d -nostdinc -iwithprefix include -D__KERNEL__ -include include/linux/autoconf.h  -include 
/root/ofa_1_4_dev_kernel-20080817-1103/include/linux/autoconf.h  -I/root/ofa_1_4_dev_kernel-20080817-1103/kernel_addons/backport/2.6.9_U6/include/    -I/root/ofa_1_4_dev_kernel-20080817-1103/include 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/debug  -I/usr/local/include/scst  -I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/ulp/srpt 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/net/cxgb3  -Iinclude     -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -g -Wdeclaration-after-statement -msoft-float 
-pipe -mminimal-toc -mtraceback=none -mcall-aixdesc                    -mtune=power4 -fno-unit-at-a-time   -DMODULE -DKBUILD_BASENAME=ehca_mrmw -DKBUILD_MODNAME=ib_ehca -c -o 
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.tmp_ehca_mrmw.o /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_mrmw.c
   gcc -m64 -Wp,-MD,/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.ehca_reqs.o.d -nostdinc -iwithprefix include -D__KERNEL__ -include include/linux/autoconf.h  -include 
/root/ofa_1_4_dev_kernel-20080817-1103/include/linux/autoconf.h  -I/root/ofa_1_4_dev_kernel-20080817-1103/kernel_addons/backport/2.6.9_U6/include/    -I/root/ofa_1_4_dev_kernel-20080817-1103/include 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/debug  -I/usr/local/include/scst  -I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/ulp/srpt 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/net/cxgb3  -Iinclude     -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -g -Wdeclaration-after-statement -msoft-float 
-pipe -mminimal-toc -mtraceback=none -mcall-aixdesc                    -mtune=power4 -fno-unit-at-a-time   -DMODULE -DKBUILD_BASENAME=ehca_reqs -DKBUILD_MODNAME=ib_ehca -c -o 
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.tmp_ehca_reqs.o /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_reqs.c
   gcc -m64 -Wp,-MD,/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.ehca_irq.o.d -nostdinc -iwithprefix include -D__KERNEL__ -include include/linux/autoconf.h  -include 
/root/ofa_1_4_dev_kernel-20080817-1103/include/linux/autoconf.h  -I/root/ofa_1_4_dev_kernel-20080817-1103/kernel_addons/backport/2.6.9_U6/include/    -I/root/ofa_1_4_dev_kernel-20080817-1103/include 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/debug  -I/usr/local/include/scst  -I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/ulp/srpt 
-I/root/ofa_1_4_dev_kernel-20080817-1103/drivers/net/cxgb3  -Iinclude     -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -g -Wdeclaration-after-statement -msoft-float 
-pipe -mminimal-toc -mtraceback=none -mcall-aixdesc             -mtune=power4 -fno-unit-at-a-time   -DMODULE -DKBUILD_BASENAME=ehca_irq -DKBUILD_MODNAME=ib_ehca -c -o 
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/.tmp_ehca_irq.o /root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.c
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.c: In function `find_next_online_cpu':
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.c:653: warning: implicit declaration of function `next_cpu_nr'
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.c:654: error: `nr_cpu_ids' undeclared (first use in this function)
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.c:654: error: (Each undeclared identifier is reported only once
/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.c:654: error: for each function it appears in.)
make[4]: *** [/root/ofa_1_4_dev_kernel-20080817-1103/drivers/infiniband/hw/ehca/ehca_irq.o] Error 1


Regards,
Vladimir



More information about the ewg mailing list