Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version compatibility issue #302

Open
CCCodelover opened this issue Jan 15, 2025 · 4 comments
Open

Version compatibility issue #302

CCCodelover opened this issue Jan 15, 2025 · 4 comments

Comments

@CCCodelover
Copy link

I am using DPDK 24.11; which version of Pktgen should I use?

@CCCodelover
Copy link
Author

I use pktgen24.10.3 but the error come when "make"
[19/64] Compiling C object lib/utils/libutils.a.p/_atoip.c.o FAILED: lib/utils/libutils.a.p/_atoip.c.o ccache cc -Ilib/utils/libutils.a.p -Ilib/utils -I../lib/utils -Ilib/common -I../lib/common -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -fPIC -include rte_config.h -march=native -MD -MQ lib/utils/libutils.a.p/_atoip.c.o -MF lib/utils/libutils.a.p/_atoip.c.o.d -o lib/utils/libutils.a.p/_atoip.c.o -c ../lib/utils/_atoip.c In file included from ../lib/utils/_atoip.c:6: ../lib/utils/_atoip.h:35:30: error: field ‘ipv6’ has incomplete type 35 | struct rte_ipv6_addr ipv6; | ^~~~ [24/64] Compiling C object lib/common/libcommon.a.p/cksum.c.o FAILED: lib/common/libcommon.a.p/cksum.c.o ccache cc -Ilib/common/libcommon.a.p -Ilib/common -I../lib/common -Ilib/hmap -I../lib/hmap -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -fPIC -include rte_config.h -march=native -MD -MQ lib/common/libcommon.a.p/cksum.c.o -MF lib/common/libcommon.a.p/cksum.c.o.d -o lib/common/libcommon.a.p/cksum.c.o -c ../lib/common/cksum.c In file included from ../lib/common/cksum.c:73: ../lib/common/pg_inet.h:46:30: error: field ‘ipv6’ has incomplete type 46 | struct rte_ipv6_addr ipv6; | ^~~~ [30/64] Compiling C object lib/cli/libcli.a.p/cli_map.c.o FAILED: lib/cli/libcli.a.p/cli_map.c.o ccache cc -Ilib/cli/libcli.a.p -Ilib/cli -I../lib/cli -Ilib/common -I../lib/common -Ilib/utils -I../lib/utils -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -fPIC -include rte_config.h -march=native -MD -MQ lib/cli/libcli.a.p/cli_map.c.o -MF lib/cli/libcli.a.p/cli_map.c.o.d -o lib/cli/libcli.a.p/cli_map.c.o -c ../lib/cli/cli_map.c In file included from ../lib/cli/cli_map.c:7: ../lib/utils/_atoip.h:35:30: error: field ‘ipv6’ has incomplete type 35 | struct rte_ipv6_addr ipv6; | ^~~~ [33/64] Compiling C object app/pktgen.p/l2p.c.o FAILED: app/pktgen.p/l2p.c.o ccache cc -Iapp/pktgen.p -Iapp -I../app -Ilib/common -I../lib/common -Ilib/utils -I../lib/utils -Ilib/vec -I../lib/vec -Ilib/plugin -I../lib/plugin -Ilib/cli -I../lib/cli -Ilib/lua -I../lib/lua -Ilib/hmap -I../lib/hmap -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -pthread -include rte_config.h -march=native '-D__PROJECT_VERSION="24.10.3"' -MD -MQ app/pktgen.p/l2p.c.o -MF app/pktgen.p/l2p.c.o.d -o app/pktgen.p/l2p.c.o -c ../app/l2p.c In file included from ../app/pktgen.h:76, from ../app/l2p.c:30: ../lib/common/pg_inet.h:46:30: error: field ‘ipv6’ has incomplete type 46 | struct rte_ipv6_addr ipv6; | ^~~~ [34/64] Compiling C object app/pktgen.p/pktgen-arp.c.o FAILED: app/pktgen.p/pktgen-arp.c.o ccache cc -Iapp/pktgen.p -Iapp -I../app -Ilib/common -I../lib/common -Ilib/utils -I../lib/utils -Ilib/vec -I../lib/vec -Ilib/plugin -I../lib/plugin -Ilib/cli -I../lib/cli -Ilib/lua -I../lib/lua -Ilib/hmap -I../lib/hmap -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -pthread -include rte_config.h -march=native '-D__PROJECT_VERSION="24.10.3"' -MD -MQ app/pktgen.p/pktgen-arp.c.o -MF app/pktgen.p/pktgen-arp.c.o.d -o app/pktgen.p/pktgen-arp.c.o -c ../app/pktgen-arp.c In file included from ../app/pktgen.h:76, from ../app/pktgen-arp.c:15: ../lib/common/pg_inet.h:46:30: error: field ‘ipv6’ has incomplete type 46 | struct rte_ipv6_addr ipv6; | ^~~~ [35/64] Compiling C object app/pktgen.p/pktgen-capture.c.o FAILED: app/pktgen.p/pktgen-capture.c.o ccache cc -Iapp/pktgen.p -Iapp -I../app -Ilib/common -I../lib/common -Ilib/utils -I../lib/utils -Ilib/vec -I../lib/vec -Ilib/plugin -I../lib/plugin -Ilib/cli -I../lib/cli -Ilib/lua -I../lib/lua -Ilib/hmap -I../lib/hmap -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -pthread -include rte_config.h -march=native '-D__PROJECT_VERSION="24.10.3"' -MD -MQ app/pktgen.p/pktgen-capture.c.o -MF app/pktgen.p/pktgen-capture.c.o.d -o app/pktgen.p/pktgen-capture.c.o -c ../app/pktgen-capture.c In file included from ../app/pktgen-seq.h:14, from ../app/pktgen-port-cfg.h:23, from ../app/pktgen-capture.h:17, from ../app/pktgen-capture.c:8: ../lib/common/pg_inet.h:46:30: error: field ‘ipv6’ has incomplete type 46 | struct rte_ipv6_addr ipv6; | ^~~~ [36/64] Compiling C object app/pktgen.p/cli-functions.c.o FAILED: app/pktgen.p/cli-functions.c.o ccache cc -Iapp/pktgen.p -Iapp -I../app -Ilib/common -I../lib/common -Ilib/utils -I../lib/utils -Ilib/vec -I../lib/vec -Ilib/plugin -I../lib/plugin -Ilib/cli -I../lib/cli -Ilib/lua -I../lib/lua -Ilib/hmap -I../lib/hmap -I/usr/local/include -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -O0 -g -march=native -mavx -mavx2 -DALLOW_EXPERIMENTAL_API -D_GNU_SOURCE -Wno-pedantic -Wno-format-truncation -pthread -include rte_config.h -march=native '-D__PROJECT_VERSION="24.10.3"' -MD -MQ app/pktgen.p/cli-functions.c.o -MF app/pktgen.p/cli-functions.c.o.d -o app/pktgen.p/cli-functions.c.o -c ../app/cli-functions.c In file included from ../app/pktgen.h:76, from ../app/cli-functions.c:30: ../lib/common/pg_inet.h:46:30: error: field ‘ipv6’ has incomplete type 46 | struct rte_ipv6_addr ipv6; | ^~~~ ninja: build stopped: subcommand failed. make: *** [Makefile:27:debug] 错误 1

@KeithWiles
Copy link
Collaborator

I am currently using Pktgen 24.10.3 and DPDK 25.03.0-rc0 and Ubuntu 24.10.

This could be a Linux distro issue, which I do not have any other Linux distros to test on.

@CCCodelover
Copy link
Author

Thanks for your reply, I'm currently using ubuntu 22.04, is there a tested version of Dpdk and Pktgen available?

@pktgen
Copy link
Owner

pktgen commented Jan 18, 2025

I only test with latest DPDK and Pktgen as I do not have time to test any more than the latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants