Subject: bug#49118: 28.0.50; Error: File error Opening output file

From: Eli Zaretskii <[email-masked]>
Date: Sat, 19 Jun 2021 17:32:47 +0300

> From: Manuel Uberti <[email-masked]>
> Date: Sat, 19 Jun 2021 16:21:07 +0200
> 
> the following is a recipe to reproduce the problem:
> 
> - I built Emacs master (commit:
>    b9f339e8f8f6194001ca2f00d9d172851ca482bd) using these build options: 
> --with-harfbuzz --with-native-compilation
> - emacs -Q
> - M-x emacs-init-time
> 
> The *Warnings* buffer pops up with the following contents:
> 
> Warning (comp): /usr/local/share/emacs/28.0.50/lisp/time.el.gz: Error: File 
> error Opening output file Disable showing Disable logging

Maybe the same as bug#49099?

What happens if you invoke the native-compilation like this:

  $ emacs -batch -l comp -f batch-native-compile /usr/local/share/emacs/28.0.50/lisp/time.el.gz

Does this also fail, and if so, what error message(s) do you see?