Hi, We are trying to compile VPP v21.06 from stable/2106 branch with MLX5 support. We enabled MLX5 support in vpp by doing below changes : -
vi build/external/packages/dpdk.mk DPDK_MLX5_PMD ?= y DPDK_MLX5_COMMON_PMD ?= y We then executed # make install-dep This executes successfully. But, on executing "make install-ext-deps". We see below error: - [root@localhost vpp]# make install-ext-deps make -C build/external install-rpm make[1]: Entering directory '/opt/vpp/build/external' make[2]: Entering directory '/opt/vpp/build/external' Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.TMHM5j + umask 022 + cd /opt/vpp/build/external/rpm/BUILD + '[' /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 '!=' / ']' + rm -rf /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 ++ dirname /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 + mkdir -p /opt/vpp/build/external/rpm/BUILDROOT + mkdir /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 + make -C ../.. BUILD_DIR=/opt/vpp/build/external/rpm/tmp INSTALL_DIR=/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64 config make[3]: Entering directory '/opt/vpp/build/external' mkdir -p downloads Downloading https://ftp.osuosl.org/pub/blfs/conglomeration/nasm/nasm-2.14.02.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 808k 100 808k 0 0 91258 0 0:00:09 0:00:09 --:--:-- 127k --- validating nasm 2.14.02 checksum --- extracting nasm 2.14.02 --- patching nasm 2.14.02 --- configuring nasm 2.14.02 - log: /opt/vpp/build/external/rpm/tmp/nasm.config.log mkdir -p downloads Downloading http://github.com/01org/intel-ipsec-mb/archive/v1.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 125 100 125 0 0 141 0 --:--:-- --:--:-- --:--:-- 141 100 126 100 126 0 0 100 0 0:00:01 0:00:01 --:--:-- 123k 100 1094k 0 1094k 0 0 416k 0 --:--:-- 0:00:02 --:--:-- 2070k --- validating ipsec-mb 1.0 checksum --- extracting ipsec-mb 1.0 --- patching ipsec-mb 1.0 --- building nasm 2.14.02 - log: /opt/vpp/build/external/rpm/tmp/nasm.build.log Can't open perl script "tools/mkdep.pl": No such file or directory --- installing nasm 2.14.02 - log: /opt/vpp/build/external/rpm/tmp/nasm.install.log Can't open perl script "tools/mkdep.pl": No such file or directory --- configuring ipsec-mb 1.0 - log: /opt/vpp/build/external/rpm/tmp/ipsec-mb.config.log mkdir -p downloads Downloading http://fast.dpdk.org/rel/dpdk-21.02.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1720 100 1720 0 0 2118 0 --:--:-- --:--:-- --:--:-- 2118 --- validating dpdk 21.02 checksum ========================================================== Bad Checksum! Expected: 2c3e4800b04495ad7fa8656a7e1a3ec1 Calculated: 18aa4b211fa5578b201fdc6197bb8ae8 Please remove downloads/dpdk-21.02.tar.xz and retry ========================================================== make[3]: *** [packages/dpdk.mk:203: /opt/vpp/build/external/rpm/tmp/.dpdk.download.ok] Error 1 make[3]: Leaving directory '/opt/vpp/build/external' error: Bad exit status from /var/tmp/rpm-tmp.TMHM5j (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.TMHM5j (%install) make[2]: *** [Makefile:114: vpp-ext-deps-21.06-10.x86_64.rpm] Error 1 make[2]: Leaving directory '/opt/vpp/build/external' make[1]: *** [Makefile:126: install-rpm] Error 2 make[1]: Leaving directory '/opt/vpp/build/external' make: *** [Makefile:596: install-ext-deps] Error 2 We found that dpdk-21.02.tar.xz file in /opt/vpp/build/external/downloads/ is somehow corrupted. We then downloaded this file manually and replaced it at this location. On executing "make install-ext-deps" we now see a different error : - [root@localhost vpp]# make install-ext-deps make -C build/external install-rpm make[1]: Entering directory '/opt/vpp/build/external' make[2]: Entering directory '/opt/vpp/build/external' Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.uu9cu1 + umask 022 + cd /opt/vpp/build/external/rpm/BUILD + '[' /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 '!=' / ']' + rm -rf /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 ++ dirname /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 + mkdir -p /opt/vpp/build/external/rpm/BUILDROOT + mkdir /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 + make -C ../.. BUILD_DIR=/opt/vpp/build/external/rpm/tmp INSTALL_DIR=/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64 config make[3]: Entering directory '/opt/vpp/build/external' --- configuring ipsec-mb 1.0 - log: /opt/vpp/build/external/rpm/tmp/ipsec-mb.config.log --- validating dpdk 21.02 checksum --- extracting dpdk 21.02 --- patching dpdk 21.02 Applying patch: 0001-net-iavf-deprecate-i40evf-pmd.patch patching file doc/guides/nics/intel_vf.rst patching file doc/guides/rel_notes/deprecation.rst patching file drivers/common/iavf/iavf_devids.h patching file drivers/net/i40e/i40e_ethdev_vf.c patching file drivers/net/iavf/iavf_ethdev.c mkdir -p downloads Downloading http://github.com/linux-rdma/rdma-core/releases/download/v35.0/rdma-core-35.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 627 100 627 0 0 254 0 0:00:02 0:00:02 --:--:-- 289 100 1633k 100 1633k 0 0 415k 0 0:00:03 0:00:03 --:--:-- 2659k --- validating rdma-core 35.0 checksum --- extracting rdma-core 35.0 --- patching rdma-core 35.0 --- configuring rdma-core 35.0 - log: /opt/vpp/build/external/rpm/tmp/rdma-core.config.log cd /opt/vpp/build/external/rpm/tmp/build-rdma-core && cmake3 -G Ninja /opt/vpp/build/external/rpm/tmp/src-rdma-core -DENABLE_STATIC=1 -DENABLE_RESOLVE_NEIGH=0 -DNO_PYVERBS=1 -DENABLE_VALGRIND=0 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_C_FLAGS='-fPIC -fvisibility=hidden' > /opt/vpp/build/external/rpm/tmp/rdma-core.config.log --- building rdma-core 35.0 - log: /opt/vpp/build/external/rpm/tmp/rdma-core.build.log cmake3 --build /opt/vpp/build/external/rpm/tmp/build-rdma-core -- libccan.a libibverbs.a librdma_util.a libmlx5.a libmlx4.a > /opt/vpp/build/external/rpm/tmp/rdma-core.build.log sed 's/^Libs.private:.*/Libs.private: -lmlx4 -lmlx5 -libverbs -lrdma_util -lccan -lpthread/' -i /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/pkgconfig/libibverbs.pc >> /opt/vpp/build/external/rpm/tmp/rdma-core.build.log --- installing rdma-core 35.0 - log: /opt/vpp/build/external/rpm/tmp/rdma-core.install.log mkdir -p /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64/lib/pkgconfig cp -av /opt/vpp/build/external/rpm/tmp/build-rdma-core/include /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64 > /opt/vpp/build/external/rpm/tmp/rdma-core.install.log cp -v /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/pkgconfig/libibverbs.pc /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/pkgconfig/libmlx5.pc /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/pkgconfig/libmlx4.pc /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64/lib/pkgconfig >> /opt/vpp/build/external/rpm/tmp/rdma-core.install.log cp -v /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/statics/libibverbs.a /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/statics/libmlx5.a /opt/vpp/build/external/rpm/tmp/build-rdma-core/lib/statics/libmlx4.a /opt/vpp/build/external/rpm/tmp/build-rdma-core/util/librdma_util.a /opt/vpp/build/external/rpm/tmp/build-rdma-core/ccan/libccan.a /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64/lib >> /opt/vpp/build/external/rpm/tmp/rdma-core.install.log --- building ipsec-mb 1.0 - log: /opt/vpp/build/external/rpm/tmp/ipsec-mb.build.log /bin/sh: /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64/bin/nasm: No such file or directory Makefile:60: *** "NASM is not installed! Minimum required version: 2.14". Stop. make[3]: *** [packages/ipsec-mb.mk:48: /opt/vpp/build/external/rpm/tmp/.ipsec-mb.build.ok] Error 2 make[3]: Leaving directory '/opt/vpp/build/external' error: Bad exit status from /var/tmp/rpm-tmp.uu9cu1 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.uu9cu1 (%install) make[2]: *** [Makefile:114: vpp-ext-deps-21.06-10.x86_64.rpm] Error 1 make[2]: Leaving directory '/opt/vpp/build/external' make[1]: *** [Makefile:126: install-rpm] Error 2 make[1]: Leaving directory '/opt/vpp/build/external' make: *** [Makefile:596: install-ext-deps] Error 2 This time it is not able to install NASM. We found nasm-2.14.02.tar.xz at the location /opt/vpp/build/external/downloads/. We tried and installing NASM manually using below steps : - # tar -xf nasm-2.14.02.tar.xz # cd nasm-2.14.02 # ./configure # make # make install We see below output on command : - # nasm -v NASM version 2.14.02 compiled on Jun 30 2021 On executing "make install-ext-deps" again, we are still facing NASM not installed issue. [root@localhost vpp]# make install-ext-deps make -C build/external install-rpm make[1]: Entering directory '/opt/vpp/build/external' make[2]: Entering directory '/opt/vpp/build/external' Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sAuRnQ + umask 022 + cd /opt/vpp/build/external/rpm/BUILD + '[' /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 '!=' / ']' + rm -rf /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 ++ dirname /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 + mkdir -p /opt/vpp/build/external/rpm/BUILDROOT + mkdir /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64 + make -C ../.. BUILD_DIR=/opt/vpp/build/external/rpm/tmp INSTALL_DIR=/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64 config make[3]: Entering directory '/opt/vpp/build/external' --- configuring ipsec-mb 1.0 - log: /opt/vpp/build/external/rpm/tmp/ipsec-mb.config.log --- building ipsec-mb 1.0 - log: /opt/vpp/build/external/rpm/tmp/ipsec-mb.build.log /bin/sh: /opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-10.x86_64/opt/vpp/external/x86_64/bin/nasm: No such file or directory Makefile:60: *** "NASM is not installed! Minimum required version: 2.14". Stop. make[3]: *** [packages/ipsec-mb.mk:48: /opt/vpp/build/external/rpm/tmp/.ipsec-mb.build.ok] Error 2 make[3]: Leaving directory '/opt/vpp/build/external' error: Bad exit status from /var/tmp/rpm-tmp.sAuRnQ (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.sAuRnQ (%install) make[2]: *** [Makefile:114: vpp-ext-deps-21.06-10.x86_64.rpm] Error 1 make[2]: Leaving directory '/opt/vpp/build/external' make[1]: *** [Makefile:126: install-rpm] Error 2 make[1]: Leaving directory '/opt/vpp/build/external' make: *** [Makefile:596: install-ext-deps] Error 2 Thanks and Regards, Chinmaya Agarwal.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19655): https://lists.fd.io/g/vpp-dev/message/19655 Mute This Topic: https://lists.fd.io/mt/83890737/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-