http://bugzilla.opensuse.org/show_bug.cgi?id=1110294
Bug ID: 1110294
Summary: vpp-18.07.1 build -j1 fails
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: Other
OS: openSUSE Factory
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
Assignee: marco.varlese@suse.com
Reporter: bwiedemann@suse.com
QA Contact: qa-bugs@suse.de
CC: nirmoy.das@suse.com
Found By: Development
Blocker: ---
While working on reproducible builds for openSUSE, I found that
Factory vpp does not build with -j1
Steps To Reproduce:
osc co openSUSE:Factory/vpp && cd $_
osc build --no-service -j1
Actual Results:
Build fails with
CC vnet/bier/bier_disp_table.lo
CC vnet/bier/bier_bift_table.lo
CCLD libvnet.la
libtool: error: cannot find the library 'libvnet_avx2.la' or unhandled
argument 'libvnet_avx2.la'
make[4]: *** [Makefile:6349: libvnet.la] Error 1
make[4]: Leaving directory
'/home/abuild/rpmbuild/BUILD/vpp-18.07.1/build-root/build-vpp-native/vpp'
This error goes away with
Index: vpp-18.07.1/src/vnet.am
===================================================================
--- vpp-18.07.1.orig/src/vnet.am
+++ vpp-18.07.1/src/vnet.am
@@ -1295,6 +1295,7 @@ libvnet_avx2_la_CFLAGS = \
-DCLIB_MARCH_VARIANT=avx2
noinst_LTLIBRARIES += libvnet_avx2.la
libvnet_la_LIBADD += libvnet_avx2.la
+libvnet_la_DEPENDENCIES += libvnet_avx2.la
endif
if CC_SUPPORTS_AVX512
@@ -1307,6 +1308,7 @@ libvnet_avx512_la_CFLAGS = \
-DCLIB_MARCH_VARIANT=avx512
noinst_LTLIBRARIES += libvnet_avx512.la
libvnet_la_LIBADD += libvnet_avx512.la
+libvnet_la_DEPENDENCIES += libvnet_avx512.la
endif
endif
but then a different, related error pops up
about double-defined symbols from avx512
vnet.am seems to be dropped from vpp in
commit 855e26868ff8b9e6d00ca4d69ce6c9fdc0f2e121
Author: Damjan Marion