Facing issue while compiling trex on arm64

56 views
Skip to first unread message

Ashik S L

unread,
Jul 14, 2023, 7:55:21 AM7/14/23
to TRex Traffic Generator
Hi
I tried compiling t-rex on ARM on ubuntu 18.04
trex version :  v.2.90

Steps:
1.cd linux_dpdk
2 ../b configure
3. ./b build.
Got below error :
Waf: Leaving directory `/home/ubuntu/ofed/trex-core-2.90/linux_dpdk/build_dpdk'
source not found: '..//src/dpdk//lib/librte_eal/common/arch/arm/rte_cpuflags.c' in bld(source='..//src/dpdk//../dpdk_funcs.c  ..//src/dpdk//drivers/bus/pci/pci_common.c  ..//src/dpdk//drivers/bus/pci/pci_common_uio.c  ..//src/dpdk//drivers/bus/pci/pci_params.c  ..//src/dpdk//drivers/bus/pci/linux/pci.c  ..//src/dpdk//drivers/bus/pci/linux/pci_uio.c  ..//src/dpdk//drivers/bus/pci/linux/pci_vfio.c

any inputs are appreciated.

杨鹏

unread,
Jun 17, 2024, 9:46:17 AMJun 17
to TRex Traffic Generator
Hi.
I've also been trying to compile trex on an ARM server on ubuntu 18.04 recently. I also encountered a similar error.
I would like to ask if you have successfully compiled trex on the arm server.

The version of trex I compiled is v2.61. The dpdk version uses 17.05
The mistake I encountered was this

[  33/1129] Compiling ../external_libs/bpf/bpf_api.c
[  34/1129] Compiling ../src/dpdk/lib/librte_eal/common/eal_common_string_fns.c
cc1: fatal error: ../src/pal/linux_dpdk/dpdk1905_aarch64/rte_config.h: No such file or directory
compilation terminated.

Waf: Leaving directory `/home/yp/trex-core-2.61/linux_dpdk/build_dpdk'
Build failed
 -> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)

I tried to look under the directory and found that there was no corresponding dpdp1905-aarch64 directory
server:~/trex-core-2.61/src/pal/linux_dpdk$ ls -l
total 52
-rwxr-xr-x 1 1904 Aug 27  2019 CRing.h
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1711_aarch64
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1711_x86_64
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1805_aarch64
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1805_x86_64
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1808_aarch64
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1808_x86_64
drwxrwxr-x 2 4096 Aug 27  2019 dpdk1905_x86_64
-rwxr-xr-x 1 3519 Aug 27  2019 mbuf.cpp
-rwxr-xr-x 1 1185 Aug 27  2019 mbuf.h
-rwxr-xr-x 1  681 Aug 27  2019 pal_utl.cpp
-rwxr-xr-x 1 1119 Aug 27  2019 pal_utl.h
-rw-rw-r-- 1  181 Aug 27  2019 rte_ethdev_includes.h

Looking forward to your reply
Reply all
Reply to author
Forward
0 new messages