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

Unable to build vpp-upf #1

Open
kouamdo opened this issue Sep 24, 2024 · 2 comments
Open

Unable to build vpp-upf #1

kouamdo opened this issue Sep 24, 2024 · 2 comments

Comments

@kouamdo
Copy link

kouamdo commented Sep 24, 2024

Hi , please let me know why i'm facing those issues when i tried to install dependecies and build it.

When i tried to install depedencies i see some git action that asked me to patch file:

For this kind of situation , please i need your support , how to do to avoid it.

Concerning the build process , i have this errors :

root@ubuntu-jammy:/home/vagrant/oai-cn5g-upf-vpp/build/scripts# ./build_vpp_upf -c -V
Clean the build generated files (build from scratch)
CMake build process verbose
Cleaning VPP_UPF: generated configuration files, obj files, executable
make: *** /home/vagrant/oai-cn5g-upf-vpp/vpp: Not a directory.  Stop.
Compilation log for vpp is here: /home/vagrant/oai-cn5g-upf-vpp/build/log/vpp.txt
/home/vagrant/oai-cn5g-upf-vpp/build/scripts/build_helper: line 169: cd: /home/vagrant/oai-cn5g-upf-vpp/vpp/: Not a directory
make: *** No rule to make target 'build-release'.  Stop.
##### VPP not compiled #####
VPP UPG initializing
cp: target '/home/vagrant/oai-cn5g-upf-vpp/vpp' is not a directory
Installing VPP
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/bin/vpp': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/bin/vppctl': Not a directory
Copied binaries to /bin
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/libvppinfra.so.21.01.1': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/libvnet.so.21.01.1': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/libvlibmemory.so.21.01.1': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/libvlib.so.21.01.1': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/libsvm.so.21.01.1': Not a directory
cp: cannot stat '/home/vagrant/oai-cn5g-upf-vpp/vpp/build-root/install-vpp-native/vpp/lib/libnat.so.21.01.1': Not a directory
Copied libraries to /usr/lib/x86_64-linux-gnu/
group vpp not added since it already exists

VPP was already isntalled and it is running

root@ubuntu-jammy:/home/vagrant# systemctl status vpp
● vpp.service - vector packet processing engine
     Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2024-09-24 14:46:31 UTC; 3min 20s ago
    Process: 39019 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, status=0/SUCCESS)
   Main PID: 39020 (vpp_main)
      Tasks: 4 (limit: 4647)
     Memory: 67.8M
        CPU: 1min 19.262s
     CGroup: /system.slice/vpp.service
             └─39020 /usr/bin/vpp -c /etc/vpp/startup.conf

Sep 24 14:46:31 ubuntu-jammy systemd[1]: Starting vector packet processing engine...
Sep 24 14:46:31 ubuntu-jammy systemd[1]: Started vector packet processing engine.
Sep 24 14:46:32 ubuntu-jammy vpp[39020]: unix_config:385: couldn't open log '/var/log/vpp/vpp.log'
Sep 24 14:46:32 ubuntu-jammy vpp[39020]: vpp[39020]: plugin/load: Skipping PCI device 0000:00:03.0 as host interface enp0s3 is up
Sep 24 14:46:32 ubuntu-jammy vpp[39020]: plugin/load: Skipping PCI device 0000:00:03.0 as host interface enp0s3 is up
Sep 24 14:48:40 ubuntu-jammy vpp[39020]: vat-plug/load: vat_plugin_register: idpf plugin not loaded...

Please i need your support to how to fix it or some tips to avoid this messages and build upf-vpp efficiently.

Thank you

@s5uishida
Copy link
Owner

@kouamdo

I don't know the cause.

Alternatively, you may try the following build methods.

https://github.com/s5uishida/install_vpp_upf_dpdk#annex_1

@kouamdo
Copy link
Author

kouamdo commented Sep 25, 2024

Always tried it , but the build process doesnt working at all

root@ubuntu-jammy:~/upg-vpp# make version
ver_tmp=`mktemp version-XXXXXXXX`; \
echo "#ifndef UPG_VERSION" >"${ver_tmp}"; \
echo "#define UPG_VERSION \"v1.13.0-dirty\"" >>"${ver_tmp}"; \
echo "#endif" >>"${ver_tmp}"; \
if ! cmp upf/version.h "${ver_tmp}"; then \
  mv "${ver_tmp}" upf/version.h; \
else \
  rm -f "${ver_tmp}"; \
fi
upf/version.h version-BSHtuF1a differ: byte 49, line 2
root@ubuntu-jammy:~/upg-vpp# ls
CMakeLists.txt  CODEOWNERS  Dockerfile  KNOWN_ISSUES.md  LICENSE  Makefile  README.md  build  changelog-config.json  cmake  hack  test  upf  vpp.spec
root@ubuntu-jammy:~/upg-vpp# mkdir build
mkdir: cannot create directory ‘build’: File exists
root@ubuntu-jammy:~/upg-vpp# cd build/
root@ubuntu-jammy:~/upg-vpp/build# cmake -DVPP_HOME=/usr/local/vpp ..
-- Looking for Hyperscan
-- Found Hyperscan in /usr/include
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Vpp) does
  not match the name of the calling package (VPP).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindVPP.cmake:74 (find_package_handle_standard_args)
  CMakeLists.txt:53 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Vpp (missing: VPP_LIBRARIES)
1.13.0
Build number is: b1
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
VPP_INCLUDE_DIR
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp
   used as include directory in directory /root/upg-vpp

CMake Error in CMakeLists.txt:
  Found relative path while evaluating include directories of "upf_plugin":

    "VPP_INCLUDE_DIR-NOTFOUND"



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

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