Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61594 closed defect (fixed)

emacs 27.1_2: configure failed on M1

Reported by: shibukawa (Yoshiki Shibukawa) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc: stumpjumper (Alfred Lorber), tglsfdc (Tom Lane)
Port: emacs

Description

Error: Failed to configure emacs: configure failure: command execution failed

Error logs says

error: Emacs does not support 'arm-apple-darwin20.1.0' systems.

Attachments (2)

config.log (26.4 KB) - added by shibukawa (Yoshiki Shibukawa) 3 years ago.
emacs-arm.diff (778 bytes) - added by tglsfdc (Tom Lane) 3 years ago.
emacs-arm.diff

Download all attachments as: .zip

Change History (18)

Changed 3 years ago by shibukawa (Yoshiki Shibukawa)

Attachment: config.log added

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

Owner: set to drkp
Status: newassigned

comment:2 Changed 3 years ago by stumpjumper (Alfred Lorber)

Cc: stumpjumper added

comment:3 Changed 3 years ago by stumpjumper (Alfred Lorber)

Cc: stumpjumper removed

comment:4 Changed 3 years ago by stumpjumper (Alfred Lorber)

Cc: stumpjumper added

comment:5 Changed 3 years ago by mf2k (Frank Schima)

Keywords: arm64 added

Changed 3 years ago by tglsfdc (Tom Lane)

Attachment: emacs-arm.diff added

emacs-arm.diff

comment:6 Changed 3 years ago by tglsfdc (Tom Lane)

It appears that this might not be any more complicated than whacking the configure script upside the head, as attached.

I see a number of compile warnings during build, and "make check" shows a few failures, but that may well be true in a Darwin x86 build too; I've not checked that with any late-model emacs.

comment:7 Changed 3 years ago by tglsfdc (Tom Lane)

comment:8 Changed 3 years ago by tglsfdc (Tom Lane)

Cc: tglsfdc added

comment:9 Changed 3 years ago by drkp (Dan Ports)

Status: assignedaccepted

Perfect, let's apply that...

comment:10 Changed 3 years ago by drkp (Dan Ports)

Resolution: fixed
Status: acceptedclosed

In 9501be070077a99ce0f84afe56d1fac59cd72ba1/macports-ports (master):

emacs: apply upstream patch to fix build on arm

Closes: #61594

comment:11 Changed 3 years ago by drkp (Dan Ports)

Can someone with a M1 machine (I don't have one) confirm this fix works?

comment:12 Changed 3 years ago by tglsfdc (Tom Lane)

... nope, does not work. The configure.ac file gets updated as expected, but AFAICT the configure script is not modified.

comment:13 Changed 3 years ago by drkp (Dan Ports)

Oops, my mistake, I thought we were already running autoreconf.

comment:14 Changed 3 years ago by drkp (Dan Ports)

In 17c6d564db5718061e769cc2b005868cb492c621/macports-ports (master):

emacs: run autoreconf to actually use previous patch

#61594

comment:15 Changed 3 years ago by tglsfdc (Tom Lane)

OK, the _4 update builds for me, and cursory testing of the result succeeds. Thanks!

comment:16 Changed 3 years ago by shibukawa (Yoshiki Shibukawa)

Thank you. I confirmed it works.

Note: See TracTickets for help on using tickets.