Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find -lrte_kni while building #328

Open
Rwolkenflitzer opened this issue Aug 8, 2022 · 1 comment
Open

cannot find -lrte_kni while building #328

Rwolkenflitzer opened this issue Aug 8, 2022 · 1 comment

Comments

@Rwolkenflitzer
Copy link

When building MoonGen the compiler does not find -lrte_kni at usr/bin/ld. Probably as a result the interfaces cannot be bound. Is there a workaround for that issue?

-- Configuring done
-- Generating done
-- Build files have been written to: /home/ekd/MoonGen/build
[ 72%] Built target moon
[ 75%] Linking CXX executable MoonGen
/usr/bin/ld: cannot find -lrte_kni
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/MoonGen.dir/build.make:178: MoonGen] Error 1
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/MoonGen.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Trying to bind interfaces, this will fail if you are not root
Try sudo ./bind-interfaces.sh if this step fails
insmod: ERROR: could not load module ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko: No such file or directory

@snopytas
Copy link

I had the same issue under ubuntu 18.04. I solved it by using linux kernel version 4.15 instead of version 5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants