I'm unable to build the latest version of xemacs.  temacs fails with this message.  This happens on a recent debian build and also Fedora 28.

if true ; then \
 ./temacs -nd -no-packages -batch -l /usr/local/google/home/rtoy/src/XEmacs/beta/xemacs-head/src/../lisp/make-docfile.el -- \
    -o ../lib-src/DOC -d /usr/local/google/home/rtoy/src/XEmacs/beta/xemacs-head/src -i ../lib-src/../site-packages \
    abbrev.c alloc.c alloca.c array.c balloon_help.c balloon-x.c blocktype.c buffer.c bytecode.c callint.c casefiddle.c casetab.c chartab.c filelock.c cmdloop.c cmds.c console.c console-stream.c data.c debug.c tests.c device.c dired.c doc.c doprnt.c editfns.c elhash.c emacs.c emodules.c eval.c events.c event-stream.c event-unixoid.c dumper.c input-method-xlib.c inline.c linuxplay.c alsaplay.c miscplay.c terminfo.c extents.c faces.c file-coding.c fileio.c filemode.c floatfns.c fns.c font-lock.c frame.c gc.c general.c glyphs.c glyphs-eimage.c glyphs-shared.c glyphs-widget.c gui.c menubar.c scrollbar.c dialog.c toolbar.c gutter.c hash.c imgproc.c indent.c insdel.c intl.c keymap.c line-number.c lread.c lstream.c macros.c marker.c md5.c minibuf.c mule-ccl.c mule-charset.c mule-coding.c fontcolor.c opaque.c print.c process.c process-unix.c profile.c rangetab.c realpath.c redisplay.c redisplay-output.c regex.c search.c select.c sequence.c sysdll.c signal.c sound.c specifier.c strftime.c symbols.c syntax.c sysdep.c text.c tls.c console-tty.c device-tty.c event-tty.c frame-tty.c fontcolor-tty.c redisplay-tty.c cm.c undo.c unicode.c console-x.c device-x.c event-Xt.c frame-x.c glyphs-x.c fontcolor-x.c redisplay-x.c select-x.c gccache-x.c intl-x.c font-mgr.c gui-x.c menubar-x.c scrollbar-x.c dialog-x.c toolbar-x.c toolbar-xlike.c widget.c window.c   \
     ; fi

Loading /usr/local/google/home/rtoy/src/XEmacs/beta/xemacs-head/src/../lisp/make-docfile.el...
  Loading find-paths.el...
  Loading packages.el...
  Loading setup-paths.el...
  Loading raw-process.el...
    Requiring custom...
      Requiring widget...
    Loading process...  # bind (stack-trace-on-signal debug-on-signal stack-trace-on-error debug-on-error)
  # (unwind-protect ...)
  (null (function-max-args (quote throw)))
  (and (featurep (quote xemacs)) (null (function-max-args (quote throw))))
  (or (and (featurep (quote xemacs)) (null (function-max-args (quote throw)))) (error "Loading this file requires xemacs, (null (function-max-args 'throw))"))
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  (load-internal "[internal]")
  load("process")
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  (load-internal "[internal]")
  load("raw-process.el")
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  (load-internal "[internal]")

--
Ray