F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.76k stars 879 forks source link

Error compiling F-stack on aarch64 #801

Open baipaiha opened 4 months ago

baipaiha commented 4 months ago

Trying to build F-stack on aarch64/arm64 with ubuntu 22.04 (Bluefield-2 DPU / Cortex-A72) Assuming it can be supported since i've seen commits about aarch64/arm64: c74bbd605e89bf9ff30b780902b4cf1f8349dc22

Has anyone successfully built f-stack on aarch64 ? Any idea on how to fix the call-clobbered register used for global register variable error ?

wanglailing commented 2 months ago

./machine_include/machine/pcpu.h:60:23: error: call-clobbered register used for global register variable [-Werror] 60 | register struct pcpu *pcpup __asm ("x18"); | ^~~~~ you can add: -ffixed-x18 option to lib/Makefile

wanglailing commented 2 months ago

has no member named ‘pc_prvspace’, add the pc_prvspace to struct pcpu, deal it