[MacPorts] #65552: Failed to extract arm-none-eabi-gcc: command execution failed

MacPorts noreply at macports.org
Fri Jul 29 09:17:28 UTC 2022


#65552: Failed to extract arm-none-eabi-gcc: command execution failed
--------------------------------+----------------------------
  Reporter:  g-h-o-s-t-l-a-b    |      Owner:  judaew
      Type:  defect             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:  tiger, powerpc
      Port:  arm-none-eabi-gcc  |
--------------------------------+----------------------------

Comment (by ryandesign):

 Replying to [comment:4 g-h-o-s-t-l-a-b]:
 > The complete main.log:

 In the future please attach (not paste) logs.

 > {{{
 > :info:extract Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_cross_arm-none-eabi-gcc/arm-none-
 eabi-gcc/work" && /opt/local/bin/xz -dc
 '/opt/local/var/macports/distfiles/gcc12/gcc-12.1.0.tar.xz' |
 /usr/bin/gnutar --no-same-owner -xf -
 > :debug:extract system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_cross_arm-none-eabi-gcc/arm-none-
 eabi-gcc/work" && /opt/local/bin/xz -dc
 '/opt/local/var/macports/distfiles/gcc12/gcc-12.1.0.tar.xz' |
 /usr/bin/gnutar --no-same-owner -xf -
 > }}}

 Ok, this shows gcc being successfully extracted.

 > {{{
 > :debug:extract Executing proc-post-org.macports.extract-extract-1
 > }}}

 This shows us that the next command comes from a custom post-extract block
 used by this port (or a portgroup it includes).

 > {{{
 > :debug:extract system -W
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_cross_arm-none-eabi-gcc/arm-none-
 eabi-gcc/work: tar -xf
 /opt/local/var/macports/distfiles/gcc12/newlib-4.1.0.tar.gz
 > :info:extract tar: This does not look like a tar archive
 > :info:extract tar: Skipping to next header
 > :info:extract tar: Archive contains obsolescent base-64 headers
 > :info:extract tar: Read 1389 bytes from
 /opt/local/var/macports/distfiles/gcc12/newlib-4.1.0.tar.gz
 > :info:extract tar: Error exit delayed from previous errors
 > }}}

 This shows the problem: the port (or portgroup) is trying to run `tar
 -tf`. That's not valid for a compressed tar file on OS X versions prior to
 10.9. In order to support all OS versions, either specify the compression
 method in this command (e.g. for a tar.gz file, specify `tzf` rather than
 `tf`) or use separate decompression and extraction commands like MacPorts
 does for automatic extractions. (See the commands used in the successful
 extraction of gcc above.)

-- 
Ticket URL: <https://trac.macports.org/ticket/65552#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list