Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36436 closed defect (duplicate)

zlib fails to build

Reported by: mcandre (Andrew Pennebaker) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: zlib

Description

I want to install binutils, but its dependency gperf fails.

Trace:

version:1
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/zlib/work
:debug:clean changing euid/egid - current euid: 0 - current egid: 0
:debug:clean egid changed to: 502
:debug:clean euid changed to: 503
:debug:main Executing org.macports.main (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (zlib)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Oct  2 19:55:23 EDT 2012
:notice:build --->  Building zlib
:debug:build Executing org.macports.build (zlib)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7" && /usr/bin/make -j2 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7" && /usr/bin/make -j2 -w all 
:info:build sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7: No such file or directory
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7" && /usr/bin/make -j2 -w all 
:info:build Exit code: 1
:error:build org.macports.build for port zlib returned: command execution failed
:debug:build Error code: CHILDSTATUS 98481 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for zlib: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install zlib
:debug:build could not read "/opt/local/share/man/man3/textdomain.3.gz": no such file or directory
    while executing
"::file type $file"
:notice:build Please see the log file for port zlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log

Specs:

  • MacPorts 2.1.2
  • Xcode 4.5
  • Mac OS X 10.8.2
  • MacBook Pro 2009

Change History (2)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Port: zlib added; gperf removed
Resolution: duplicate
Status: newclosed
Summary: gperf fails to buildzlib fails to build

Duplicate of #29223. "sudo port clean zlib" and then try again. Cleaning and trying again is the first thing you should try anytime any port fails.

comment:2 Changed 12 years ago by mcandre (Andrew Pennebaker)

Could future versions of MacPorts automatically detect when an install fails and attempt to fix itself by cleaning dependencies?

Version 2, edited 12 years ago by mcandre (Andrew Pennebaker) (previous) (next) (diff)
Note: See TracTickets for help on using tickets.