[MacPorts] #24589: zlib-1.2.5 fails to build
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: zlib | Port: -------------------------------+-------------------------------------------- {{{ moorej-mbp:openvistacis-0 moorej$ sudo port -d install zlib DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Requested variant darwin is not provided by port zlib. DEBUG: Requested variant i386 is not provided by port zlib. DEBUG: Requested variant macosx is not provided by port zlib. ---> Computing dependencies for zlib DEBUG: Executing org.macports.main (zlib) DEBUG: Skipping completed org.macports.fetch (zlib) DEBUG: Skipping completed org.macports.checksum (zlib) DEBUG: setting option extract.cmd to /usr/bin/bzip2 DEBUG: Skipping completed org.macports.extract (zlib) DEBUG: Skipping completed org.macports.patch (zlib) DEBUG: Skipping completed org.macports.configure (zlib) ---> Building zlib DEBUG: Executing org.macports.build (zlib) DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make -j2 all' /usr/bin/gcc-4.2 -O2 -arch x86_64 -o example example.o -L. libz.a /usr/bin/gcc-4.2 -O2 -arch x86_64 -o minigzip minigzip.o -L. libz.a collect2: ld terminated with signal 11 [Segmentation fault] ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x6E695F00 ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x63614265 ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x5F005F74 ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x00636F6C ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x00656572 ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x6574616C ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x00646E45 ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x6574616C ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x6E695F00 make: *** [example] Error 1 make: *** Waiting for unfinished jobs.... collect2: ld terminated with signal 11 [Segmentation fault] ObjectFileAddressSpace::buildRelocatedMap() unexpected relocation at r_address=0x5F7A675F make: *** [minigzip] Error 1 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make -j2 all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make -j2 all " returned error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Warning: the following items did not execute (for zlib): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> moorej-mbp:openvistacis-0 moorej$ }}} -- Ticket URL: <http://trac.macports.org/ticket/24589> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: zlib | Port: -------------------------------+-------------------------------------------- Comment(by gigib82@…): Got the same error with buildmakejobs > 1, compiled ok with buildmakejobs = 1 -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------+-------------------------------------------- Changes (by jmr@…): * cc: mooreja557@… (removed) * cc: ryandesign@… (added) * keywords: zlib => * port: => zlib * owner: macports-tickets@… => landonf@… Comment: Please remember to fill in the Port field and cc the maintainers, and note that you do not need to be in cc when you are the reporter. What version of Xcode are you using? The upgrade went fine for me with 4 build jobs, and parallel build doesn't seem like the sort of thing that would cause a segfault in ld. -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------+-------------------------------------------- Comment(by mooreja557@…): I'm currently running Xcode 3.2.1 (1613). -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------+-------------------------------------------- Comment(by mooreja557@…): Upgraded to 3.2.2 still have the same error. -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Do you have the binutils port installed? If so, deactivate or uninstall it first. -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24589: zlib-1.2.5 fails to build -------------------------------+-------------------------------------------- Reporter: mooreja557@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------+-------------------------------------------- Comment(by cedric.luthi@…): Same problem here. I manually did {{{ cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" sudo make all }}} Notice: make all, without the '''-j2''' option. Then I ran `sudo port -v install zlib` to finish the installation. -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 | --------------------------------+------------------------------------------- Comment(by ryandesign@…): Upstream provided a patch which I applied in r66848. -- Ticket URL: <http://trac.macports.org/ticket/24589#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts