Bug #51550
openBuild Ceph with Clang++10, SPDK Link memory_ut failed
0%
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
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.
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) += examplesDIRS-y += test$(CONFIG_IPSEC_MB) += ipsecbuild
DIRS
DIRS-$(CONFIG_ISAL) += isalbuild