unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 23.4 arm64 build
@ 2020-05-17 11:32 Philippe Vaucher
  2020-05-17 17:00 ` Paul Eggert
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Vaucher @ 2020-05-17 11:32 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 1953 bytes --]

Hello,

I need help/guidance regarding Emacs 23.4 builds on arm64.

When I try to build it it says:

checking build system type... /opt/emacs/config.guess: unable to guess
system type
This script, last modified 2009-09-18, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (/opt/emacs/config.guess) is already up to date,
please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2009-09-18
uname -m = aarch64
uname -r = 4.15.0-72-generic
uname -s = Linux
uname -v = #81-Ubuntu SMP Tue Nov 26 12:21:09 UTC 2019
/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              =
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.15.0-72-generic
UNAME_SYSTEM  = Linux
UNAME_VERSION = #81-Ubuntu SMP Tue Nov 26 12:21:09 UTC 2019
configure: error: cannot guess build type; you must specify one

Internet says I should try to get a newer version of config.guess and
config.sub but my attempt failed, I simply tried to copy-paste the one from
`24.1`.

My question is fairly simple: is this a dead end? Should I just give up on
arm64 Emacs 23.4 images? If you say it'd work with a bit of fighting I'll
try harder tho.

I ask because in order for it to build, I have to install texinfo 4.13
manually (Emacs 23.4 does not build with texinfo 5+) and of course texinfo
suffers from the same arm64 problem, so I'd need to figure configure for
both of them, or patch 23.4 to work with texinfo 5.

Thanks,
Philippe

[-- Attachment #2: Type: text/html, Size: 2545 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs 23.4 arm64 build
  2020-05-17 11:32 Emacs 23.4 arm64 build Philippe Vaucher
@ 2020-05-17 17:00 ` Paul Eggert
  2020-05-17 17:17   ` Philippe Vaucher
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggert @ 2020-05-17 17:00 UTC (permalink / raw)
  To: Philippe Vaucher; +Cc: Emacs developers

On 5/17/20 4:32 AM, Philippe Vaucher wrote:
> My question is fairly simple: is this a dead end? Should I just give up on
> arm64 Emacs 23.4 images? If you say it'd work with a bit of fighting I'll
> try harder tho.

Undoubted you could get it to work eventually, but my advice is to go with a
later Emacs version that builds without pain.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs 23.4 arm64 build
  2020-05-17 17:00 ` Paul Eggert
@ 2020-05-17 17:17   ` Philippe Vaucher
  2020-05-17 18:33     ` andres.ramirez
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Vaucher @ 2020-05-17 17:17 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

On Sun, May 17, 2020 at 7:00 PM Paul Eggert <eggert@cs.ucla.edu> wrote:

> On 5/17/20 4:32 AM, Philippe Vaucher wrote:
> > My question is fairly simple: is this a dead end? Should I just give up
> on
> > arm64 Emacs 23.4 images? If you say it'd work with a bit of fighting I'll
> > try harder tho.
>
> Undoubted you could get it to work eventually, but my advice is to go with
> a
> later Emacs version that builds without pain.
>

Thanks. I forgot to say this is related to
https://hub.docker.com/r/silex/emacs, so I'm building old images
intentionnaly for others to use in CI testing. That's why I'm trying to get
23.4 to build on arm64.

So far 23.4, 25.2-alpine and 25.3-alpine are the only images not building
on arm64.

It looks like 23.4 does not build on i386 but this I should be able to sort
it out.

Philippe

[-- Attachment #2: Type: text/html, Size: 1316 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs 23.4 arm64 build
  2020-05-17 17:17   ` Philippe Vaucher
@ 2020-05-17 18:33     ` andres.ramirez
  2020-05-17 19:43       ` Philippe Vaucher
  0 siblings, 1 reply; 5+ messages in thread
From: andres.ramirez @ 2020-05-17 18:33 UTC (permalink / raw)
  To: Philippe Vaucher; +Cc: Paul Eggert, Emacs developers

Hi Philippe.

>>>>> "Philippe" == Philippe Vaucher <philippe.vaucher@gmail.com> writes:

    Philippe>     On 5/17/20 4:32 AM, Philippe Vaucher wrote:
    >> My question is fairly simple: is this a dead end? Should I just
    >> give up on arm64 Emacs 23.4 images? If you say it'd work with a
    >> bit of fighting I'll try harder tho.
   
    Paul>     Undoubted you could get it to work eventually, but
    Paul> my advice is to go with a later Emacs version that
    Paul> builds without pain.

    Philippe> Thanks. I forgot to say this is related
    Philippe> to https://hub.docker.com/r/silex/emacs, so I'm building
    Philippe> old images intentionnaly for others to use in CI
    Philippe> testing. That's why I'm trying to get 23.4 to build on
    Philippe> arm64.

    Philippe> So far 23.4, 25.2-alpine and 25.3-alpine are the only
    Philippe> images not building on arm64.

--8<---------------cut here---------------start------------->8---
uname -a
Linux sacsa 5.6.7-1-ARCH #1 SMP PREEMPT Fri Apr 24 16:11:00 UTC 2020 armv7l GNU/Linux
~ $ pacman -Qi emacs23
Name            : emacs23
Version         : 23.4-1
Description     : The extensible, customizable, self-documenting real-time display editor; coexist with emacs, patches
                  from gentoo ebuild see my.orgs
Architecture    : armv7h
URL             : http://www.gnu.org/software/emacs/emacs.html
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : hicolor-icon-theme  desktop-file-utils  alsa-lib  imagemagick
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 90.08 MiB
Packager        : Unknown Packager
Build Date      : Tue 07 Jan 2020 07:02:06 PM UTC
Install Date    : Tue 07 Jan 2020 07:42:33 PM UTC
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None
--8<---------------cut here---------------end--------------->8---

    Philippe> It looks like 23.4 does not build on i386 but this I
    Philippe> should be able to sort it out.

I have compiled on i686 a month ago with the gentoo patches without
issue. But perhaps your issue could be 'nokaslr' (kernel aslr)

Also my emacs23 compilation or arm (32 bits) was with 'CANNOT_DUMP=yes'
and It is without any x-toolkit. for CI this is not going to work. You
need a clean compilation same as in i686.

I think for complete compilation(with an x-toolkit) a couple of changes on source code
would be needed:

1. Fix 'strings' the error was something similar to:
--8<---------------cut here---------------start------------->8---
Finding pointers to doc strings...
--8<---------------cut here---------------end--------------->8---
Emacs compilation halted at that point. I think above is related to 'address randomization'.

2. probably a patch for using the system malloc.
The error was an infinite loop

Best



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs 23.4 arm64 build
  2020-05-17 18:33     ` andres.ramirez
@ 2020-05-17 19:43       ` Philippe Vaucher
  0 siblings, 0 replies; 5+ messages in thread
From: Philippe Vaucher @ 2020-05-17 19:43 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Paul Eggert, Emacs developers

> uname -a
> Linux sacsa 5.6.7-1-ARCH #1 SMP PREEMPT Fri Apr 24 16:11:00 UTC 2020 armv7l GNU/Linux
> ~ $ pacman -Qi emacs23

Ah good idea, I'll look what gentoo does.

>     Philippe> It looks like 23.4 does not build on i386 but this I
>     Philippe> should be able to sort it out.
>
> I have compiled on i686 a month ago with the gentoo patches without
> issue. But perhaps your issue could be 'nokaslr' (kernel aslr)

I have found out that `uname -m` in i386 containers returns x86_64. If
I do `linux32 ./configure (..flags..)` then everything builds alright
for i386.

> Also my emacs23 compilation or arm (32 bits) was with 'CANNOT_DUMP=yes'
> and It is without any x-toolkit. for CI this is not going to work. You
> need a clean compilation same as in i686.

Yeah you just need to disable ASLR when building, and for old images
without X toolkit is ok. People are already happy with the amd64
image, I'm just trying to build the same dockerfile to arm64
(https://github.com/Silex/docker-emacs/blob/master/23.4/ubuntu/14.04/bootstrap/dev/Dockerfile).

I'll try your suggestions and report.

Thanks,
Philippe



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-17 19:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-17 11:32 Emacs 23.4 arm64 build Philippe Vaucher
2020-05-17 17:00 ` Paul Eggert
2020-05-17 17:17   ` Philippe Vaucher
2020-05-17 18:33     ` andres.ramirez
2020-05-17 19:43       ` Philippe Vaucher

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).