Skip to content

Commit

Permalink
[arm64] disable snmp's parallel make (#6592)
Browse files Browse the repository at this point in the history
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 <xgu@centecnetworks.com>
  • Loading branch information
guxianghong and Xianghong Gu authored Feb 1, 2021
1 parent 7928fbf commit 4421a68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/snmpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)/
Expand Down

0 comments on commit 4421a68

Please sign in to comment.