Subject: Emacs build fails: Symbol’s function definition is void: byte-compile-set-symbol-position

From: Vincent Lefevre <[email-masked]>
Date: Mon, 25 Apr 2022 14:54:32 +0200

I've tried to build master (ec4dabc2381df6d803bb6ff4c294ef0d374857b4)
under Linux/x86_64 (Debian/unstable) with ./configure --with-cairo,
but the "make" output terminated with:

[...]
ANCIENT=yes make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
make[2]: Entering directory '/home/vlefevre/software/emacs/lisp'
  ELC      emacs-lisp/macroexp.elc
  ELC      emacs-lisp/cconv.elc
  ELC      emacs-lisp/byte-opt.elc
  ELC      emacs-lisp/bytecomp.elc
  ELC      emacs-lisp/autoload.elc
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/bytecomp.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/bytecomp.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/bytecomp.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/bytecomp.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/bytecomp.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/cconv.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/cconv.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/cconv.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/cconv.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/cconv.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/byte-opt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/byte-opt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/byte-opt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/byte-opt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/byte-opt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/lisp-mnt.el’ newer than byte-compiled file; using older file

In byte-compile--log-warning-for-byte-compile:
emacs-lisp/bytecomp.el:1325:1:Warning: function byte-compile--log-warning-for-byte-compile used to take 1-4 arguments, now takes 2-4
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/radix-tree.el’ newer than byte-compiled file; using older file

In end of data:
emacs-lisp/macroexp.el:786:1:Warning: the function ‘byte-compile-warn-x’ is not known to be defined.

In end of data:
emacs-lisp/cconv.el:843:1:Warning: the function ‘byte-compile-warn-x’ is not known to be defined.

In end of data:
emacs-lisp/byte-opt.el:2447:1:Warning: the following functions are not known to be defined: byte-compile--check-arity-bytecode, byte-compile-warn-x
make[2]: Leaving directory '/home/vlefevre/software/emacs/lisp'
make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
make[2]: Entering directory '/home/vlefevre/software/emacs/lisp'
make[2]: Nothing to be done for 'compile-first'.
make[2]: Leaving directory '/home/vlefevre/software/emacs/lisp'
make -C ../lisp autoloads EMACS="../src/bootstrap-emacs"
make[2]: Entering directory '/home/vlefevre/software/emacs/lisp'
  ELC      ../lisp/bindings.elc
  ELC      ../lisp/abbrev.elc
  ELC      ../lisp/button.elc
  ELC      international/titdic-cnv.elc
  ELC      ../lisp/buff-menu.elc
  ELC      ../lisp/case-table.elc
  ELC      ../lisp/cus-face.elc
  ELC      ../lisp/composite.elc
  ELC      ../lisp/disp-table.elc
  ELC      ../lisp/custom.elc
  ELC      ../lisp/cus-start.elc
  ELC      ../lisp/dnd.elc

In toplevel form:

button.el:54:10: Error: Symbol’s function definition is void: byte-compile-set-symbol-position

In toplevel form:
In toplevel form:
disp-table.el:31:7: Error: Symbol’s function definition is void: byte-compile-set-symbol-position
buff-menu.el:33:11: Error: Symbol’s function definition is void: byte-compile-set-symbol-position

In toplevel form:
cus-start.el:38:14: Error: Symbol’s function definition is void: byte-compile-set-symbol-position
In toplevel form:
abbrev.el:35:30: Error: Symbol’s function definition is void: byte-compile-set-symbol-position

In toplevel form:
case-table.el:39:40: Error: Symbol’s function definition is void: byte-compile-set-symbol-position

In toplevel form:
custom.el:36:11: Error: Symbol’s function definition is void: byte-compile-set-symbol-position

In toplevel form:
bindings.el:34:30: Error: Symbol’s function definition is void: byte-compile-set-symbol-position

In toplevel form:
dnd.el:36:11: Error: Symbol’s function definition is void: byte-compile-set-symbol-position
make[2]: *** [Makefile:285: ../lisp/abbrev.elc] Error 1
make[2]: *** [Makefile:285: ../lisp/buff-menu.elc] Error 1
make[2]: *** [Makefile:285: ../lisp/case-table.elc] Error 1

In toplevel form:
composite.el:102:10: Error: Symbol’s function definition is void: byte-compile-set-symbol-position
make[2]: *** [Makefile:285: ../lisp/cus-start.elc] Error 1
make[2]: *** [Makefile:285: ../lisp/disp-table.elc] Error 1
make[1]: *** [Makefile:843: ../lisp/abbrev.elc] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:843: ../lisp/buff-menu.elc] Error 2
make -C ../admin/grammars all EMACS="../../src/bootstrap-emacs"
make[1]: *** [Makefile:843: ../lisp/case-table.elc] Error 2
make[1]: *** [Makefile:843: ../lisp/cus-start.elc] Error 2
make[2]: *** [Makefile:285: ../lisp/button.elc] Error 1
make[1]: *** [Makefile:843: ../lisp/disp-table.elc] Error 2

