emmericp / MoonGen

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.
MIT License
1.04k stars 235 forks source link

Compilation for Netronome NICs #174

Open imehrdad2012 opened 7 years ago

imehrdad2012 commented 7 years ago

Hello,

I am trying to compile the MoonGen Library for Netronome programmable NICs but I am getting the following error. Is there any pointer on how I should address the issue?

Scanning dependencies of target moon [ 8%] [ 8%] [ 16%] [ 16%] Building CXX object libmoon/CMakeFiles/moon.dir/src/main.cpp.o Building CXX object libmoon/CMakeFiles/moon.dir/src/task.cpp.o Building C object libmoon/CMakeFiles/moon.dir/src/memory.c.o Building C object libmoon/CMakeFiles/moon.dir/src/device.c.o /home/moradi/vagrant/MoonGen/libmoon/src/memory.c:1:24: fatal error: rte_config.h: No such file or directory

include

                    ^

compilation terminated. /home/moradi/vagrant/MoonGen/libmoon/src/device.c:1:24: fatal error: rte_config.h: No such file or directory

include

                    ^

compilation terminated. make[2]: [libmoon/CMakeFiles/moon.dir/src/memory.c.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: *** [libmoon/CMakeFiles/moon.dir/src/device.c.o] Error 1 /home/moradi/vagrant/MoonGen/libmoon/src/task.cpp:13:24: fatal error: rte_launch.h: No such file or directory

include

                    ^

compilation terminated. make[2]: [libmoon/CMakeFiles/moon.dir/src/task.cpp.o] Error 1 make[1]: [libmoon/CMakeFiles/moon.dir/all] Error 2 make: *** [all] Error 2

emmericp commented 7 years ago

this error indicates that DPDK wasn't compiled. can you please post the actual error, i.e., the one that caused DPDK to fail to compile?