GNU bug report logs - #45303
28.0.50; [feature/native-comp] comp.c compilation error on Windows 10

Previous Next

Package: emacs;

Reported by: Liāu, Kiong-Gē 廖宮毅 <gongyi.liao <at> gmail.com>

Date: Thu, 17 Dec 2020 20:22:01 UTC

Severity: normal

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pal Gloss <pcfeb0009 <at> gmx.com>
To: 45303 <at> debbugs.gnu.org
Subject: bug#45303: #45303 [feature/native-comp] building error on Windows
Date: Sun, 20 Dec 2020 17:23:25 +0100
[Message part 1 (text/plain, inline)]
Hi Andrea,
 
Sorry for sending my previous mail to your address only and not to the bug tracker.
I'm not used to debbugs (as you can guess from the many HTML mails I sent, blush).

I wrote 
> > I do not understand 3b53a591faed03679382a601b93da7fe6ce3b4af: the way
You answered
> No you are right, this morning I was a little in a rush and I might have
> failed grepping, hopefully ab985f41db is better.

There are still problems related to the usage of Fdirectory_files and
internal_condition_case_5 I think.  At least, I get a crash after the
bootstrap is dumped (? see attached build log)

    Debugger entered--Lisp error: (wrong-type-argument wholenump t)

> With 407fb16583 I think '-lgccjit' should be unnecessary on Windows now, is it?

It is still needed, see my previous mail.  But adding -lgccjit allows the build
to proceed but crashes later on.

Can I propose a patch if I have not signed the paperwork?

Thank you for this great new feature.

These are the commands I ran to produce the attached build log:
#+begin_src shell :exports code
  (
      PROCESSORS_TO_USE="3"
      EMACS_VERSION="emacs-native-comp"
      cd ../emacs
      rm -rf ../build
      git restore .
      git status
      git rev-parse HEAD
      gcc --version
      ./autogen.sh
      mkdir -p ../build
      cd ../build
      ../emacs/configure \
          --with-xml2 \
          --without-pop \
          --prefix="/home/cramaph1/$EMACS_VERSION/dest" \
          --without-compress-install \
          --without-dbus \
          --with-nativecomp \
          --with-modules 'CFLAGS=-O2 -g3'
      # fix linker errors by making sure the correct libraries are added to the linker command
      sed -i -e 's/^LIBGCCJIT = *$/LIBGCCJIT = -lz -lgccjit/' src/Makefile
      make -j"$PROCESSORS_TO_USE"
      make install
  ) 2>&1 | tee /tmp/emacs-$(git rev-parse HEAD)-lz-lgccjit.log
#+end_src
[emacs-ab985f41db5fdaeada513d28a065332fd8838cf4-lz-lgccjit.log (application/octet-stream, attachment)]

This bug report was last modified 4 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.