Project

General

Profile

Actions

Bug #51550

open

Build Ceph with Clang++10, SPDK Link memory_ut failed

Added by Kevin Zhao almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

LINK memory_ut
/usr/bin/ld.bfd: memory_ut.o: in function `vtophys_notify':
/home/vagrant/spdk_repo/spdk/lib/env_dpdk/memory.c:1024: undefined reference to `rte_eal_iova_mode'
/usr/bin/ld.bfd: /home/vagrant/spdk_repo/spdk/lib/env_dpdk/memory.c:1136: undefined reference to `rte_eal_iova_mode'
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
make3: * [/home/vagrant/spdk_repo/spdk/mk/spdk.unittest.mk:74: memory_ut] Error 1
make2:
[/home/vagrant/spdk_repo/spdk/mk/spdk.subdirs.mk:44: memory] Error 2
make1:
[/home/vagrant/spdk_repo/spdk/mk/spdk.subdirs.mk:44: env] Error 2
make: *
[/home/vagrant/spdk_repo/spdk/mk/spdk.subdirs.mk:44: test] Error 2

Actions #1

Updated by Kevin Zhao almost 3 years ago

Upstream fix, but not include in Ceph/spdk repo.
https://github.com/spdk/spdk/issues/1613
Current workaround would be temporarily disable the test binary build.

Actions #2

Updated by Kevin Zhao almost 3 years ago

diff --git a/Makefile b/Makefile

In src/spdk

index 24742e69c..658b51759 100644
--- a/Makefile
+++ b/Makefile
@ -41,7 +41,6 @ DIRS-y += module
DIRS-$(CONFIG_SHARED) += shared_lib
DIRS-y += app include
DIRS-$(CONFIG_EXAMPLES) += examples
DIRS-y += test
DIRS
$(CONFIG_IPSEC_MB) += ipsecbuild
DIRS-$(CONFIG_ISAL) += isalbuild

Actions

Also available in: Atom PDF