Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `rdma_resolve_addr' #2

Open
majid0jalili opened this issue Dec 20, 2021 · 2 comments
Open

undefined reference to `rdma_resolve_addr' #2

majid0jalili opened this issue Dec 20, 2021 · 2 comments

Comments

@majid0jalili
Copy link

majid0jalili commented Dec 20, 2021

I am trying to install Leap, but facing with the following issue when "make -32"

leap/built-in.o: In function IS_bind_client':
/home/cc/Leap/leap/leap.c:1245: undefined reference to rdma_resolve_addr' leap/built-in.o: In function IS_connect_client':
/home/cc/Leap/leap/leap.c:1222: undefined reference to rdma_connect' leap/built-in.o: In function IS_free_buffers':
/home/cc/Leap/leap/leap.c:1080: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1082: undefined reference to ib_dereg_mr'
/home/cc/Leap/leap/leap.c:1084: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1086: undefined reference to ib_dereg_mr'
leap/built-in.o: In function IS_setup_qp': /home/cc/Leap/leap/leap.c:1149: undefined reference to ib_alloc_pd'
/home/cc/Leap/leap/leap.c:1162: undefined reference to ib_create_cq' leap/built-in.o: In function IS_create_qp':
/home/cc/Leap/leap/leap.c:1121: undefined reference to rdma_create_qp' leap/built-in.o: In function IS_setup_qp':
/home/cc/Leap/leap/leap.c:1188: undefined reference to ib_destroy_cq' /home/cc/Leap/leap/leap.c:1190: undefined reference to ib_dealloc_pd'
leap/built-in.o: In function IS_setup_buffers': /home/cc/Leap/leap/leap.c:1047: undefined reference to ib_get_dma_mr'
/home/cc/Leap/leap/leap.c:1064: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1066: undefined reference to ib_dereg_mr'
/home/cc/Leap/leap/leap.c:1068: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1070: undefined reference to ib_dereg_mr'
leap/built-in.o: In function IS_free_qp': /home/cc/Leap/leap/leap.c:1129: undefined reference to ib_destroy_qp'
/home/cc/Leap/leap/leap.c:1130: undefined reference to ib_destroy_cq' /home/cc/Leap/leap/leap.c:1131: undefined reference to ib_dealloc_pd'
leap/built-in.o: In function kernel_cb_init': /home/cc/Leap/leap/leap.c:1525: undefined reference to rdma_create_id'
leap/built-in.o: In function IS_cma_event_handler': /home/cc/Leap/leap/leap.c:593: undefined reference to rdma_resolve_route'`

I tried three Ubuntus: 14, 16, 20, and corresponding MLNX drivers.

`cc@mm:~/Leap$ ofed_info -s

MLNX_OFED_LINUX-4.1-1.0.2.0:`

`cc@mm:~/Leap$ lspci | egrep -i --color 'network|ethernet'

01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10)
01:00.2 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10)
01:00.3 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10)
03:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]`

`cc@mm:~/Leap$ uname -r

4.4.0`

@Panhx0601
Copy link

I am trying to install Leap, but facing with the following issue when "make -32"

leap/built-in.o: In function IS_bind_client': /home/cc/Leap/leap/leap.c:1245: undefined reference to rdma_resolve_addr' leap/built-in.o: In function IS_connect_client': /home/cc/Leap/leap/leap.c:1222: undefined reference to rdma_connect' leap/built-in.o: In function IS_free_buffers': /home/cc/Leap/leap/leap.c:1080: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1082: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1084: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1086: undefined reference to ib_dereg_mr' leap/built-in.o: In function IS_setup_qp': /home/cc/Leap/leap/leap.c:1149: undefined reference to ib_alloc_pd' /home/cc/Leap/leap/leap.c:1162: undefined reference to ib_create_cq' leap/built-in.o: In function IS_create_qp': /home/cc/Leap/leap/leap.c:1121: undefined reference to rdma_create_qp' leap/built-in.o: In function IS_setup_qp': /home/cc/Leap/leap/leap.c:1188: undefined reference to ib_destroy_cq' /home/cc/Leap/leap/leap.c:1190: undefined reference to ib_dealloc_pd' leap/built-in.o: In function IS_setup_buffers': /home/cc/Leap/leap/leap.c:1047: undefined reference to ib_get_dma_mr' /home/cc/Leap/leap/leap.c:1064: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1066: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1068: undefined reference to ib_dereg_mr' /home/cc/Leap/leap/leap.c:1070: undefined reference to ib_dereg_mr' leap/built-in.o: In function IS_free_qp': /home/cc/Leap/leap/leap.c:1129: undefined reference to ib_destroy_qp' /home/cc/Leap/leap/leap.c:1130: undefined reference to ib_destroy_cq' /home/cc/Leap/leap/leap.c:1131: undefined reference to ib_dealloc_pd' leap/built-in.o: In function kernel_cb_init': /home/cc/Leap/leap/leap.c:1525: undefined reference to rdma_create_id' leap/built-in.o: In function IS_cma_event_handler': /home/cc/Leap/leap/leap.c:593: undefined reference to rdma_resolve_route'`

I tried three Ubuntus: 14, 16, 20, and corresponding MLNX drivers.

`cc@mm:~/Leap$ ofed_info -s

MLNX_OFED_LINUX-4.1-1.0.2.0:`

`cc@mm:~/Leap$ lspci | egrep -i --color 'network|ethernet'

01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10) 01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10) 01:00.2 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10) 01:00.3 Ethernet controller: Broadcom Corporation NetXtreme II BCM57800 1/10 Gigabit Ethernet (rev 10) 03:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]`

`cc@mm:~/Leap$ uname -r

4.4.0`

May I ask how you solved this problem?

@Harry-Chen
Copy link

Harry-Chen commented Jan 3, 2023

@majid0jalili @Panhx0601 This error is due to that leap/leap.c, which is built into the kernel, uses some symbols from drivers/infiniband/core/verbs.c, which is built as a module, thus the linking problems.

You MUST select Infiniband Support as built-in (y) to solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants