Hi,
Got around my previous problem with this patch which I found here: http://lists.openfabrics.org/pipermail/general/2006-December/030645.html --- scatterlist.h.orig 2007-08-22 11:05:47.203294206 -0500 +++ scatterlist.h 2007-08-22 11:08:00.958782781 -0500 @@ -25,4 +25,13 @@ */ #define ISA_DMA_THRESHOLD 0xffffffff +/* These macros should be used after a pci_map_sg call has been done + * to get bus addresses of each of the SG entries and their lengths. + * You should only work with the number of sg entries pci_map_sg + * returns. + */ +#define sg_dma_address(sg) ((sg)->dma_address) +#define sg_dma_len(sg) ((sg)->dma_length) + + #endif /* _ASM_IA64_SCATTERLIST_H */ Now building lustre 1.6.1 on an ia64 patchless client with ofed 1.2 fails while building ptlrpc here is the error message: Making all in ptlrpc make[5]: Entering directory `/usr/src/packages/BUILD/lustre-1.6.1/lustre/ptlrpc' connection.c: In function ‘ptlrpc_get_connection’: connection.c:107: warning: pointer targets in passing argument 2 of ‘obd_str2uui d’ differ in signedness niobuf.c: In function ‘ptlrpc_register_bulk’: niobuf.c:208: error: ‘PAGE_SHIFT’ undeclared (first use in this function) niobuf.c:208: error: (Each undeclared identifier is reported only once niobuf.c:208: error: for each function it appears in.) make[5]: *** [libptlrpc_a-niobuf.o] Error 1 make[5]: *** Waiting for unfinished jobs.... events.c: In function ‘ptlrpc_uuid_to_peer’: events.c:367: warning: pointer targets in passing argument 1 of ‘lustre_uuid_to_ peer’ differ in signedness pack_generic.c: In function ‘lustre_shrink_reply_v1’: pack_generic.c:545: warning: pointer targets in passing argument 2 of ‘lustre_ms g_size_v1’ differ in signedness pack_generic.c: In function ‘lustre_shrink_reply_v2’: pack_generic.c:584: warning: pointer targets in passing argument 2 of ‘lustre_ms g_size_v2’ differ in signedness client.c: In function ‘ptlrpc_replay_req’: client.c:1766: warning: dereferencing type-punned pointer will break strict-alia sing rules make[5]: Leaving directory `/usr/src/packages/BUILD/lustre-1.6.1/lustre/ptlrpc' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/packages/BUILD/lustre-1.6.1/lustre' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/packages/BUILD/lustre-1.6.1' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/packages/BUILD/lustre-1.6.1' any ideas? thanks Rene On Tue, 2007-08-21 at 22:56 +0100, Salmon, Rene wrote: > Hi, > > > Trying to compile lustre 1.6.1 on a patchless IA64 client running SLES > 10 kernel 2.6.16.21-0.25 with OFED-1.2. > > Here is the config line: > /usr/local/src/lustre/lustre-1.6.1 # ./configure > --with-linux=/usr/src/linux-2.6.16.21-0.25 > --with-linux-obj=/usr/src/linux-2.6.16.21-0.25 > --with-linux-config=/usr/src/linux-2.6.16.21-0.25/.config > --with-o2ib=/usr/local/ofed/src/ofa_kernel-1.2/ --disable-server > --disable-ldiskfs > > The config fails with: > > checking for CPU affinity support... yes > checking for tunable backoff TCP support... no (no kernel support) > checking for tunable panic_dumplog support... no > checking for QsNet sources... /usr/src/linux-2.6.16.21-0.25 > checking if quadrics kernel headers are present... no > checking whether to enable GM support... no > checking whether to enable OpenIB support... no > checking whether to enable Cisco/TopSpin IB support... no > checking whether to enable Voltaire IB support... no > checking whether to enable Infinicon support... no > checking whether to enable OpenIB gen2 support... no > configure: error: can't compile with OpenIB gen2 headers > under /usr/local/ofed/src/ofa_kernel-1.2/ > > > here are more details from confi.log: > > configure:6027: checking whether to enable Voltaire IB support > configure:6053: result: no > configure:6209: checking whether to enable Infinicon support > configure:6237: result: no > configure:6333: checking whether to enable OpenIB gen2 support > configure:6421: cp conftest.c build && make modules CC=gcc > -f /usr/local/src/lus > tre/lustre-1.6.1/build/Makefile > LUSTRE_LINUX_CONFIG=/usr/src/linux-2.6.16.21-0.2 > 5/.config LINUXINCLUDE=-I/usr/local/ofed/src/ofa_kernel-1.2//include > -Iinclude - > include include/linux/autoconf.h -o tmp_include_depends -o scripts -o > include/co > nfig/MARKER -C /usr/src/linux-2.6.16.21-0.25 > EXTRA_CFLAGS=-Werror-implicit-funct > ion-declaration -g -I/usr/local/src/lustre/lustre-1.6.1/lnet/include > -I/usr/loca > l/src/lustre/lustre-1.6.1/lustre/include > -I/usr/local/ofed/src/ofa_kernel-1.2//i > nclude M=/usr/local/src/lustre/lustre-1.6.1/build > In file included > from /usr/local/ofed/src/ofa_kernel-1.2//include/rdma/ib_addr.h > :37, > > from /usr/local/ofed/src/ofa_kernel-1.2//include/rdma/rdma_cm.h > :35, > from configure:6419: > /usr/local/ofed/src/ofa_kernel-1.2//include/rdma/ib_verbs.h: In > function > 'ib_sg_ > dma_address': > /usr/local/ofed/src/ofa_kernel-1.2//include/rdma/ib_verbs.h:1576: > error: > implici > t declaration of function 'sg_dma_address' > /usr/local/ofed/src/ofa_kernel-1.2//include/rdma/ib_verbs.h: In > function > 'ib_sg_ > dma_len': > /usr/local/ofed/src/ofa_kernel-1.2//include/rdma/ib_verbs.h:1589: > error: > implici > t declaration of function 'sg_dma_len' > configure: In function 'main': > configure:6433: warning: unused variable 'rej_reason' > configure:6432: warning: unused variable 'pool_fmr' > configure:6431: warning: unused variable 'qp_attr' > configure:6430: warning: unused variable 'device_attr' > configure:6429: warning: unused variable 'conn_param' > make[1]: *** [/usr/local/src/lustre/lustre-1.6.1/build/conftest.o] > Error > 1 > make: *** [_module_/usr/local/src/lustre/lustre-1.6.1/build] Error 2 > configure:6424: $? = 2 > configure: failed program was: > | #line 6383 "configure" > | /* confdefs.h. */ > | > | #define PACKAGE_NAME "Lustre" > | #define PACKAGE_TARNAME "lustre" > | #define PACKAGE_VERSION "LUSTRE_VERSION" > > > > > > I can build just fine if I take out the --with-o2ib option to > configure. > Can anyone point me in the right direction? > > Thanks > > > Rene > > > _______________________________________________ > Lustre-discuss mailing list > [email protected] > https://mail.clusterfs.com/mailman/listinfo/lustre-discuss > > _______________________________________________ Lustre-discuss mailing list [email protected] https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
