Hi,

I am receiving the following error when compiling on fedora 32:

compiling using:
make install-dep
make install-ext-deps
make build
make pkg-rpm

/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_aesni_mb.a(rte_aesni_mb_pmd_ops.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/aesni_mb/aesni_mb_pmd_private.h:22:
multiple definition of `aesni_mb_logtype_driver';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_aesni_mb.a(rte_aesni_mb_pmd.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/aesni_mb/aesni_mb_pmd_private.h:22:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_aesni_gcm.a(aesni_gcm_pmd_ops.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h:23:
multiple definition of `aesni_gcm_logtype_driver';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_aesni_gcm.a(aesni_gcm_pmd.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h:23:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev_hw_access.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev_ops.h:19:
multiple definition of `otx2_cpt_ops';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev_ops.h:19:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev_hw_access.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev.h:41:
multiple definition of `otx2_cryptodev_driver_id';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev.h:41:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev_mbox.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev.h:41:
multiple definition of `otx2_cryptodev_driver_id';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev.h:41:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev_ops.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev.h:41:
multiple definition of `otx2_cryptodev_driver_id';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev.h:41:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev_ops.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev_ops.h:19:
multiple definition of `otx2_cpt_ops';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_octeontx2_crypto.a(otx2_cryptodev.o):/root/vpp/build/external/rpm/tmp/dpdk-20.02/drivers/crypto/octeontx2/otx2_cryptodev_ops.h:19:
first defined here
/usr/bin/ld:
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_caam_jr.a(caam_jr.o):(.bss+0x0):
multiple definition of `rta_sec_era';
/root/vpp/build/external/rpm/tmp/dpdk-20.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_dpaa2_sec.a(dpaa2_sec_dpseci.o):(.data+0x0):
first defined here
collect2: error: ld returned 1 exit status
make[9]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/rte.app.mk:446:
dpdk-pdump] Error 1
make[8]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.subdir.mk:37: pdump] Error 2
make[8]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[9]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/rte.app.mk:446:
dpdk-procinfo] Error 1
make[8]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.subdir.mk:37: proc-info] Error 2
collect2: error: ld returned 1 exit status
make[9]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/rte.app.mk:446:
cmdline_test] Error 1
make[8]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.subdir.mk:37: test-cmdline] Error 2
collect2: error: ld returned 1 exit status
make[9]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/rte.app.mk:446:
test] Error 1
make[8]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.subdir.mk:37: test] Error 2
make[7]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.sdkbuild.mk:48: app] Error 2
make[6]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.sdkroot.mk:99: all] Error 2
make[5]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.sdkinstall.mk:61: pre_install] Error 2
make[4]: *** [/root/vpp/build/external/rpm/tmp/dpdk-20.02/mk/
rte.sdkroot.mk:77: install] Error 2
make[4]: Leaving directory '/root/vpp/build/external/rpm/tmp/dpdk-20.02'
make[3]: *** [packages/dpdk.mk:294:
/root/vpp/build/external/rpm/tmp/.dpdk-build.ok] Error 2
make[3]: Leaving directory '/root/vpp/build/external'
error: Bad exit status from /var/tmp/rpm-tmp.sQxWFQ (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.sQxWFQ (%install)
make[2]: *** [Makefile:111: vpp-ext-deps-20.05-0.x86_64.rpm] Error 1
make[2]: Leaving directory '/root/vpp/build/external'
make[1]: *** [Makefile:123: install-rpm] Error 2
make[1]: Leaving directory '/root/vpp/build/external'
make: *** [Makefile:633: install-ext-deps] Error 2
Please install missing RPMs: \npackage redhat-lsb is not installedpackage
apr-devel is not installedpackage boost is not installedpackage boost-devel
is not installedpackage selinux-policy-devel is not installedpackage
libuuid-devel is not installedpackage dnf-utils is not installedpackage
compat-openssl10-devel is not installedpackage python3-ply is not
installedpackage python3-virtualenv is not installedpackage
python3-jsonschema is not installedpackage libffi-devel is not installed\n
by executing "make install-dep"\n
make: *** [Makefile:284: /root/vpp/build-root/.deps.ok] Error 1
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
/root/vpp/build-root/vpp-20.05.1-release.tar (1/1)
  100 %         17.3 MiB / 48.3 MiB = 0.358   3.7 MiB/s       0:12
make -C extras/rpm
make[1]: Entering directory '/root/vpp/extras/rpm'
/root/vpp/build-root/vpp-20.05.1-release.tar.xz
mkdir -p /root/vpp/build-root/rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS}
cp /root/vpp/build-root/vpp-20.05.1-release.tar.xz
/root/vpp/build-root/rpmbuild/SOURCES/vpp-20.05.1-release.tar.xz
cp 'vpp.spec' /root/vpp/build-root/rpmbuild/SPECS
rpmbuild -bb \
  --define "_topdir /root/vpp/build-root/rpmbuild" \
  --define "_version 20.05.1" \
  --define "_release release" \
  /root/vpp/build-root/rpmbuild/SPECS/'vpp.spec'
error: parse error in expression:  0%{rhel} < 8
error:                              ^
error: /root/vpp/build-root/rpmbuild/SPECS/vpp.spec:162: bad %if condition:
 0%{rhel} < 8
make[1]: *** [Makefile:57: RPM] Error 1
make[1]: Leaving directory '/root/vpp/extras/rpm'
make: *** [Makefile:620: pkg-rpm] Error 2

any advice?

Thanks!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16786): https://lists.fd.io/g/vpp-dev/message/16786
Mute This Topic: https://lists.fd.io/mt/75056324/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to