unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* native-comp branch on Raspberry Pi 4
@ 2020-04-16 16:17 Frank Haun
  2020-04-16 17:06 ` Gong-Yi Liao 廖宮毅
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Haun @ 2020-04-16 16:17 UTC (permalink / raw)
  To: emacs-devel

Hello,

I'm not sure, should this branch compile on ARM Devices?

I've tried Raspbian 32bit and Ubuntu Core 64bit.

All necessary libs are installed.

| $ git status
| On branch feature/native-comp
| Your branch is up to date with 'origin/feature/native-comp'.

| $ ./autogen.sh
| $ ./configure --without-imagemagick --with-x-toolkit=lucid --with-pop --with-jpeg=no --with-gif=no --with-tiff=no --without-makeinfo
| $ make

First everything does fine, but then I get this:

| ...
| Loading /home/ubuntu/CVS/emacs/lisp/tooltip.el (source)...
| Finding pointers to doc strings...
| Finding pointers to doc strings...done
| Dumping under the name bootstrap-emacs.pdmp
| dumping fingerprint: 9be4874d483d5c67b257e1d30440bebceb4673d531a3b39f69150175f6101e76
| Dump complete
| Byte counts: header=96 hot=14987776 discardable=122208 cold=9776976
| Reloc counts: hot=1010305 discardable=6007
| make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
| make[2]: Entering directory '/home/ubuntu/CVS/emacs/lisp'
|   ELC      emacs-lisp/macroexp.elc
| /bin/bash: line 1: 24525 Segmentation fault      (core dumped) EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
| make[2]: *** [Makefile:316: emacs-lisp/macroexp.elc] Error 139
| make[2]: Leaving directory '/home/ubuntu/CVS/emacs/lisp'
| make[1]: *** [Makefile:828: bootstrap-emacs.pdmp] Error 2
| make[1]: Leaving directory '/home/ubuntu/CVS/emacs/src'
| make: *** [Makefile:424: src] Error 2

Frank
-- 
Linux ubuntu 5.3.0-1022 aarch64 GNU/Linux
Experimental Blog: <http://fhaun.de>




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

* Re: native-comp branch on Raspberry Pi 4
  2020-04-16 16:17 native-comp branch on Raspberry Pi 4 Frank Haun
@ 2020-04-16 17:06 ` Gong-Yi Liao 廖宮毅
  2020-04-16 17:18   ` Andrea Corallo
  0 siblings, 1 reply; 5+ messages in thread
From: Gong-Yi Liao 廖宮毅 @ 2020-04-16 17:06 UTC (permalink / raw)
  To: Frank Haun; +Cc: emacs-devel

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

I got exactly the same error with gcc 8/9/10  on a raspberry pi 4 running
Debian buster/Sid and fedora 31/rawhide in podman container.

It seems in gccjit issue as the hello world example on gccjit doc web site
does not compile on raspberry pi 4 as  well

On Thu, Apr 16, 2020, 11:23 Frank Haun <fh@fhaun.de> wrote:

> Hello,
>
> I'm not sure, should this branch compile on ARM Devices?
>
> I've tried Raspbian 32bit and Ubuntu Core 64bit.
>
> All necessary libs are installed.
>
> | $ git status
> | On branch feature/native-comp
> | Your branch is up to date with 'origin/feature/native-comp'.
>
> | $ ./autogen.sh
> | $ ./configure --without-imagemagick --with-x-toolkit=lucid --with-pop
> --with-jpeg=no --with-gif=no --with-tiff=no --without-makeinfo
> | $ make
>
> First everything does fine, but then I get this:
>
> | ...
> | Loading /home/ubuntu/CVS/emacs/lisp/tooltip.el (source)...
> | Finding pointers to doc strings...
> | Finding pointers to doc strings...done
> | Dumping under the name bootstrap-emacs.pdmp
> | dumping fingerprint:
> 9be4874d483d5c67b257e1d30440bebceb4673d531a3b39f69150175f6101e76
> | Dump complete
> | Byte counts: header=96 hot=14987776 discardable=122208 cold=9776976
> | Reloc counts: hot=1010305 discardable=6007
> | make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
> | make[2]: Entering directory '/home/ubuntu/CVS/emacs/lisp'
> |   ELC      emacs-lisp/macroexp.elc
> | /bin/bash: line 1: 24525 Segmentation fault      (core dumped)
> EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file
> --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile
> emacs-lisp/macroexp.el
> | make[2]: *** [Makefile:316: emacs-lisp/macroexp.elc] Error 139
> | make[2]: Leaving directory '/home/ubuntu/CVS/emacs/lisp'
> | make[1]: *** [Makefile:828: bootstrap-emacs.pdmp] Error 2
> | make[1]: Leaving directory '/home/ubuntu/CVS/emacs/src'
> | make: *** [Makefile:424: src] Error 2
>
> Frank
> --
> Linux ubuntu 5.3.0-1022 aarch64 GNU/Linux
> Experimental Blog: <http://fhaun.de>
>
>
>

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

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

* Re: native-comp branch on Raspberry Pi 4
  2020-04-16 17:06 ` Gong-Yi Liao 廖宮毅
@ 2020-04-16 17:18   ` Andrea Corallo
  2020-04-16 18:50     ` Gong-Yi Liao 廖宮毅
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Corallo @ 2020-04-16 17:18 UTC (permalink / raw)
  To: Gong-Yi Liao 廖宮毅; +Cc: Frank Haun, emacs-devel

I've built many times on aarch64 but not in the last weeks and always
with a libgccjit compiled form source.  Still have to try aarch32.

Andrea

-- 
akrl@sdf.org



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

* Re: native-comp branch on Raspberry Pi 4
  2020-04-16 17:18   ` Andrea Corallo
@ 2020-04-16 18:50     ` Gong-Yi Liao 廖宮毅
  2020-04-16 19:35       ` Andrea Corallo
  0 siblings, 1 reply; 5+ messages in thread
From: Gong-Yi Liao 廖宮毅 @ 2020-04-16 18:50 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Frank Haun, emacs-devel

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

Just curious... how long does it take to compile gcc & emacs native on your
aarch64 machine?  I have never successfully get it done on a Rpi4b...



On Thu, Apr 16, 2020, 12:18 Andrea Corallo <akrl@sdf.org> wrote:

> I've built many times on aarch64 but not in the last weeks and always
> with a libgccjit compiled form source.  Still have to try aarch32.
>
> Andrea
>
> --
> akrl@sdf.org
>

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

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

* Re: native-comp branch on Raspberry Pi 4
  2020-04-16 18:50     ` Gong-Yi Liao 廖宮毅
@ 2020-04-16 19:35       ` Andrea Corallo
  0 siblings, 0 replies; 5+ messages in thread
From: Andrea Corallo @ 2020-04-16 19:35 UTC (permalink / raw)
  To: Gong-Yi Liao 廖宮毅; +Cc: Frank Haun, emacs-devel

Gong-Yi Liao 廖宮毅 <gongyi.liao@gmail.com> writes:

> Just curious... how long does it take to compile gcc & emacs native
> on your aarch64 machine?  I have never successfully get it done on a
> Rpi4b... 

Aarch64 can be quite satisfying for compiling depending on the machine.
On the one I used speed 2 compile time was about 100min (64 cores),
newer generations should be faster.

Anyway configuring libgccjit with "--enable-host-shared
--enable-languages=jit --disable-bootstrap --enable-checking=release"
makes compilation surprisingly cheap.

And regarding Emacs

make NATIVE_FAST_BOOT=1 BYTE_COMPILE_EXTRA_FLAGS='--eval "(setq comp-speed 0)"'

Is the recipe to start with on constrained HW.  On "normal" machines it
completes in ~10 min so should be sustainable on any system.

Andrea

-- 
akrl@sdf.org



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

end of thread, other threads:[~2020-04-16 19:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 16:17 native-comp branch on Raspberry Pi 4 Frank Haun
2020-04-16 17:06 ` Gong-Yi Liao 廖宮毅
2020-04-16 17:18   ` Andrea Corallo
2020-04-16 18:50     ` Gong-Yi Liao 廖宮毅
2020-04-16 19:35       ` Andrea Corallo

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