From c4c70d3a28297584a8c0ef7ab23f66877bba7fd8 Mon Sep 17 00:00:00 2001 From: guxianghong Date: Mon, 1 Feb 2021 09:30:30 +0800 Subject: [PATCH] [arm64] disable snmp's parallel make (#6592) snmpd's compile is always failed with file truncated on ARM64 arch, the error log is like "/usr/bin/ld: mibgroup/ip-forward-mib/inetCidrRouteTable/.libs/inetCidrRouteTable_interface.o: file not recognized: file truncated" Co-authored-by: Xianghong Gu --- src/snmpd/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/snmpd/Makefile b/src/snmpd/Makefile index b66af241e5c5..2e0ac828169c 100644 --- a/src/snmpd/Makefile +++ b/src/snmpd/Makefile @@ -29,7 +29,11 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : stg init stg import -s ../patch-$(SNMPD_VERSION)/series +ifeq ($(CONFIGURED_ARCH), arm64) + dpkg-buildpackage -rfakeroot -b -d -us -uc -j1 --admindir $(SONIC_DPKG_ADMINDIR) +else dpkg-buildpackage -rfakeroot -b -d -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR) +endif popd mv $(DERIVED_TARGETS) $* $(DEST)/