Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dpdk build error
Found ninja-1.7.2 at /usr/bin/ninja
+ ninja -C build
ninja: Entering directory `build'
[1415/1451] Linking target drivers/librte_compress_isal.so.21.0.
FAILED: drivers/librte_compress_isal.so.21.0
cc -o drivers/librte_compress_isal.so.21.0 'drivers/drivers@@rte_compress_isal@sha/meson-generated_.._rte_compress_isal.pmd.c.o' 'drivers/drivers@@tmp_rte_compress_isal@sta/compress_isal_isal_compress_pmd.c.o' 'drivers/drivers@@tmp_rte_compress_isal@sta/compress_isal_isal_compress_pmd_ops.c.o' -Wl,--no-undefined -Wl,--as-needed -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,librte_compress_isal.so.21 -Wl,--no-as-needed -pthread -lm -ldl -lnuma lib/librte_compressdev.so.21.0 lib/librte_eal.so.21.0 lib/librte_kvargs.so.21.0 lib/librte_telemetry.so.21.0 lib/librte_mbuf.so.21.0 lib/librte_mempool.so.21.0 lib/librte_ring.so.21.0 drivers/librte_bus_vdev.so.21.0 -Wl,--end-group -Wl,--version-script=/home/tanabarr/projects/daos-dpdk-20_11/_topdir/BUILD/dpdk-20.11/drivers/compress/isal/version.map '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/' -Wl,-rpath-link,/home/tanabarr/projects/daos-dpdk-20_11/_topdir/BUILD/dpdk-20.11/build/lib:/home/tanabarr/projects/daos-dpdk-20_11/_topdir/BUILD/dpdk-20.11/build/drivers
drivers/drivers@@tmp_rte_compress_isal@sta/compress_isal_isal_compress_pmd.c.o: In function `isal_comp_pmd_enqueue_burst':
isal_compress_pmd.c:(.text+0x212): undefined reference to `isal_inflate_init'
isal_compress_pmd.c:(.text+0x2fa): undefined reference to `isal_inflate'
isal_compress_pmd.c:(.text+0x5a0): undefined reference to `isal_deflate_init'
isal_compress_pmd.c:(.text+0x6d4): undefined reference to `isal_deflate'
isal_compress_pmd.c:(.text+0x7aa): undefined reference to `isal_deflate_set_hufftables'
isal_compress_pmd.c:(.text+0x984): undefined reference to `isal_deflate_set_hufftables'
isal_compress_pmd.c:(.text+0x9db): undefined reference to `isal_deflate_stateless'
isal_compress_pmd.c:(.text+0xa5b): undefined reference to `isal_inflate_stateless'
collect2: error: ld returned 1 exit status
[1422/1451] Compiling C object 'drivers/drivers@@tmp_rte_net_mlx5@sta/net_mlx5_mlx5_rxtx.c.o'.
ninja: build stopped: subcommand failed.
error: Bad exit status from /var/tmp/rpm-tmp.gFavmY (%build)
@yuan-luo
Copy link

yuan-luo commented Apr 13, 2021

I used nasm 2.14.2, but still encountered this error. Any idea?

yluo@ubuntu:~/spdk/dpdk/build$ nasm -v
NASM version 2.14.02

yluo@ubuntu:~/spdk/dpdk/build$ ninja
[2/44] Linking target drivers/librte_pmd_isal.so.20.0.3
FAILED: drivers/librte_pmd_isal.so.20.0.3 
cc  -o drivers/librte_pmd_isal.so.20.0.3 drivers/librte_pmd_isal.so.20.0.3.p/meson-generated_.._rte_pmd_isal.pmd.c.o drivers/libtmp_rte_pmd_isal.a.p/compress_isal_isal_compress_pmd.c.o drivers/libtmp_rte_pmd_isal.a.p/compress_isal_isal_compress_pmd_ops.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,librte_pmd_isal.so.20.0 -Wl,--no-as-needed -pthread -lm -ldl -lnuma '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/' -Wl,-rpath-link,/home/yluo/spdk/dpdk/build/lib -Wl,-rpath-link,/home/yluo/spdk/dpdk/build/drivers lib/librte_compressdev.so.20.0.3 lib/librte_eal.so.20.0.3 lib/librte_kvargs.so.20.0.3 lib/librte_telemetry.so.20.0.3 lib/librte_mbuf.so.20.0.3 lib/librte_mempool.so.20.0.3 lib/librte_ring.so.20.0.3 drivers/librte_bus_vdev.so.20.0.3 -Wl,--end-group -Wl,--version-script=/home/yluo/spdk/dpdk/drivers/compress/isal/rte_pmd_isal_version.map
/usr/bin/ld: drivers/libtmp_rte_pmd_isal.a.p/compress_isal_isal_compress_pmd.c.o: in function `isal_comp_pmd_enqueue_burst':
isal_compress_pmd.c:(.text+0xd17): undefined reference to `isal_deflate_init'
/usr/bin/ld: isal_compress_pmd.c:(.text+0xe8c): undefined reference to `isal_deflate'
/usr/bin/ld: isal_compress_pmd.c:(.text+0xf33): undefined reference to `isal_inflate_init'
/usr/bin/ld: isal_compress_pmd.c:(.text+0x1025): undefined reference to `isal_inflate'
/usr/bin/ld: isal_compress_pmd.c:(.text+0x1260): undefined reference to `isal_deflate_set_hufftables'
/usr/bin/ld: isal_compress_pmd.c:(.text+0x12b3): undefined reference to `isal_deflate_stateless'
/usr/bin/ld: isal_compress_pmd.c:(.text+0x13d4): undefined reference to `isal_inflate_stateless'
/usr/bin/ld: isal_compress_pmd.c:(.text+0x1418): undefined reference to `isal_deflate_set_hufftables'
collect2: error: ld returned 1 exit status
[7/44] Compiling C object drivers/libtmp_rte_pmd_qat.a.p/crypto_qat_qat_sym_session.c.o
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment