* bug#43369: Emacs fails to configure on ARM Macs
@ 2020-09-13 7:39 Itai Seggev
2020-09-13 13:41 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Itai Seggev @ 2020-09-13 7:39 UTC (permalink / raw)
To: 43369
Hi.
Out of the box, that is, using master (specifically SHA 18f390af8f11d24c)
./configure fails when building on an ARM Mac. The problem is that the
canonical triple has the form aarch64-apple-darwin20.1.0, but configure.ac is
looking for a triple of the form arm-*.
After changing arm to aarach64, I was able to build successfully both a Cocoa
and X11 versions (the latter pretty minimal, given that toolkits are still
being ported).
Here is the diff for ease of refence:
diff --git a/configure.ac b/configure.ac
index 33948fd776..40b63905ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -724,7 +724,7 @@ AC_DEFUN
*-apple-darwin* )
case "${canonical}" in
*-apple-darwin[0-9].*) unported=yes ;;
- i[3456]86-* | x86_64-* | arm-* ) ;;
+ i[3456]86-* | x86_64-* | aarch64-* ) ;;
* ) unported=yes ;;
esac
opsys=darwin
--
Itai
In 1997 a group of programmers started writing a desktop environment to fix a
travesty they didn't create. Their program promptly found its way onto un*x
systems everywhere. Today, still opposed by a software monopolist, they survive
as soldiers of fortune. If you share their vision, if you know you can help,
and if you can connect to internet, maybe you can join... the K-Team.
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-13 7:39 bug#43369: Emacs fails to configure on ARM Macs Itai Seggev
@ 2020-09-13 13:41 ` Lars Ingebrigtsen
2020-09-13 16:07 ` Alan Third
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-13 13:41 UTC (permalink / raw)
To: Itai Seggev; +Cc: Roland Kaufmann, 43369, Alan Third
Itai Seggev <is+apple@cs.hmc.edu> writes:
> Out of the box, that is, using master (specifically SHA 18f390af8f11d24c)
> ./configure fails when building on an ARM Mac. The problem is that the
> canonical triple has the form aarch64-apple-darwin20.1.0, but configure.ac is
> looking for a triple of the form arm-*.
>
> After changing arm to aarach64, I was able to build successfully both a Cocoa
> and X11 versions (the latter pretty minimal, given that toolkits are still
> being ported).
>
> Here is the diff for ease of refence:
>
> diff --git a/configure.ac b/configure.ac
> index 33948fd776..40b63905ab 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -724,7 +724,7 @@ AC_DEFUN
> *-apple-darwin* )
> case "${canonical}" in
> *-apple-darwin[0-9].*) unported=yes ;;
> - i[3456]86-* | x86_64-* | arm-* ) ;;
> + i[3456]86-* | x86_64-* | aarch64-* ) ;;
The arm-* bit was added recently to Emacs, from a two-year-old patch:
commit 4cba236749aafade7bd88cf2a10be48f44983faa
Author: Roland Kaufmann <rlndkfmn+emacs@gmail.com>
AuthorDate: Thu Dec 27 15:51:49 2018 +0100
Commit: Alan Third <alan@idiocy.org>
CommitDate: Sat Aug 15 17:06:31 2020 +0100
Allow build configuration on Apple ARM devices (bug#41994)
So it sounds like arm-* was in use, and it's now aarch64-*? In which
case adding the latter, instead of altering it, is the right change here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-13 13:41 ` Lars Ingebrigtsen
@ 2020-09-13 16:07 ` Alan Third
2020-09-13 23:29 ` Itai Seggev
2020-09-14 7:28 ` Roland Kaufmann
0 siblings, 2 replies; 8+ messages in thread
From: Alan Third @ 2020-09-13 16:07 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Roland Kaufmann, 43369, Itai Seggev
On Sun, Sep 13, 2020 at 03:41:16PM +0200, Lars Ingebrigtsen wrote:
>
> The arm-* bit was added recently to Emacs, from a two-year-old patch:
>
> commit 4cba236749aafade7bd88cf2a10be48f44983faa
> Author: Roland Kaufmann <rlndkfmn+emacs@gmail.com>
> AuthorDate: Thu Dec 27 15:51:49 2018 +0100
> Commit: Alan Third <alan@idiocy.org>
> CommitDate: Sat Aug 15 17:06:31 2020 +0100
>
> Allow build configuration on Apple ARM devices (bug#41994)
>
> So it sounds like arm-* was in use, and it's now aarch64-*? In which
> case adding the latter, instead of altering it, is the right change here?
I'm unsure. I've googled a bit and found stuff saying that Apple used
to use arm64, but now everyone uses aarch64. I don't know if the
original patch had ever actually been tested on an ARM Mac.
If Roland Kaufmann doesn't respond with a better plan, I suppose we'd
be safest just adding it as you suggest.
--
Alan Third
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-13 16:07 ` Alan Third
@ 2020-09-13 23:29 ` Itai Seggev
2020-09-13 23:41 ` Lars Ingebrigtsen
2020-09-13 23:43 ` Lars Ingebrigtsen
2020-09-14 7:28 ` Roland Kaufmann
1 sibling, 2 replies; 8+ messages in thread
From: Itai Seggev @ 2020-09-13 23:29 UTC (permalink / raw)
To: Alan Third, Lars Ingebrigtsen, Roland Kaufmann, 43369
On Sun, Sep 13, 2020 at 05:07:43PM +0100, Alan Third wrote:
> On Sun, Sep 13, 2020 at 03:41:16PM +0200, Lars Ingebrigtsen wrote:
> >
> > The arm-* bit was added recently to Emacs, from a two-year-old patch:
> >
> > commit 4cba236749aafade7bd88cf2a10be48f44983faa
> > Author: Roland Kaufmann <rlndkfmn+emacs@gmail.com>
> > AuthorDate: Thu Dec 27 15:51:49 2018 +0100
> > Commit: Alan Third <alan@idiocy.org>
> > CommitDate: Sat Aug 15 17:06:31 2020 +0100
> >
> > Allow build configuration on Apple ARM devices (bug#41994)
> >
> > So it sounds like arm-* was in use, and it's now aarch64-*? In which
> > case adding the latter, instead of altering it, is the right change here?
>
> I'm unsure. I've googled a bit and found stuff saying that Apple used
> to use arm64, but now everyone uses aarch64. I don't know if the
> original patch had ever actually been tested on an ARM Mac.
>
> If Roland Kaufmann doesn't respond with a better plan, I suppose we'd
> be safest just adding it as you suggest.
FWIW, uname -m and clang --version both report arm64 (not arm), but it seems
that config.sub normalizes this to aarach64. See commit 5d89a9c2846d32b47.
--
Itai
In 1997 a group of programmers started writing a desktop environment to fix a
travesty they didn't create. Their program promptly found its way onto un*x
systems everywhere. Today, still opposed by a software monopolist, they survive
as soldiers of fortune. If you share their vision, if you know you can help,
and if you can connect to internet, maybe you can join... the K-Team.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-13 23:29 ` Itai Seggev
@ 2020-09-13 23:41 ` Lars Ingebrigtsen
2020-09-13 23:43 ` Lars Ingebrigtsen
1 sibling, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-13 23:41 UTC (permalink / raw)
To: Itai Seggev; +Cc: Roland Kaufmann, Alan Third, 43369
Itai Seggev <is+apple@cs.hmc.edu> writes:
> FWIW, uname -m and clang --version both report arm64 (not arm), but it seems
> that config.sub normalizes this to aarach64. See commit 5d89a9c2846d32b47.
Ah, this was in July of this year:
+ arm64-*)
+ cpu=aarch64
+ ;;
So I think Itai's patch looks correct, and I'm applying it to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-13 23:29 ` Itai Seggev
2020-09-13 23:41 ` Lars Ingebrigtsen
@ 2020-09-13 23:43 ` Lars Ingebrigtsen
1 sibling, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-13 23:43 UTC (permalink / raw)
To: Itai Seggev; +Cc: Roland Kaufmann, Alan Third, 43369
Itai Seggev <is+apple@cs.hmc.edu> writes:
> FWIW, uname -m and clang --version both report arm64 (not arm), but it seems
> that config.sub normalizes this to aarach64. See commit 5d89a9c2846d32b47.
On second thought -- that's just arm-64, though. Does arm-32 still
exist in an Apple context?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-13 16:07 ` Alan Third
2020-09-13 23:29 ` Itai Seggev
@ 2020-09-14 7:28 ` Roland Kaufmann
2020-09-14 10:35 ` Lars Ingebrigtsen
1 sibling, 1 reply; 8+ messages in thread
From: Roland Kaufmann @ 2020-09-14 7:28 UTC (permalink / raw)
To: Alan Third, Lars Ingebrigtsen, Itai Seggev, 43369
On 13. Sep. 2020 at 18:07, Alan Third wrote:
> I'm unsure. I've googled a bit and found stuff saying that Apple used
> to use arm64, but now everyone uses aarch64. I don't know if the
> original patch had ever actually been tested on an ARM Mac.
The original was tested on an earlier architecture. Porque no los
dos? That is:
i[3456]86-* | x86_64-* | arm-* | aarch64-*) ;;
Yours sincerely,
Roland Kaufmann
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43369: Emacs fails to configure on ARM Macs
2020-09-14 7:28 ` Roland Kaufmann
@ 2020-09-14 10:35 ` Lars Ingebrigtsen
0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-14 10:35 UTC (permalink / raw)
To: Roland Kaufmann; +Cc: Alan Third, 43369, Itai Seggev
Roland Kaufmann <rlndkfmn+emacs@gmail.com> writes:
> The original was tested on an earlier architecture. Porque no los dos?
> That is:
>
> i[3456]86-* | x86_64-* | arm-* | aarch64-*) ;;
Yup. I've now made this change on the trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-09-14 10:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-13 7:39 bug#43369: Emacs fails to configure on ARM Macs Itai Seggev
2020-09-13 13:41 ` Lars Ingebrigtsen
2020-09-13 16:07 ` Alan Third
2020-09-13 23:29 ` Itai Seggev
2020-09-13 23:41 ` Lars Ingebrigtsen
2020-09-13 23:43 ` Lars Ingebrigtsen
2020-09-14 7:28 ` Roland Kaufmann
2020-09-14 10:35 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).