Subject: bug#41782: 28.0.50; feature/native-comp: [Makefile:312: gnus/mml-sec.elc] Error 134

From: Gregor Zattler <[email-masked]>
Date: Fri, 12 Jun 2020 22:54:38 +0200

Hi Andrea,
* Andrea Corallo <[email-masked]> [2020-06-12; 08:24]:
> would be interesting to know if you still see this fail on the current
> branch.  I suspect this should have been fixed by
>
> 10933f235f Copy suffixes passed to 'openp' to avoid GC crashes...
>
> I've run with a script quite a number of bootstraps on
> x86_64-pc-linux-gnu and looks stable here.
>
> If you could give it a shot would be great.

I did but actually the build stopped earlier than at
gnus/mml-sec.elc:

+ set -e
+ export GRFZ_EMACS_FLAVOR=emacs-snapshot
+ GRFZ_EMACS_FLAVOR=emacs-snapshot
+ cd /home/grfz/src/emacs
+ git checkout -f lisp/startup.el
+ git stash
No local changes to save
+ git pull
>>From https://git.savannah.gnu.org/git/emacs
   4d1cfd0997..a6cc16d04c  feature/native-comp -> origin/feature/native-comp
   6b9eac6759..22f4fba8a9  emacs-27            -> origin/emacs-27
   d4e7087b68..459bd56f46  master              -> origin/master
 * [new branch]            scratch/tzz/auth-source-reveal-mode -> origin/scratch/tzz/auth-source-reveal-mode
Updating 4d1cfd0997..a6cc16d04c
Fast-forward
 doc/misc/tramp.texi                     | 118 +++++++++++++++++++++++++-
 etc/NEWS                                |   2 +-
 lisp/calendar/lunar.el                  |  17 ++--
 lisp/emacs-lisp/cl-macs.el              |   8 +-
 lisp/facemenu.el                        |  11 ++-
 lisp/faces.el                           |  40 ++++++---
 lisp/net/tramp-crypt.el                 | 142 ++++++++++++++++++++++----------
 lisp/progmodes/cc-fonts.el              |  18 ++--
 lisp/progmodes/project.el               |  21 ++---
 lisp/simple.el                          |  23 +++++-
 lisp/textmodes/css-mode.el              |  14 +---
 src/alloc.c                             |  11 +++
 src/comp.c                              |  61 ++++++++------
 src/comp.h                              |   2 +-
 src/lisp.h                              |   1 +
 src/lread.c                             |  14 +++-
 src/nsterm.m                            |  21 +++--
 src/pdumper.c                           |  27 ++++--
 test/lisp/calendar/lunar-tests.el       |  70 ++++++++++++++++
 test/lisp/emacs-lisp/cl-macs-tests.el   |   9 ++
 test/lisp/emacs-lisp/generator-tests.el |   7 +-
 test/lisp/net/tramp-tests.el            |  59 +++++++------
 22 files changed, 503 insertions(+), 193 deletions(-)
 create mode 100644 test/lisp/calendar/lunar-tests.el
+ git stash pop
No stash entries found.
+ true
++ dpkg-buildflags --get CFLAGS
++ tr ' ' '\n'
++ tr '\n' ' '
++ sed -e 's/  / /g' -e 's/ $//g'
++ egrep -vi 'Wall|no-PIE'
+ export 'CFLAGS=-g -O2 -fdebug-prefix-map=/home/grfz/src/emacs=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-pie'
+ CFLAGS='-g -O2 -fdebug-prefix-map=/home/grfz/src/emacs=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-pie'
++ dpkg-buildflags --get LDFLAGS
++ tr ' ' '\n'
++ egrep -vi no-pie
++ tr '\n' ' '
++ sed -e 's/ //g'
+ export 'LDFLAGS=-Wl,-z,relro -no-pie'
+ LDFLAGS='-Wl,-z,relro -no-pie'
++ dpkg-buildflags --get CPPFLAGS
++ tr ' ' '\n'
++ egrep -vi jutsnothingimportant
++ tr '\n' ' '
+ export 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2  '
+ CPPFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2  '
+ test config.status -nt configure
++ git status
++ grep -qs '^On branch feature/native-comp$'
++ echo NATIVE_FAST_BOOT=1
+ nocache nice ionice -c3 make NATIVE_FAST_BOOT=1 -j -l 4.1
make -C lib all
make info-real info-dir
make[1]: Entering directory '/home/grfz/src/emacs/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/grfz/src/emacs/lib'
make[1]: Entering directory '/home/grfz/src/emacs'
make -C doc/lispref info
make -C doc/lispintro info
make -C doc/emacs info
make -C doc/misc info
make[2]: Entering directory '/home/grfz/src/emacs/doc/misc'
make[2]: Entering directory '/home/grfz/src/emacs/doc/lispref'
make[2]: Nothing to be done for 'info'.
make[2]: Leaving directory '/home/grfz/src/emacs/doc/lispref'
make[2]: Entering directory '/home/grfz/src/emacs/doc/emacs'
make[2]: Nothing to be done for 'info'.
make[2]: Leaving directory '/home/grfz/src/emacs/doc/emacs'
make[2]: Entering directory '/home/grfz/src/emacs/doc/lispintro'
make[2]: Nothing to be done for 'info'.
make[2]: Leaving directory '/home/grfz/src/emacs/doc/lispintro'
  GEN      ../../info/tramp.info