In toplevel form:
cus-face.el:37:22: Error: Symbol’s function definition is void: byte-compile-set-symbol-position
make[2]: *** [Makefile:285: ../lisp/custom.elc] Error 1
  GEN      calendar/cal-loaddefs.el
make[1]: *** [Makefile:843: ../lisp/button.elc] Error 2
make[1]: *** [Makefile:843: ../lisp/custom.elc] Error 2
  GEN      mh-e/mh-loaddefs.el
make[2]: *** [Makefile:285: ../lisp/bindings.elc] Error 1
  GEN      net/tramp-loaddefs.el
make[1]: *** [Makefile:843: ../lisp/bindings.elc] Error 2
make[2]: *** [Makefile:285: ../lisp/dnd.elc] Error 1
make[1]: *** [Makefile:843: ../lisp/dnd.elc] Error 2
make[2]: *** [Makefile:285: ../lisp/composite.elc] Error 1
make[3]: Entering directory '/home/vlefevre/software/emacs/admin/grammars'
  GEN      ../../lisp/cedet/semantic/bovine/c-by.el
make[1]: *** [Makefile:843: ../lisp/composite.elc] Error 2
make[2]: *** [Makefile:285: ../lisp/cus-face.elc] Error 1
  GEN      ../../lisp/cedet/semantic/bovine/make-by.el
make[1]: *** [Makefile:843: ../lisp/cus-face.elc] Error 2
  GEN      ../../lisp/cedet/semantic/bovine/scm-by.el
  GEN      ../../lisp/cedet/semantic/grammar-wy.el
  GEN      ../../lisp/cedet/semantic/wisent/javat-wy.el
  GEN      ../../lisp/cedet/semantic/wisent/js-wy.el
  GEN      ../../lisp/cedet/semantic/wisent/python-wy.el
  GEN      ../../lisp/cedet/srecode/srt-wy.el
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/lisp-mnt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/lisp-mnt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/lisp-mnt.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/radix-tree.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/radix-tree.el’ newer than byte-compiled file; using older file
  SCRAPE   ./net
Source file ‘/home/vlefevre/software/emacs/lisp/emacs-lisp/radix-tree.el’ newer than byte-compiled file; using older file
  SCRAPE   ./calendar
  SCRAPE   ./mh-e
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file
Source file ‘/home/vlefevre/software/emacs/lisp/progmodes/bug-reference.el’ newer than byte-compiled file; using older file

In toplevel form:
international/titdic-cnv.el:64:11: Error: Symbol’s function definition is void: byte-compile-set-symbol-position
make[2]: *** [Makefile:329: international/titdic-cnv.elc] Error 1
make[2]: *** Waiting for unfinished jobs....
  INFO     Scraping files for tramp-loaddefs.el... 
  INFO     Scraping files for cal-loaddefs.el... 
  INFO     Scraping files for tramp-loaddefs.el...11% 
  INFO     Scraping files for cal-loaddefs.el...66% 
  INFO     Scraping files for tramp-loaddefs.el...22% 
  INFO     Scraping files for mh-loaddefs.el... 
  INFO     Scraping files for cal-loaddefs.el...done
  INFO     Scraping files for mh-loaddefs.el...done
  INFO     Scraping files for tramp-loaddefs.el...32% 
  INFO     Scraping files for tramp-loaddefs.el...43% 
  INFO     Scraping files for tramp-loaddefs.el...53% 
  INFO     Scraping files for tramp-loaddefs.el...64% 
  INFO     Scraping files for tramp-loaddefs.el...74% 
  INFO     Scraping files for tramp-loaddefs.el...85% 
  INFO     Scraping files for tramp-loaddefs.el...95% 
  INFO     Scraping files for tramp-loaddefs.el...100% 
  INFO     Scraping files for tramp-loaddefs.el...done
make[3]: Leaving directory '/home/vlefevre/software/emacs/admin/grammars'
make[2]: Leaving directory '/home/vlefevre/software/emacs/lisp'
make[1]: *** [Makefile:898: ../lisp/loaddefs.el] Error 2
make[1]: Leaving directory '/home/vlefevre/software/emacs/src'
make: *** [Makefile:469: src] Error 2

-- 
Vincent Lefèvre <[email-masked]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)