[openib-general] Compile problems with core code and pathscale for svn6462 and linux-2.6.17-rc1

Matt Leininger mlleinin at hpcn.ca.sandia.gov
Thu Apr 13 16:32:38 PDT 2006


I'm trying to compile the svn 6462 snapshot with linux-2.6.17-rc1 on a
RHEL4 based system.

I get the following error for addr.c:

  CC [M]  drivers/infiniband/core/index.o
  CC [M]  drivers/infiniband/core/addr.o
In file included from drivers/infiniband/core/addr.c:38:
drivers/infiniband/include/rdma/ib_addr.h:43: error: field `dev_type'
has incomplete type
drivers/infiniband/core/addr.c: In function `copy_addr':
drivers/infiniband/core/addr.c:95: error: `RDMA_NODE_IB_CA' undeclared
(first use in this function)
drivers/infiniband/core/addr.c:95: error: (Each undeclared identifier is
reported only once
drivers/infiniband/core/addr.c:95: error: for each function it appears
in.)
drivers/infiniband/core/addr.c:98: error: `RDMA_NODE_RNIC' undeclared
(first use in this function)
make[3]: *** [drivers/infiniband/core/addr.o] Error 1
make[2]: *** [drivers/infiniband/core] Error 2
make[1]: *** [drivers/infiniband] Error 2


If I remove include/rdma (which I had to do in the past) then some of
the pathscale code fails to compile.  Here is the error:

  LD [M]  drivers/infiniband/core/rdma_ucm.o
  CC [M]  drivers/infiniband/hw/ipath/ipath_cq.o
