Opened 4 years ago

Closed 4 years ago

#62127 closed defect (invalid)

glib2 @2.58.3 extract failure on arm64

Reported by: rshellnet Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc: mascguy (Christopher Nielsen)
Port: xz gettext glib2

Description (last modified by jmroot (Joshua Root))

:info:patch Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.58.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/glib2/files/libintl.patch'
:debug:patch system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.58.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/glib2/files/libintl.patch'
:info:patch can't find file to patch at input line 4

Attachments (1)

main.log (12.4 KB) - added by rshellnet 4 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by rshellnet

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log

comment:1 Changed 4 years ago by mascguy (Christopher Nielsen)

Please assign to maintainer, ryandesign.

comment:2 Changed 4 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: arm64 added; build filed due to missing file in patch command removed
Owner: set to ryandesign
Port: xz gettext added
Status: newassigned
Summary: Error: Failed to patch glib2: command execution failedglib2 @2.58.3 extract failure on arm64

The problem is this:

:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/glib2/glib-2.58.3.tar.xz' | /usr/bin/tar -xf -
:info:extract dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
:info:extract   Referenced from: /opt/local/bin/xz
:info:extract   Reason: no suitable image found.  Did find:
:info:extract   /opt/local/lib/libintl.8.dylib: mach-o, but wrong architecture
:info:extract   /opt/local/lib/libintl.8.dylib: mach-o, but wrong architecture

Did you migrate this MacPorts installation from an older Mac? If so, did you follow the wiki:Migration instructions?

comment:4 Changed 4 years ago by rshellnet

Hi, Didn't migrate, this MacPorts installation is new. Anyway, removed all installed, disabled i386 arch and reinstalled, everything is ok now. You can close the ticket. Thanks, Rouslan

comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

What do you mean by "disabled i386 arch"?

comment:6 Changed 4 years ago by rshellnet

In /opt/local/etc/macports/macports.conf commented build_arch i386

# CPU architecture to target. Supported values are "ppc", "ppc64",
# "i386", and "x86_64". Defaults to:
# - OS X 10.5 and earlier: "ppc" on PowerPC, otherwise "i386".
# - OS X 10.6 and later: "x86_64" on Intel 64, otherwise "i386".
#build_arch             i386
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 4 years ago by rshellnet

Looks like that ports build doesn't detect the right architecture (Apple M1)

comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

MacPorts 2.6.4 detects Apple Silicon systems just fine.

On all systems, build_arch should already have been commented out in macports.conf (it has been that way since the option was added to the conf file in 2009), thus allowing MacPorts to use its built-in defaults. Perhaps you migrated this file from an older computer and had manually uncommented this line in the past.

Note: See TracTickets for help on using tickets.