Opened 11 years ago

Closed 11 years ago

#42227 closed defect (invalid)

antlr 2.7.7-1 fails to uncompress on sudo port upgrade outdated

Reported by: iancsf (Ian Scott-Fleming) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port:

Description (last modified by larryv (Lawrence Velázquez))

"sudo port upgrade outdated" fails with "Error: org.macports.extract for port antlr returned: command execution failed". From antlr/main.log, problem appears to be that macports is looking in wrong place for gnutar.

Have just upgraded OS X from 10.6.8 to 10.9 (Mavericks)
XCode 5.0.2
G++ v.4.2.1

from antlr/main.log:

:info:extract sh: /usr/bin/gnutar: No such file or directory

Did sudo port install gnutar, which installed gnutar @1.27.1_0 to /sw/bin/gnutar, not to /usr/bin/gnutar

d25ft0k8dhjv:iscottfl:~ $ which gnutar
/sw/bin/gnutar

have done

sudo port selfupdate
sudo port clean antlr

but still get same error

Following is output of selfupdate, clean and upgrade outdated, and contents of antlr/main.log.

Thanks for your attention to this. Have attempted to find solution in wiki, but not found anything specific to solve the problem.

d25ft0k8dhjv:iscottfl:~ $ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
d25ft0k8dhjv:iscottfl:~ $ sudo port clean antlr
--->  Cleaning antlr
d25ft0k8dhjv:iscottfl:~ $ sudo port upgrade outdated
--->  Fetching archive for antlr
--->  Attempting to fetch antlr-2.7.7_1.darwin_13.x86_64.tbz2 from http://packages.macports.org/antlr
--->  Attempting to fetch antlr-2.7.7_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/antlr
--->  Attempting to fetch antlr-2.7.7_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/antlr
--->  Fetching distfiles for antlr
--->  Verifying checksums for antlr
--->  Extracting antlr
Error: org.macports.extract for port antlr returned: command execution failed
Please see the log file for port antlr for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
d25ft0k8dhjv:iscottfl:~ $ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/main.log
version:1
:debug:main Executing org.macports.main (antlr)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 2041937582
:debug:fetch fetch phase started at Wed Jan 22 14:00:28 CST 2014
:notice:fetch --->  Fetching distfiles for antlr
:debug:fetch Executing org.macports.fetch (antlr)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Wed Jan 22 14:00:28 CST 2014
:notice:checksum --->  Verifying checksums for antlr
:debug:checksum Executing org.macports.checksum (antlr)
:info:checksum --->  Checksumming antlr-2.7.7.tar.gz
:debug:checksum Correct (md5) checksum for antlr-2.7.7.tar.gz
:debug:checksum Correct (sha1) checksum for antlr-2.7.7.tar.gz
:debug:checksum Correct (rmd160) checksum for antlr-2.7.7.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Wed Jan 22 14:00:28 CST 2014
:notice:extract --->  Extracting antlr
:debug:extract Executing org.macports.extract (antlr)
:info:extract --->  Extracting antlr-2.7.7.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/antlr/antlr-2.7.7.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.9'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/antlr/antlr-2.7.7.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/antlr/antlr-2.7.7.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:info:extract sh: /usr/bin/gnutar: No such file or directory
:info:extract gzip: error writing to output: Broken pipe
:info:extract gzip: /opt/local/var/macports/distfiles/antlr/antlr-2.7.7.tar.gz: uncompress failed
:info:extract Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/antlr/antlr-2.7.7.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:info:extract Exit code: 127
:error:extract org.macports.extract for port antlr returned: command execution failed
:debug:extract Error code: NONE
:debug:extract Backtrace: command execution failed
    while executing
"$procedure $targetname"
:info:extract Warning: targets not executed for antlr: org.macports.destroot org.macports.extract org.macports.patch org.macports.configure org.macports.build
:notice:extract Please see the log file for port antlr for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_antlr/antlr/main.log
d25ft0k8dhjv:iscottfl:~ $ 
d25ft0k8dhjv:iscottfl:~ $ 
d25ft0k8dhjv:iscottfl:~ $ /usr/bin/gnutar
-bash: /usr/bin/gnutar: No such file or directory
d25ft0k8dhjv:iscottfl:~ $ /sw/bin/gnutar
/sw/bin/gnutar: You must specify one of the `-Acdtrux' or `--test-label'  options
Try `/sw/bin/gnutar --help' or `/sw/bin/gnutar --usage' for more information.
d25ft0k8dhjv:iscottfl:~ $ 

Attachments (1)

antlr.txt (5.0 KB) - added by iancsf (Ian Scott-Fleming) 11 years ago.
output of sudo port... cmds & cat .../antlr/main.log

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by iancsf (Ian Scott-Fleming)

Attachment: antlr.txt added

output of sudo port... cmds & cat .../antlr/main.log

comment:1 in reply to:  description Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Resolution: invalid
Status: newclosed

Please use WikiFormatting in ticket descriptions.

Replying to ian.scott-fleming@…:

Have just upgraded OS X from 10.6.8 to 10.9 (Mavericks)

You need to follow the migration instructions. MacPorts records the location of the system’s tar on installation; Mavericks no longer has /usr/bin/gnutar, but your MacPorts installation is still trying to use the old executable.

Did sudo port install gnutar, which installed gnutar @1.27.1_0 to /sw/bin/gnutar, not to /usr/bin/gnutar

The log you attached suggests that your MacPorts is installed to /opt/local, so /sw/bin/gnutar is coming from somewhere else. Probably Fink.

Note that we don’t support having Fink installed at the same time as MacPorts, as it can interfere with builds.

Note: See TracTickets for help on using tickets.