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

networking_ebpf build: Numerous build errors #297

Open
chrispsommers opened this issue Nov 17, 2022 · 3 comments
Open

networking_ebpf build: Numerous build errors #297

chrispsommers opened this issue Nov 17, 2022 · 3 comments

Comments

@chrispsommers
Copy link

Follow-up to #295. I tried building this recipe and saw errors throughout the build process. I've attached a detailed transcript. Below is a summary. Briefly, errors appeared on the console during vagrant up, host_install.sh and make start-demo. My system is an x86 tower running Ubuntu 20.04 natively, 64G RAM, 500G SSD.

Repo version:

chris@chris-z4:~/ipdk/build/networking_ebpf/vagrant$ git log |head -6
commit 326a50e365f51cc08cffff14bac83857eb8bf94c
Merge: 58b4936 9532a14
Author: Namrata-intel <[email protected]>
Date:   Tue Nov 15 07:42:48 2022 -0800

    Merge pull request #293 from ipdk-io/pv_ubuntu1804_build_fix

BUILD ATTEMPT

I followed instructions on https://github.com/ipdk-io/ipdk/blob/main/build/networking_ebpf/README_DOCKER.md

ON HOST

 1986  cd ipdk/build/networking_ebpf/
...
 1995  vagrant up
 1997  vagrant ssh

INSIDE VM:

vagrant@bullseye:/git/ipdk/build$ history 
    1  /git/ipdk/build/networking_ebpf/scripts/host_install.sh *
    2  cd /git/ipdk/build
    3  ./ipdk install ebpf-ubuntu2004
    4  ./ipdk build
    5  make start-demo

*Note: Step 1 above is not listed in the instructions in README_DOCKER.md. When I first followed the instructions, this caused problems further on ("No docker") etc.
I read https://github.com/ipdk-io/ipdk/tree/main/build/networking_ebpf#vagrant and figured I should do "host_install.sh" See #295

SOME PARTICULARLY SUSPICIOUS SNIPPETS:

 1995  vagrant up
 ...
    default: /tmp/vagrant-shell: line 101: go: command not found
    default: /tmp/vagrant-shell: line 102: go: command not found


vagrant@bullseye:~$ /git/ipdk/build/networking_ebpf/scripts/host_install.sh
...
[100%] Built target libprotobuf-lite
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libprotobuf-lite.a
CMake Error at cmake_install.cmake:46 (file):
  file INSTALL cannot copy file
  "/home/vagrant/ipdk-ebpf/protobuf/build/libprotobuf-lite.a" to
  "/usr/local/lib/libprotobuf-lite.a": Permission denied.


make: *** [Makefile:105: install] Error 1
+ ldconfig
/git/ipdk/build/networking_ebpf/scripts/host_install.sh: line 53: ldconfig: command not found

...
-- Installing: /usr/local/lib/libnikss.so
CMake Error at cmake_install.cmake:52 (file):
  file INSTALL cannot copy file
  "/home/vagrant/ipdk-ebpf/psabpf/build/libnikss.so" to
  "/usr/local/lib/libnikss.so": Permission denied.
...
/git/ipdk/build/networking_ebpf/scripts/host_install.sh: line 100: /etc/ld.so.conf.d/ipdk.conf: Permission denied
+ echo /root/ipdk-ebpf/psabpf/libbpf/build
/git/ipdk/build/networking_ebpf/scripts/host_instal
...

vagrant@bullseye:/git/ipdk/build$ make start-demo
make: *** No rule to make target 'start-demo'.  Stop.

Detailed transcript: ipdk-ebpf-build.txt

@vsureshkumarp
Copy link
Contributor

vsureshkumarp commented Nov 22, 2022

Looks like there is a permission issue. Can you please try with sudo?
Ex: sudo /git/ipdk/build/networking_ebpf/scripts/host_install.sh

Verified the build procedure vagrant native mentioned here https://github.com/ipdk-io/ipdk/tree/main/build/networking_ebpf
everything went well after adding "sudo". I will update the READEME to add the "sudo /git/ipdk/build/networking_ebpf/scripts/host_install.sh".

@chrispsommers
Copy link
Author

Thanks, I confirmed sudo solves it.

@chrispsommers
Copy link
Author

Hi @vsureshkumarp, is there a workaround for remaining problems? I tried the following but it didn't help:

vagrant@bullseye:~$ sudo cp -r /root/go .
vagrant@bullseye:~$ make start-demo
make: *** No rule to make target 'start-demo'.  Stop.

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