[dpdk-users] fslmc bus compiling error

Gavin Hu (Arm Technology China) Gavin.Hu at arm.com
Wed Jul 31 17:34:55 CEST 2019


Hi Hemant, 

There are two "dmb" functions defined and they are conflicting with each other. Did you notice this compiling error? 

  CC base/qbman/dpaa_alloc.o
In file included from /home/gavin/dpdk/build/include/rte_atomic.h:9,
                 from /home/gavin/dpdk/build/include/generic/rte_pause.h:16,
                 from /home/gavin/dpdk/build/include/rte_pause_64.h:13,
                 from /home/gavin/dpdk/build/include/rte_pause.h:13,
                 from /home/gavin/dpdk/build/include/generic/rte_spinlock.h:25,
                 from /home/gavin/dpdk/build/include/rte_spinlock.h:17,
                 from /home/gavin/dpdk/drivers/bus/fslmc/mc/mc_sys.c:10:
/home/gavin/dpdk/build/include/rte_atomic_64.h:19: error: "dmb" redefined [-Werror]
 #define dmb(opt) asm volatile("dmb " #opt : : : "memory")

In file included from /home/gavin/dpdk/drivers/bus/fslmc/mc/mc_sys.c:7:
/home/gavin/dpdk/drivers/bus/fslmc/mc/fsl_mc_sys.h:36: note: this is the location of the previous definition
 #define dmb() {__asm__ __volatile__("" : : : "memory"); }

cc1: error: unrecognized command line option '-Wno-address-of-packed-member' [-Werror]
cc1: all warnings being treated as errors
/home/gavin/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target 'mc/mc_sys.o' failed
make[4]: *** [mc/mc_sys.o] Error 1

Best regards,
Gavin



More information about the users mailing list