Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10948 closed defect (fixed)

zlib build has a race condition

Reported by: gernot.zankl@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: zlib parallel build Cc:


package/zlib/Makefile enables parallel build of the library, but the package Makefile has a implicit dependency between the static and the dynamic library, which sometimes leads to break the package build run. Here a snippet of the make output:

arm-openwrt-linux-gnueabi-ar rc libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o 
arm-openwrt-linux-gnueabi-gcc -shared -Wl,-soname, -O2 -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -g3 -fhonour-copts -fpic -fPIC -D_LARGEFILE64_SOURCE=1 -o adler32.lo compress.lo crc32.lo deflate.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo uncompr.lo zutil.lo  -lc -L. libz.a
arm-openwrt-linux-gnueabi-gcc: libz.a: No such file or directory

A hot fix is to disable parallel build for zlib package:

--- package/zlib/Makefile	(revision 277)
+++ package/zlib/Makefile	(revision 278)
@@ -15,7 +15,12 @@
 PKG_SOURCE_URL:= @SF/libpng
 include $(INCLUDE_DIR)/

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r30420

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.