unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "André A. Gomes" <andremegafone@gmail.com>
To: Maxime Devos <maximedevos@telenet.be>
Cc: guix-devel@gnu.org
Subject: Re: Packing Emacs 28.0.91 with native compilation
Date: Tue, 11 Jan 2022 23:28:46 +0300	[thread overview]
Message-ID: <87wnj6yq2p.fsf@gmail.com> (raw)
In-Reply-To: <3816a112b9d1a526bd69ff164774e427843264fd.camel@telenet.be> (Maxime Devos's message of "Tue, 11 Jan 2022 20:41:09 +0100")

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"


  parent reply	other threads:[~2022-01-11 20:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-01-11 19:49 ` Ryan Prior
2022-01-11 20:39   ` André A. Gomes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnj6yq2p.fsf@gmail.com \
    --to=andremegafone@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=maximedevos@telenet.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).