erpc-io / eRPC

Efficient RPCs for datacenter networks
https://erpc.io/
Other
840 stars 138 forks source link

this bug "rte_common.h: No such file or directory " also happened #7

Closed theseusyang closed 5 years ago

theseusyang commented 5 years ago

When I build source code using dpdk-18.02 in CentOS 7.5 , rte_common.h: No such file or directory also happened.

anujkaliaiitd commented 5 years ago

I was able to compile eRPC with CentOS 7.5 and DPDK-18.02.

Did you install DPDK at the system level? This can be done using:

make config T=x86_64-native-linuxapp-gcc
make
sudo make install

If you did this, did CMake find the DPDK include directory?

theseusyang commented 5 years ago

OK, this bug is fixed, but when running "make dpdk . " in hello_world directory, another error is happened.

/usr/include/dpdk/rte_memcpy.h :612:102 : error '_mm_alignr_epi8' was not declared in this scope.

anujkaliaiitd commented 5 years ago

Fixed this by adding -march=native to the DPDK make command.

theseusyang commented 5 years ago

add -march=native after "make dpdk ." command line?

anujkaliaiitd commented 5 years ago

I meant that I added the flag to the hello world Makefile. LMK if it still doesn't work.