Subject: Re: bug#35174: emacs-git sha f2d22273599f96a731e23b2f6d7571af8bb7bb3f fails to build

From: Noam Postavsky <[email-masked]>
Date: Sat, 06 Apr 2019 15:48:11 -0400

Stefan Cocora <[email-masked]> writes:

> Latest emacs-git from HEAD f2d22273599f96a731e23b2f6d7571af8bb7bb3f
> fails to build inside an nspawn clean and updated archlinux chroot, with
> this missing libgnu.a error:
>
> ...
>   GEN      time.h
>   GEN      unistd.h
>   AR       libgnu.a
> ar: fcntl.o: No such file or directory

> As far as the archlinux package content search is able to find only
> "extra/clisp" contains this libgnu.a file but even when adding clisp to
> the depends list emacs-git fails to build.

libgnu.a is being built, it's not a dependency.  fcntl.o is what's
missing, it's supposed to be built from lib/fcntl.c.  I'm not sure why
make is skipping compilation (and for all the other C files in that
directory).  For reference, I excerpt what the build is supposed to look
below.  Which makes me notice the archlinux log doesn't seem to have the
"make[1]: Entering directory ..." part, perhaps that is significant?

make[1]: Entering directory `/tmp/emacs-master/lib'
  GEN      alloca.h
  ...
  GEN      time.h
  GEN      unistd.h
  CC       explicit_bzero.o
  CC       fcntl.o
  ...
  CC       save-cwd.o
  AR       libgnu.a
make[1]: Leaving directory `/tmp/emacs-master/lib'