ab338eb44e
I get the following error when linking the test application:
build/lib/librte_pmd_thunderx_nicvf.a(nicvf_hw.o):
In function `nicvf_qsize_regbit':
drivers/net/thunderx/base/nicvf_hw.c:451: undefined reference to `log2'
build/lib/librte_pmd_thunderx_nicvf.a(nicvf_hw.o):
In function `nicvf_rss_reta_update':
drivers/net/thunderx/base/nicvf_hw.c:804: undefined reference to `log2'
build/lib/librte_pmd_thunderx_nicvf.a(nicvf_hw.o):
In function `nicvf_rss_reta_query':
drivers/net/thunderx/base/nicvf_hw.c:825: undefined reference to `log2'
While I don't know why it does not happen for a default build, the error
can be explained. The link command line is:
gcc -o test ... *.o ... -Wl,-lm ... -Wl,-lrte_pmd_thunderx_nicvf ...
rte_pmd_thunderx_nicvf needs the math library, and it should be
added after. This is not the case because the test application also
adds the math library.
The makefile already filters the libraries, but it keeps the first
occurrence of the lib. Instead, the last one should be kept.
Fixes:
|
||
---|---|---|
.. | ||
arch | ||
exec-env | ||
internal | ||
machine | ||
target/generic | ||
toolchain | ||
rte.app.mk | ||
rte.bsdmodule.mk | ||
rte.combinedlib.mk | ||
rte.cpuflags.mk | ||
rte.extapp.mk | ||
rte.extlib.mk | ||
rte.extobj.mk | ||
rte.extshared.mk | ||
rte.extsubdir.mk | ||
rte.gnuconfigure.mk | ||
rte.hostapp.mk | ||
rte.hostlib.mk | ||
rte.install.mk | ||
rte.lib.mk | ||
rte.module.mk | ||
rte.obj.mk | ||
rte.sdkbuild.mk | ||
rte.sdkconfig.mk | ||
rte.sdkdepdirs.mk | ||
rte.sdkdoc.mk | ||
rte.sdkexamples.mk | ||
rte.sdkgcov.mk | ||
rte.sdkinstall.mk | ||
rte.sdkroot.mk | ||
rte.sdktest.mk | ||
rte.shared.mk | ||
rte.subdir.mk | ||
rte.vars.mk |