make -C lib-src all
make[1]: Entering directory '/home/grfz/src/emacs/lib-src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/grfz/src/emacs/lib-src'
  GEN      info/dir
make -C src VCSWITNESS='$(srcdir)/../.git/logs/HEAD' BIN_DESTDIR='/usr/local/stow/emacs-snapshot/bin/' \
	 LISP_DESTDIR='/usr/local/stow/emacs-snapshot/share/emacs/28.0.50/lisp/' all
make[1]: Entering directory '/home/grfz/src/emacs/src'
make -C ../admin/charsets all
make -C ../admin/unidata charscript.el
make -C ../admin/charsets cp51932.el
make -C ../admin/charsets eucjp-ms.el
  GEN      globals.h
make[2]: Entering directory '/home/grfz/src/emacs/admin/unidata'
make[2]: Entering directory '/home/grfz/src/emacs/admin/charsets'
make[2]: Nothing to be done for 'eucjp-ms.el'.
make[2]: Leaving directory '/home/grfz/src/emacs/admin/charsets'
make[2]: Entering directory '/home/grfz/src/emacs/admin/charsets'
make[2]: Nothing to be done for 'cp51932.el'.
make[2]: Leaving directory '/home/grfz/src/emacs/admin/charsets'
make[2]: Entering directory '/home/grfz/src/emacs/admin/charsets'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/grfz/src/emacs/admin/charsets'
make[2]: Leaving directory '/home/grfz/src/emacs/doc/misc'
make[2]: Nothing to be done for 'charscript.el'.
make[2]: Leaving directory '/home/grfz/src/emacs/admin/unidata'
make[1]: Leaving directory '/home/grfz/src/emacs'
  CC       scroll.o
  CC       dispnew.o
  CC       frame.o
  CC       xdisp.o
  CC       menu.o
  CC       xmenu.o
  CC       window.o
  CC       charset.o
  CC       coding.o
  CC       category.o
  CC       ccl.o
  CC       character.o
  CC       undo.o
  CC       pdumper.o
  CC       alloc.o
  CC       search.o
  CC       indent.o
  CC       regex-emacs.o
  CC       casefiddle.o
  CC       casetab.o
alloc.c: In function ‘cleanup_vector’:
alloc.c:3164:11: error: used struct type value where scalar is required
       if (subr->native_comp_u[0])
           ^~~~
alloc.c:3166:15: warning: passing argument 1 of ‘xfree’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    xfree (subr->symbol_name);
           ~~~~^~~~~~~~~~~~~
alloc.c:814:14: note: expected ‘void *’ but argument is of type ‘const char *’
 xfree (void *block)
        ~~~~~~^~~~~
alloc.c:3167:30: warning: passing argument 1 of ‘xfree’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    xfree (subr->native_c_name[0]);
           ~~~~~~~~~~~~~~~~~~~^~~
alloc.c:814:14: note: expected ‘void *’ but argument is of type ‘const char *’
 xfree (void *block)
        ~~~~~~^~~~~
make[1]: *** [Makefile:407: alloc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/grfz/src/emacs/src'
make: *** [Makefile:424: src] Error 2
+ exit

I'm happy if this failure logs help you, but I have not the
slightest clue on how to interpret them.

Ciao,
-- 
Gregor