unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Manuel Uberti <manuel.uberti@inventati.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 49118@debbugs.gnu.org
Subject: bug#49118: 28.0.50; Error: File error Opening output file
Date: Sat, 19 Jun 2021 16:34:41 +0200	[thread overview]
Message-ID: <f3931d72-8020-27d5-8d67-e36c738797c8@inventati.org> (raw)
In-Reply-To: <83a6nlx6uo.fsf@gnu.org>

On 19/06/21 16:32, Eli Zaretskii wrote:
> 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?

This is what I get:

manuel@hathaway:~$ emacs -batch -l comp -f batch-native-compile 
/usr/local/share/emacs/28.0.50/lisp/time.el.gz
uncompressing time.el.gz...
uncompressing time.el.gz...done
Debugger entered--Lisp error: (file-error 
"/usr/local/share/emacs/28.0.50/lisp/time.el.gz" "Opening output file" "Cannot 
overwrite file" "/usr/local/share/emacs/28.0.50/lisp/time.elc")
   signal(file-error ("/usr/local/share/emacs/28.0.50/lisp/time.el.gz" "Opening 
output file" "Cannot overwrite file" 
"/usr/local/share/emacs/28.0.50/lisp/time.elc"))
   comp--native-compile("/usr/local/share/emacs/28.0.50/lisp/time.el.gz")
   batch-native-compile()
   command-line-1(("-l" "comp" "-f" "batch-native-compile" 
"/usr/local/share/emacs/28.0.50/lisp/time.el.gz"))
   command-line()
   normal-top-level()

This is using sudo to invoke the same command:

manuel@hathaway:~$ sudo emacs -batch -l comp -f batch-native-compile 
/usr/local/share/emacs/28.0.50/lisp/time.el.gz
[sudo] password for manuel:
uncompressing time.el.gz...
uncompressing time.el.gz...done
uncompressing time.el.gz...
uncompressing time.el.gz...done

-- 
Manuel Uberti
www.manueluberti.eu





  reply	other threads:[~2021-06-19 14:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-19 14:21 bug#49118: 28.0.50; Error: File error Opening output file Manuel Uberti
2021-06-19 14:32 ` Eli Zaretskii
2021-06-19 14:34   ` Manuel Uberti [this message]
2021-06-19 14:55     ` Eli Zaretskii
2021-06-21 10:21       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-21 10:33         ` Manuel Uberti
2021-06-21 12:19           ` Eli Zaretskii
2021-06-21 12:34             ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3931d72-8020-27d5-8d67-e36c738797c8@inventati.org \
    --to=manuel.uberti@inventati.org \
    --cc=49118@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).