With some build environments (e.g. clang, see #1613) linking fails with unresolved references. This is caused by the inclusion of 'unused code' which is usually discarded by the linker. The 'unused code' contains references to functions that have not been 'stubbed' out. The failure can be seen by removing 'LDFLAGS += -Wl,--gc-sections' in spdk.unittest.mk Resolved by adding stubs for missing references. These are never called so return an arbtrary default value. Move include of idxd/idxd.c after definition of movdir64b so that mock function is used. Part of a set of independent changes which Fixes #1613 Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: I760755122a1d3ca96f12b00b0040ae15471beafa Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5110 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
idxd.c | ||
Makefile |