In file included from drivers/infiniband/hw/ipath/ipath_cq.c:36:
drivers/infiniband/hw/ipath/ipath_verbs.h:40:26: rdma/ib_pack.h: No such
file or directory
In file included from drivers/infiniband/hw/ipath/ipath_cq.c:36:
drivers/infiniband/hw/ipath/ipath_verbs.h:128: error: field `grh' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:147: error: field `mgid' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:155: error: field `ibmr' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:161: error: field `ibfmr' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:168: error: field `ibpd' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:174: error: field `ibah' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:175: error: field `attr' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:223: error: field `ibcq' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:239: error: field `wr' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:269: error: field `ibsrq' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:284: error: field `ibqp' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:288: error: field
`remote_ah_attr' has incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:331: error: field `path_mtu'
has incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:412: error: field `ibdev' has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:485: error: field `ibucontext'
has incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_imr':
drivers/infiniband/hw/ipath/ipath_verbs.h:490: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:490: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_ifmr':
drivers/infiniband/hw/ipath/ipath_verbs.h:495: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:495: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_ipd':
drivers/infiniband/hw/ipath/ipath_verbs.h:500: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:500: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_iah':
drivers/infiniband/hw/ipath/ipath_verbs.h:505: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:505: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_icq':
drivers/infiniband/hw/ipath/ipath_verbs.h:510: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:510: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_isrq':
drivers/infiniband/hw/ipath/ipath_verbs.h:515: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:515: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_iqp':
drivers/infiniband/hw/ipath/ipath_verbs.h:520: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:520: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_idev':
drivers/infiniband/hw/ipath/ipath_verbs.h:525: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:525: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: At top level:
drivers/infiniband/hw/ipath/ipath_verbs.h:533: warning: "struct ib_mad"
declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:533: warning: its scope is
only this definition or declaration, which is probably not what you want
drivers/infiniband/hw/ipath/ipath_verbs.h: In function `to_iucontext':
drivers/infiniband/hw/ipath/ipath_verbs.h:538: warning: type defaults to
`int' in declaration of `__mptr'
drivers/infiniband/hw/ipath/ipath_verbs.h:538: warning: initialization
from incompatible pointer type
drivers/infiniband/hw/ipath/ipath_verbs.h: At top level:
drivers/infiniband/hw/ipath/ipath_verbs.h:564: warning: "struct
ib_udata" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:564: warning: "struct
ib_qp_init_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:569: warning: "struct
ib_qp_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:572: warning: "struct
ib_qp_init_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:572: warning: "struct
ib_qp_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:594: warning: "struct ib_sge"
declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:624: warning: "struct ib_sge"
declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:624: error: conflicting types
for 'ipath_lkey_ok'
drivers/infiniband/hw/ipath/ipath_verbs.h:594: error: previous
declaration of 'ipath_lkey_ok' was here
drivers/infiniband/hw/ipath/ipath_verbs.h:624: error: conflicting types
for 'ipath_lkey_ok'
drivers/infiniband/hw/ipath/ipath_verbs.h:594: error: previous
declaration of 'ipath_lkey_ok' was here
drivers/infiniband/hw/ipath/ipath_verbs.h:630: warning: "struct
ib_recv_wr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:634: warning: "struct
ib_udata" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:634: warning: "struct
ib_srq_init_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:637: warning: "enum
ib_srq_attr_mask" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:637: warning: "struct
ib_srq_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:637: warning: parameter has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:639: warning: "struct
ib_srq_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:649: warning: "struct
ib_udata" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:653: warning: "enum
ib_cq_notify" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:653: warning: parameter has
incomplete type
drivers/infiniband/hw/ipath/ipath_verbs.h:655: warning: "struct
ib_udata" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:661: warning: "struct
ib_phys_buf" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:665: warning: "struct
ib_udata" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_verbs.h:665: warning: "struct ib_umem"
declared inside parameter
listdrivers/infiniband/hw/ipath/ipath_verbs.h:670: warning: "struct
ib_fmr_attr" declared inside parameter list
drivers/infiniband/hw/ipath/ipath_cq.c: In function `ipath_cq_enter':
drivers/infiniband/hw/ipath/ipath_cq.c:60: error: storage size of 'ev'
isn't known
drivers/infiniband/hw/ipath/ipath_cq.c:64: error: `IB_EVENT_CQ_ERR'
undeclared (first use in this function)
drivers/infiniband/hw/ipath/ipath_cq.c:64: error: (Each undeclared
identifier is reported only once
drivers/infiniband/hw/ipath/ipath_cq.c:64: error: for each function it
appears in.)
drivers/infiniband/hw/ipath/ipath_cq.c:60: warning: unused variable `ev'
drivers/infiniband/hw/ipath/ipath_cq.c:69: error: invalid use of
undefined type `struct ib_wc'
drivers/infiniband/hw/ipath/ipath_cq.c:69: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:69: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:72: error: `IB_CQ_NEXT_COMP'
undeclared (first use in this function)
drivers/infiniband/hw/ipath/ipath_cq.c:73: error: `IB_CQ_SOLICITED'
undeclared (first use in this function)
drivers/infiniband/hw/ipath/ipath_cq.c:85: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:85: error: `IB_WC_SUCCESS'
undeclared (first use in this function)
drivers/infiniband/hw/ipath/ipath_cq.c: In function `ipath_poll_cq':
drivers/infiniband/hw/ipath/ipath_cq.c:108: error: increment of pointer
to unknown structure
drivers/infiniband/hw/ipath/ipath_cq.c:108: error: arithmetic on pointer
to an incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:111: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:111: error: invalid use of
undefined type `struct ib_wc'
drivers/infiniband/hw/ipath/ipath_cq.c:111: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c: At top level:
drivers/infiniband/hw/ipath/ipath_cq.c:158: warning: "struct ib_udata"
declared inside parameter list
drivers/infiniband/hw/ipath/ipath_cq.c:159: error: conflicting types for
'ipath_create_cq'
drivers/infiniband/hw/ipath/ipath_verbs.h:649: error: previous
declaration of 'ipath_create_cq' was here
drivers/infiniband/hw/ipath/ipath_cq.c:159: error: conflicting types for
'ipath_create_cq'
drivers/infiniband/hw/ipath/ipath_verbs.h:649: error: previous
declaration of 'ipath_create_cq' was here
drivers/infiniband/hw/ipath/ipath_cq.c: In function `ipath_create_cq':
drivers/infiniband/hw/ipath/ipath_cq.c:177: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:189: error: `IB_CQ_NEXT_COMP'
undeclared (first use in this function)
drivers/infiniband/hw/ipath/ipath_cq.c: At top level:
drivers/infiniband/hw/ipath/ipath_cq.c:232: warning: "enum ib_cq_notify"
declared inside parameter
listdrivers/infiniband/hw/ipath/ipath_cq.c:233: error: parameter
`notify' has incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c: In function
`ipath_req_notify_cq':
drivers/infiniband/hw/ipath/ipath_cq.c:242: error: `IB_CQ_NEXT_COMP'
undeclared (first use in this function)
drivers/infiniband/hw/ipath/ipath_cq.c: At top level:
drivers/infiniband/hw/ipath/ipath_cq.c:248: warning: "struct ib_udata"
declared inside parameter list
drivers/infiniband/hw/ipath/ipath_cq.c:249: error: conflicting types for
'ipath_resize_cq'
drivers/infiniband/hw/ipath/ipath_verbs.h:655: error: previous
declaration of 'ipath_resize_cq' was here
drivers/infiniband/hw/ipath/ipath_cq.c:249: error: conflicting types for
'ipath_resize_cq'
drivers/infiniband/hw/ipath/ipath_verbs.h:655: error: previous
declaration of 'ipath_resize_cq' was here
drivers/infiniband/hw/ipath/ipath_cq.c: In function `ipath_resize_cq':
drivers/infiniband/hw/ipath/ipath_cq.c:258: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:276: error: invalid use of
undefined type `struct ib_wc'
drivers/infiniband/hw/ipath/ipath_cq.c:276: error: dereferencing pointer
to incomplete type
drivers/infiniband/hw/ipath/ipath_cq.c:276: error: invalid use of
undefined type `struct ib_wc'
drivers/infiniband/hw/ipath/ipath_cq.c:276: error: dereferencing pointer
to incomplete type
make[3]: *** [drivers/infiniband/hw/ipath/ipath_cq.o] Error 1
make[2]: *** [drivers/infiniband/hw/ipath] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [drivers] Error 2









More information about the general mailing list