#24589: zlib 1.2.5 parallel build sometimes fails with an ld error --------------------------------+------------------------------------------- Reporter: mooreja557@… | Owner: landonf@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: zlib | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: I tested building zlib with buildmakejobs=2 several times. Usually it succeeded, but sometimes it didn't. I did not see the specific error reported above, but I did see these failures which look similar: {{{ 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 /usr/bin/gcc-4.2 -dynamiclib -install_name /opt/local/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.5 -O2 -arch x86_64 -fPIC -o libz.1.2.5.dylib 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/opt/local/lib -arch x86_64 -L. libz.a ld: in libz.a, file too small collect2: ld returned 1 exit status make: *** [libz.1.2.5.dylib] Error 1 make: *** Waiting for unfinished jobs.... }}} {{{ 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 /usr/bin/gcc-4.2 -dynamiclib -install_name /opt/local/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.5 -O2 -arch x86_64 -fPIC -o libz.1.2.5.dylib 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/opt/local/lib -arch x86_64 -L. libz.a /usr/bin/gcc-4.2 -O2 -arch x86_64 -o example example.o -L. libz.a collect2: ld terminated with signal 10 [Bus error] make: *** [libz.1.2.5.dylib] Error 1 make: *** Waiting for unfinished jobs.... }}} I disabled the parallel build in r66834 and reported the problem to the developers of zlib. -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS