unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Packing Emacs 28.0.91 with native compilation
@ 2022-01-11 18:32 André A. Gomes
  2022-01-11 18:48 ` Maxime Devos
  2022-01-11 19:49 ` Ryan Prior
  0 siblings, 2 replies; 9+ messages in thread
From: André A. Gomes @ 2022-01-11 18:32 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

I tried to package Emacs as mentioned in the subject without success.
I'm wondering if someone else has done it already.  Note that I have few
experience.

Please find my attempt below.

https://git.sr.ht/~aadcg/aadcg-guix-channel/tree/master/item/packages/aadcg-emacs.scm

A log below.

--8<---------------cut here---------------start------------->8---
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
<https://gcc.gnu.org/wiki/JIT>.
error: in phase 'configure': uncaught exception:
%exception #<&invoke-error program: "/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" arguments: ("./configure" "CONFIG_SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/ljvhsyd91fc307r4chbrzkd5r7zvjgvp-aadcg-emacs-28-pretest-28.0.91-0.d193801" "--enable-fast-install" "--with-native-compilation" "--with-modules" "--with-cairo" "--disable-build-details") exit-status: 127 term-signal: #f stop-signal: #f> 
phase `configure' failed after 9.7 seconds
--8<---------------cut here---------------end--------------->8---

Thank you.


-- 
André A. Gomes
"Free Thought, Free World"


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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 18:32 Packing Emacs 28.0.91 with native compilation André A. Gomes
@ 2022-01-11 18:48 ` Maxime Devos
  2022-01-11 19:13   ` André A. Gomes
  2022-01-11 19:49 ` Ryan Prior
  1 sibling, 1 reply; 9+ messages in thread
From: Maxime Devos @ 2022-01-11 18:48 UTC (permalink / raw)
  To: André A. Gomes, guix-devel

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

Hi,

André A. Gomes schreef op di 11-01-2022 om 21:32 [+0300]:
> Hi Guix,
> 
> I tried to package Emacs as mentioned in the subject without success.
> I'm wondering if someone else has done it already.  Note that I have few
> experience.
> 
> Please find my attempt below.
> 
> https://git.sr.ht/~aadcg/aadcg-guix-channel/tree/master/item/packages/aadcg-emacs.scm
> 
> A log below.
> 
> --8<---------------cut here---------------start------------->8---
> configure: error: The installed libgccjit failed to compile and run a test program using
> the libgccjit library; see config.log for the details of the failure.
> [...]

configure is telling that "config.log" has details, please include it.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 18:48 ` Maxime Devos
@ 2022-01-11 19:13   ` André A. Gomes
  2022-01-11 19:41     ` Maxime Devos
  0 siblings, 1 reply; 9+ messages in thread
From: André A. Gomes @ 2022-01-11 19:13 UTC (permalink / raw)
  To: Maxime Devos; +Cc: guix-devel

Maxime Devos <maximedevos@telenet.be> writes:

>> A log below.
>> 
>> --8<---------------cut here---------------start------------->8---
>> configure: error: The installed libgccjit failed to compile and run a test program using
>> the libgccjit library; see config.log for the details of the failure.
>> [...]
>
> configure is telling that "config.log" has details, please include it.

Right, but I couldn't figure out what's this file or where it's
located.  


-- 
André A. Gomes
"Free Thought, Free World"


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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 19:13   ` André A. Gomes
@ 2022-01-11 19:41     ` Maxime Devos
  2022-01-11 19:47       ` Malte Gerdes
  2022-01-11 20:28       ` André A. Gomes
  0 siblings, 2 replies; 9+ messages in thread
From: Maxime Devos @ 2022-01-11 19:41 UTC (permalink / raw)
  To: André A. Gomes; +Cc: guix-devel

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

André A. Gomes schreef op di 11-01-2022 om 22:13 [+0300]:
> Maxime Devos <maximedevos@telenet.be> writes:
> 
> > > A log below.
> > > 
> > > --8<---------------cut here---------------start------------->8---
> > > configure: error: The installed libgccjit failed to compile and run a test program using
> > > the libgccjit library; see config.log for the details of the failure.
> > > [...]
> > 
> > configure is telling that "config.log" has details, please include it.
> 
> Right, but I couldn't figure out what's this file or where it's
> located.  

You can pass --keep-failed to "guix build", then "config.log" should be
in (a subdirectory) of /tmp/guix-build-aadcg-emacs-28.0.91-0
(not sure about the directory name).

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 19:41     ` Maxime Devos
@ 2022-01-11 19:47       ` Malte Gerdes
  2022-01-11 20:31         ` André A. Gomes
  2022-01-11 20:28       ` André A. Gomes
  1 sibling, 1 reply; 9+ messages in thread
From: Malte Gerdes @ 2022-01-11 19:47 UTC (permalink / raw)
  To: Maxime Devos; +Cc: André A. Gomes, guix-devel

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

Hi,

https://github.com/flatwhatson/guix-channel

Contains a working Emacs 28.0.90.

Hope this helps,
Malte

On Tue, 11 Jan 2022, 20:42 Maxime Devos, <maximedevos@telenet.be> wrote:

> André A. Gomes schreef op di 11-01-2022 om 22:13 [+0300]:
> > Maxime Devos <maximedevos@telenet.be> writes:
> >
> > > > A log below.
> > > >
> > > > --8<---------------cut here---------------start------------->8---
> > > > configure: error: The installed libgccjit failed to compile and run
> a test program using
> > > > the libgccjit library; see config.log for the details of the failure.
> > > > [...]
> > >
> > > configure is telling that "config.log" has details, please include it.
> >
> > Right, but I couldn't figure out what's this file or where it's
> > located.
>
> You can pass --keep-failed to "guix build", then "config.log" should be
> in (a subdirectory) of /tmp/guix-build-aadcg-emacs-28.0.91-0
> (not sure about the directory name).
>
> Greetings,
> Maxime.
>

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

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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 18:32 Packing Emacs 28.0.91 with native compilation André A. Gomes
  2022-01-11 18:48 ` Maxime Devos
@ 2022-01-11 19:49 ` Ryan Prior
  2022-01-11 20:39   ` André A. Gomes
  1 sibling, 1 reply; 9+ messages in thread
From: Ryan Prior @ 2022-01-11 19:49 UTC (permalink / raw)
  To: André A. Gomes; +Cc: guix-devel

Hey André, glad you're working on this!

I have an Emacs package with native-compilation, pgtk, sqlite3, xinput2, and xwidgets that I call "emacs-edge" and have been using daily with Spacemacs. [1]

Hope you're able to get yours working, I'd love to move back to an upstream Guix package instead of limping my own thing along.

Cheers,
Ryan

[1] https://github.com/ryanprior/guix-packages/blob/master/testing/emacs.scm#L17

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, January 11th, 2022 at 6:32 PM, André A. Gomes <andremegafone@gmail.com> wrote:

> Hi Guix,
>
> I tried to package Emacs as mentioned in the subject without success.
>
> I'm wondering if someone else has done it already. Note that I have few
>
> experience.
>
> Please find my attempt below.
>
> https://git.sr.ht/~aadcg/aadcg-guix-channel/tree/master/item/packages/aadcg-emacs.scm
>
> A log below.
>
> --8<---------------cut here---------------start------------->8---
>
> configure: error: The installed libgccjit failed to compile and run a test program using
>
> the libgccjit library; see config.log for the details of the failure.
>
> The test program can be found here:
>
> https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html.
>
> You can try compiling it yourself to investigate the issues.
>
> Please report the issue to your distribution if libgccjit was installed
>
> through that.
>
> You can find the instructions on how to compile and install libgccjit from
>
> source on this site:
>
> https://gcc.gnu.org/wiki/JIT.
>
> error: in phase 'configure': uncaught exception:
>
> %exception #<&invoke-error program: "/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" arguments: ("./configure" "CONFIG_SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/ljvhsyd91fc307r4chbrzkd5r7zvjgvp-aadcg-emacs-28-pretest-28.0.91-0.d193801" "--enable-fast-install" "--with-native-compilation" "--with-modules" "--with-cairo" "--disable-build-details") exit-status: 127 term-signal: #f stop-signal: #f>
>
> phase `configure' failed after 9.7 seconds
>
> --8<---------------cut here---------------end--------------->8---
>
> Thank you.
>
>
> --------------
>
> André A. Gomes
>
> "Free Thought, Free World"


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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 19:41     ` Maxime Devos
  2022-01-11 19:47       ` Malte Gerdes
@ 2022-01-11 20:28       ` André A. Gomes
  1 sibling, 0 replies; 9+ messages in thread
From: André A. Gomes @ 2022-01-11 20:28 UTC (permalink / raw)
  To: Maxime Devos; +Cc: guix-devel

Maxime Devos <maximedevos@telenet.be> writes:

> André A. Gomes schreef op di 11-01-2022 om 22:13 [+0300]:
>> Maxime Devos <maximedevos@telenet.be> writes:
>>
>> > > A log below.
>> > >
>> > > --8<---------------cut here---------------start------------->8---
>> > > configure: error: The installed libgccjit failed to compile and run a test program using
>> > > the libgccjit library; see config.log for the details of the failure.
>> > > [...]
>> >
>> > configure is telling that "config.log" has details, please include it.
>>
>> Right, but I couldn't figure out what's this file or where it's
>> located.
>
> You can pass --keep-failed to "guix build", then "config.log" should be
> in (a subdirectory) of /tmp/guix-build-aadcg-emacs-28.0.91-0
> (not sure about the directory name).

Ah-ah!  I was doing it with guix package, instead of guix build (silly
me).

Seems that the issue comes from here:

--8<---------------cut here---------------start------------->8---
configure:5377: gcc --version >&5
gcc (GCC) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5388: $? = 0
configure:5377: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/gnu/store/vakvgvrb839igv16jkif4lmx11d25jqb-gcc-10.3.0/libexec/gcc/x86_64-unknown-linux-gnu/10.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.3.0 (GCC)
configure:5388: $? = 0
configure:5377: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5388: $? = 1
configure:5377: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:5388: $? = 1
configure:5377: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:5388: $? = 1
configure:5408: checking whether the C compiler works
configure:5430: gcc    conftest.c  >&5
configure:5434: $? = 0
configure:5482: result: yes
configure:5485: checking for C compiler default output file name
configure:5487: result: a.out
configure:5493: checking for suffix of executables
configure:5500: gcc -o conftest    conftest.c  >&5
configure:5504: $? = 0
configure:5526: result:
configure:5548: checking whether we are cross compiling
configure:5556: gcc -o conftest    conftest.c  >&5
configure:5560: $? = 0
configure:5567: ./conftest
configure:5571: $? = 0
configure:5586: result: no
configure:5591: checking for suffix of object files
configure:5613: gcc -c   conftest.c >&5
configure:5617: $? = 0
configure:5638: result: o
configure:5642: checking whether we are using the GNU C compiler
configure:5661: gcc -c   conftest.c >&5
configure:5661: $? = 0
configure:5670: result: yes
configure:5679: checking whether gcc accepts -g
configure:5699: gcc -c -g  conftest.c >&5
configure:5699: $? = 0
configure:5740: result: yes
configure:5757: checking for gcc option to enable C11 features
configure:5960: gcc  -c -g -O2  conftest.c >&5
configure:5960: $? = 0
configure:5974: result: none needed
configure:6182: checking whether the compiler is clang
configure:6203: gcc -c -g -O2  conftest.c >&5
configure:6203: $? = 0
configure:6211: result: no
configure:6215: checking for compiler option needed when checking for declarations
configure:6246: result: none
configure:6307: checking whether gcc and cc understand -c and -o together
configure:6338: gcc -c conftest.c -o conftest2.o >&5
configure:6342: $? = 0
configure:6348: gcc -c conftest.c -o conftest2.o >&5
configure:6352: $? = 0
configure:6363: cc -c conftest.c >&5
./configure: line 6365: cc: command not found
configure:6367: $? = 127
configure:6407: result: yes
configure:6444: checking how to run the C preprocessor
configure:6475: gcc -E  conftest.c
configure:6475: $? = 0
configure:6489: gcc -E  conftest.c
conftest.c:10:10: fatal error: ac_nonexistent.h: No such file or directory
   10 | #include <ac_nonexistent.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:6489: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Emacs"
| #define PACKAGE_TARNAME "emacs"
| #define PACKAGE_VERSION "28.0.91"
| #define PACKAGE_STRING "GNU Emacs 28.0.91"
| #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/emacs/"
| #define HAVE_PDUMPER 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:6514: result: gcc -E
configure:6534: gcc -E  conftest.c
configure:6534: $? = 0
configure:6548: gcc -E  conftest.c
conftest.c:10:10: fatal error: ac_nonexistent.h: No such file or directory
   10 | #include <ac_nonexistent.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:6548: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Emacs"
| #define PACKAGE_TARNAME "emacs"
| #define PACKAGE_VERSION "28.0.91"
| #define PACKAGE_STRING "GNU Emacs 28.0.91"
| #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/emacs/"
| #define HAVE_PDUMPER 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
--8<---------------cut here---------------end--------------->8---


--
André A. Gomes
"Free Thought, Free World"


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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 19:47       ` Malte Gerdes
@ 2022-01-11 20:31         ` André A. Gomes
  0 siblings, 0 replies; 9+ messages in thread
From: André A. Gomes @ 2022-01-11 20:31 UTC (permalink / raw)
  To: Malte Gerdes; +Cc: guix-devel

Malte Gerdes <malte.f.gerdes@gmail.com> writes:

> Hi,
>
> https://github.com/flatwhatson/guix-channel
>
> Contains a working Emacs 28.0.90.

Thank you!


-- 
André A. Gomes
"Free Thought, Free World"


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

* Re: Packing Emacs 28.0.91 with native compilation
  2022-01-11 19:49 ` Ryan Prior
@ 2022-01-11 20:39   ` André A. Gomes
  0 siblings, 0 replies; 9+ messages in thread
From: André A. Gomes @ 2022-01-11 20:39 UTC (permalink / raw)
  To: Ryan Prior; +Cc: guix-devel

Ryan Prior <rprior@protonmail.com> writes:

> Hey André, glad you're working on this!
>
> I have an Emacs package with native-compilation, pgtk, sqlite3, xinput2, and xwidgets that I call "emacs-edge" and have been using daily with Spacemacs. [1]
>
> Hope you're able to get yours working, I'd love to move back to an upstream Guix package instead of limping my own thing along.
>
> Cheers,
> Ryan
>
> [1] https://github.com/ryanprior/guix-packages/blob/master/testing/emacs.scm#L17

Great work, thanks for sharing!


-- 
André A. Gomes
"Free Thought, Free World"


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

end of thread, other threads:[~2022-01-11 20:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 18:32 Packing Emacs 28.0.91 with native compilation André A. Gomes
2022-01-11 18:48 ` Maxime Devos
2022-01-11 19:13   ` André A. Gomes
2022-01-11 19:41     ` Maxime Devos
2022-01-11 19:47       ` Malte Gerdes
2022-01-11 20:31         ` André A. Gomes
2022-01-11 20:28       ` André A. Gomes
2022-01-11 19:49 ` Ryan Prior
2022-01-11 20:39   ` André A. Gomes

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).