Opened 11 years ago

Closed 11 years ago

#40574 closed defect (duplicate)

ld64 @136 upgrade failure

Reported by: karel@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: ld64

Description

When run as root, port upgrade ld64 fails. Port clean doesn't help and AFAIK the directory settings are OK, other upgrades succeed without a problem.

--->  Computing dependencies for ld64
--->  Extracting ld64
Error: org.macports.extract for port ld64 returned: command execution failed
Please see the log file for port ld64 for details:
    /opt/local/var/macports/logs/_Volumes_HD_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

The log is attached. This is somehow due to incorrect directory settings; tar extraction barfs. Abbreviated output when -d flag is given follows:

DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: Skipping completed org.macports.archivefetch (ld64)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.fetch (ld64)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.checksum (ld64)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: extract phase started at Tue Sep 24 17:28:20 CEST 2013
--->  Extracting ld64
DEBUG: Executing org.macports.extract (ld64)
--->  Extracting ld64-136.tar.gz
DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles/ld64/ld64-136.tar.gz'
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Volumes_HD_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Volumes_HD_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ld64/ld64-136.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_Volumes_HD_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ld64/ld64-136.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
/usr/bin/gnutar: ld64-136: Cannot mkdir: Operation not permitted
/usr/bin/gnutar: ld64-136/APPLE_LICENSE: Cannot open: No such file or directory
/usr/bin/gnutar: ld64-136/doc: Cannot mkdir: No such file or directory
/usr/bin/gnutar: ld64-136/doc/design: Cannot mkdir: No such file or directory
/usr/bin/gnutar: ld64-136/doc/design/linker.html: Cannot open: No such file or directory
.
.
.
usr/bin/gnutar: ld64-136/src/other/machochecker.cpp: Cannot open: No such file or directory
/usr/bin/gnutar: ld64-136/src/abstraction: Cannot mkdir: No such file or directory
/usr/bin/gnutar: ld64-136/src/abstraction/MachOTrie.hpp: Cannot open: No such file or directory
/usr/bin/gnutar: ld64-136/src/abstraction/FileAbstraction.hpp: Cannot open: No such file or directory
/usr/bin/gnutar: ld64-136/src/abstraction/MachOFileAbstraction.hpp: Cannot open: No such file or directory
/usr/bin/gnutar: Error exit delayed from previous errors
Command failed:  cd "/opt/local/var/macports/build/_Volumes_HD_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ld64/ld64-136.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
Exit code: 2
Error: org.macports.extract for port ld64 returned: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: command execution failed
    while executing
"$procedure $targetname"
Warning: targets not executed for ld64: org.macports.install org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot
Please see the log file for port ld64 for details:
    /opt/local/var/macports/logs/_Volumes_HD_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/main.log
DEBUG: couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Attachments (1)

main.log (178.9 KB) - added by karel@… 11 years ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by karel@…

Attachment: main.log added

main.log

comment:1 in reply to:  description Changed 11 years ago by karel@…

Replying to karel@…:

Addendum. This appears to happen with other ports as well, for example php55, but not with php5. I don't recall changing anything lately, so.. puzzled..

comment:2 Changed 11 years ago by karel@…

After some messing around I found it was caused by the fact that my /opt/ directory is a symlink onto a different filesystem (in order to distribute files). Still, weird that some packages will install and others won't. So far I "fixed" it by adding

sandbox_enable

to /opt/local/etc/macports/macports.conf. I am not sure that this is the right way to proceed.. info appreciated.

comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)

Keywords: tar ld64 removed
Resolution: duplicate
Status: newclosed

Duplicate of #39850.

Note: See TracTickets for help on using tickets.