Subject: Re: bug#49864: 28.0.50; Fails to start after "make install"

From: Eli Zaretskii <[email-masked]>
Date: Thu, 05 Aug 2021 17:04:08 +0300

> Date: Thu, 05 Aug 2021 16:33:53 +0300
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked]
> 
>   162       if (faccessat (AT_FDCWD, file, amode, AT_EACCESS) == 0)
> 
> That shows the file name it is trying to access in the list of
> arguments of the function.  As far as I understand from the other
> information you posted, that file does exist on your system, is that
> right?  Because you said the file below does exist:
> 
>   /usr/local/lib/emacs/28.0.50/native-lisp/28.0.50-864bf4e5/preloaded/window-0d1b8b93-dcb2375f.eln
> 
> But for some reason, the faccessat call fails.  We need to understand
> why.
> 
> > (gdb) p errno
> > 'errno' has unknown type; cast it to its declared type
> 
> To work around the problem with errno's type, try this:
> 
>   (gdb) p (int)errno

To clarify: please print the value of errno as above _after_ stepping
over the call to faccessat, i.e. when GDB shows this:

  162       if (faccessat (AT_FDCWD, file, amode, AT_EACCESS) == 0)
  (gdb) next
  175       return false;