accelio / accelio

IO, Message, and RPC Acceleration Library
Other
289 stars 123 forks source link

compile error on CentOS 6.6 #55

Open allspace opened 9 years ago

allspace commented 9 years ago

I got the following compile error with v1.4:

CCLD xio_rdma_client xio_rdma_common_usr.o: In function publish_our_buffer': /root/accelio-1.4/tests/usr/direct_rdma_test/../../../tests/portable/direct_rdma_test/xio_rdma_common.c:89: undefined reference toxio_lookup_rkey_by_response' collect2: error: ld returned 1 exit status make[1]: * [xio_rdma_client] Error 1 make[1]: Leaving directory `/root/accelio-1.4/tests/usr/direct_rdma_test' make: * [all-recursive] Error 1

alon-grinshpoon commented 9 years ago

Hey!

Just to make sure, you cloned the latest accelio and are using the master branch with CentOS 6.6?

Can you please elaborate on the flow of execution you ran? Did you run './autogen && ./configure && make' and it resulted in the error above?

Alon The Accelio Team

alon-grinshpoon commented 9 years ago

Hey again!

I've managed to recreate and solve the compile error you had on CentOS 6.6. Since the code in question uses verbs and it seems CentOS 6.6 lacks a few drivers, you can install Mellanox OFED (FREE of charge) and it will fix any compilation problems.

You can get MLNX_OFED for CentOS 6.6 here: http://www.mellanox.com/page/products_dyn?product_family=26

Aligning this test upstream (so you won't need to install Mellanox OFED) may take time.

Hope this helps! Alon The Accelio Team

quolix commented 8 years ago

Same compilation problem here on CentOS 7.2, one year later.

If I get this correctly, OFED is a full Linux distribution, which I would need to install and compile accelio on? Would the resulting .so work on any other Linux distro then?

laichun11 commented 7 years ago

in centos6.5 ,compile accelio get some error,but i am already install Mellanox OFED

include/linux/usb.h: In function 'usb_register': include/linux/usb.h:1093: error: 'KBUILD_MODNAME' undeclared (first use in this function) include/linux/usb.h:1093: error: (Each undeclared identifier is reported only once include/linux/usb.h:1093: error: for each function it appears in.) In file included from include/linux/tcp.h:181, from include/linux/ipv6.h:215, from include/net/ip.h:339, from /usr/src/ofa_kernel/default/include/linux/compat-3.1.h:10, from /usr/src/ofa_kernel/default/include/linux/compat-2.6.h:66, from :0: include/net/inet_connection_sock.h: In function 'inet_csk_clear_xmit_timer': include/net/inet_connection_sock.h:203: error: 'KBUILD_MODNAME' undeclared (first use in this function) include/net/inet_connection_sock.h:203: error: unknown field 'Usage' specified in initializer include/net/inet_connection_sock.h:203: error: expected expression before '.' token include/net/inet_connection_sock.h:203: error: 'Usage' undeclared (first use in this function) include/net/inet_connection_sock.h:203: error: expected ')' before ':' token include/net/inet_connection_sock.h:203: error: expected ')' before ':' token include/net/inet_connection_sock.h:203: error: expected ')' before 'KBUILD_MODNAME' include/net/inet_connection_sock.h: In function 'inet_csk_reset_xmit_timer': include/net/inet_connection_sock.h:219: error: 'KBUILD_MODNAME' undeclared (first use in this function) include/net/inet_connection_sock.h:219: error: unknown field 'Usage' specified in initializer include/net/inet_connection_sock.h:219: error: expected expression before '.' token include/net/inet_connection_sock.h:219: error: 'Usage' undeclared (first use in this function) include/net/inet_connection_sock.h:219: error: expected ')' before ':' token include/net/inet_connection_sock.h:219: error: expected ')' before ':' token include/net/inet_connection_sock.h:219: error: expected ')' before 'KBUILD_MODNAME' include/net/inet_connection_sock.h:236: error: unknown field 'Usage' specified in initializer include/net/inet_connection_sock.h:236: error: expected expression before '.' token include/net/inet_connection_sock.h:236: error: expected ')' before ':' token include/net/inet_connection_sock.h:236: error: expected ')' before ':' token include/net/inet_connection_sock.h:236: error: expected ')' before 'KBUILD_MODNAME' make[2]: [/root/accelio-1.7/tests/kernel/direct_rdma_test/xio_rdma_common_kernel.o] Error 1 make[1]: [module/root/accelio-1.7/tests/kernel/direct_rdma_test] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64' make: *** [all-spec] Error 2