* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix @ 2021-06-12 19:48 No Wayman 2021-06-13 7:16 ` Eli Zaretskii 0 siblings, 1 reply; 11+ messages in thread From: No Wayman @ 2021-06-12 19:48 UTC (permalink / raw) To: 48978 Recently upgraded and I'm getting the same error for all of the elisp files under /usr/share/emacs/28.0.50/lisp/* e.g. Warning (comp): /usr/share/emacs/28.0.50/lisp/progmodes/etags.el: Error: File error Creating file with prefix Happens regardless of whether Emacs is started with my init or with emacs -Q. As soon as any package along that path is loaded, the errors kick in when JIT native compilation is attempted. Inspecting ~/.emacs.d/eln-cache/28.0.50-d3c1e6c9 confirms the error, as none of those package have corresponding .eln files. Happy to provide more information if necessary In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.4, Xaw3d scroll bars) of 2021-06-12 built on arch Repository revision: 0afab352e02d7070a8ced2af53c1d01217400cdf Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-native-compilation --with-x-toolkit=lucid --with-xft --with-xaw3d --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -fuse-linker-plugin' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-12 19:48 bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix No Wayman @ 2021-06-13 7:16 ` Eli Zaretskii 2021-06-13 12:51 ` No Wayman 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2021-06-13 7:16 UTC (permalink / raw) To: No Wayman; +Cc: 48978 > From: No Wayman <iarchivedmywholelife@gmail.com> > Date: Sat, 12 Jun 2021 15:48:33 -0400 > > Recently upgraded You upgraded from which Emacs version? > and I'm getting the same error for all of the elisp files under > /usr/share/emacs/28.0.50/lisp/* e.g. > > Warning (comp): /usr/share/emacs/28.0.50/lisp/progmodes/etags.el: > Error: File error Creating file with prefix This doesn't seem to be the complete error message which should be emitted when that operation fails. It should display the file name and the error description after the text you show. What happens if you do the following from the shell prompt: $ emacs -batch -l comp -f batch-native-compile /usr/share/emacs/28.0.50/lisp/progmodes/etags.el (The above assumes that the Emacs binary from this new version is on PATH; if not, replace "emacs" with the full absolute file name of the Emacs binary.) If the above command also fails, please show the full error message it displays. Also, is /usr/share/emacs/28.0.50/lisp/progmodes writable by your user? Thanks. ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-13 7:16 ` Eli Zaretskii @ 2021-06-13 12:51 ` No Wayman 2021-06-13 13:36 ` Eli Zaretskii 0 siblings, 1 reply; 11+ messages in thread From: No Wayman @ 2021-06-13 12:51 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 48978 [-- Attachment #1: Type: text/plain, Size: 3266 bytes --] Eli Zaretskii <eliz@gnu.org> writes: > You upgraded from which Emacs version? Apologies, I should've been more specific. I was on 28.0.50's master branch from a couple weeks ago. Don't have the exact commit on hand. > This doesn't seem to be the complete error message which should > be > emitted when that operation fails. It should display the file > name > and the error description after the text you show. I agree the error message looks incomplete, but that's all that's being reported. Here's a sample of the *Async-native-compile-log*: Compiling /home/n/.emacs.d/straight/repos/straight.el/straight.el... Compiling /usr/share/emacs/28.0.50/lisp/edmacro.el... /usr/share/emacs/28.0.50/lisp/edmacro.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/kmacro.el... /usr/share/emacs/28.0.50/lisp/kmacro.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/info.el... /usr/share/emacs/28.0.50/lisp/info.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/radix-tree.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/radix-tree.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/easy-mmode.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/easy-mmode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/pcase.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/pcase.el: Error: File error Creating file with prefix And so on for all the files along that path. I've attached the full contents of the buffer as well. > What happens if you do the following from the shell prompt: > > $ emacs -batch -l comp -f batch-native-compile > /usr/share/emacs/28.0.50/lisp/progmodes/etags.el Here we get the rest of the file-error: Debugger entered--Lisp error: (file-error "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating file with prefix" "Permission denied" "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc") signal(file-error ("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating file with prefix" "Permission denied" "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc")) comp--native-compile("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el") batch-native-compile() command-line-1(("-l" "comp" "-f" "batch-native-compile" "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el")) command-line() normal-top-level() Which is obviously a permissions error. > Also, is /usr/share/emacs/28.0.50/lisp/progmodes writable by > your > user? Permissions for the directory are as follows: drwxr-xr-x 2 root root 4.0K Jun 13 08:48 /usr/share/emacs/28.0.50/lisp/progmodes/ ^Looks like that's the problem! I'm using an AUR script to install Emacs. I see now there was a recent change to that script which modifies the permissions of directories: https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=dca21d899ec2b1390526a300c7a617a22165dbda Willing to bet that's the cause of the error here. I'll contact the maintainer of that installation script. Thanks for the response and sorry for the noise (though, I do think there may be a bug with the way that file-error is being reported). [-- Attachment #2: async-byte-compile-log.txt --] [-- Type: text/plain, Size: 29577 bytes --] Compiling /home/n/.emacs.d/straight/repos/straight.el/straight.el... Compiling /usr/share/emacs/28.0.50/lisp/edmacro.el... /usr/share/emacs/28.0.50/lisp/edmacro.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/kmacro.el... /usr/share/emacs/28.0.50/lisp/kmacro.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/info.el... /usr/share/emacs/28.0.50/lisp/info.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/radix-tree.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/radix-tree.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/easy-mmode.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/easy-mmode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/pcase.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/pcase.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/checkdoc.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/checkdoc.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/lisp-mnt.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/lisp-mnt.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/thingatpt.el... /usr/share/emacs/28.0.50/lisp/thingatpt.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/warnings.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/warnings.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/rx.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/rx.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-seq.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-seq.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-macs.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-macs.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/help-mode.el... /usr/share/emacs/28.0.50/lisp/help-mode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-extra.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-extra.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/gv.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/gv.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/seq.el... In toplevel form: seq.el:397:16: Warning: ‘seq-contains’ is an obsolete generic function (as of 27.1); use ‘seq-contains-p’ instead. /usr/share/emacs/28.0.50/lisp/emacs-lisp/seq.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/subr-x.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/subr-x.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/calc/calc-macs.el... Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/ring.el... /usr/share/emacs/28.0.50/lisp/calc/calc-macs.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/emacs-lisp/ring.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/rect.el... /usr/share/emacs/28.0.50/lisp/rect.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/calc/calc.el... Compiling /usr/share/emacs/28.0.50/lisp/windmove.el... /usr/share/emacs/28.0.50/lisp/windmove.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/advice.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/advice.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/calc/calc.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/ansi-color.el... /usr/share/emacs/28.0.50/lisp/ansi-color.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/comint.el... Compiling /usr/share/emacs/28.0.50/lisp/pcomplete.el... Compiling /usr/share/emacs/28.0.50/lisp/shell.el... /usr/share/emacs/28.0.50/lisp/pcomplete.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/comint.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/shell.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/textmodes/ispell.el... Compiling /usr/share/emacs/28.0.50/lisp/textmodes/flyspell.el... Compiling /usr/share/emacs/28.0.50/lisp/reveal.el... /usr/share/emacs/28.0.50/lisp/textmodes/ispell.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/reveal.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/textmodes/flyspell.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/calc/calc-ext.el... Compiling /usr/share/emacs/28.0.50/lisp/image/exif.el... Compiling /usr/share/emacs/28.0.50/lisp/dired.el... /usr/share/emacs/28.0.50/lisp/image/exif.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/image-mode.el... /usr/share/emacs/28.0.50/lisp/calc/calc-ext.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/dired.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/image-mode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/progmodes/compile.el... /usr/share/emacs/28.0.50/lisp/progmodes/compile.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/text-property-search.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/text-property-search.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/progmodes/asm-mode.el... /usr/share/emacs/28.0.50/lisp/progmodes/asm-mode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/cus-edit.el... Compiling /usr/share/emacs/28.0.50/lisp/wid-edit.el... Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/pp.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/pp.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/wid-edit.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/progmodes/flymake.el... /usr/share/emacs/28.0.50/lisp/cus-edit.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/progmodes/flymake-proc.el... Compiling /usr/share/emacs/28.0.50/lisp/novice.el... /usr/share/emacs/28.0.50/lisp/novice.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/progmodes/flymake.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/progmodes/flymake-proc.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/color.el... Compiling /usr/share/emacs/28.0.50/lisp/net/shr-color.el... /usr/share/emacs/28.0.50/lisp/color.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/shr-color.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/mail-utils.el... /usr/share/emacs/28.0.50/lisp/mail/mail-utils.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-util.el... Compiling /usr/share/emacs/28.0.50/lisp/mail/ietf-drums.el... /usr/share/emacs/28.0.50/lisp/gnus/mm-util.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/mail/ietf-drums.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/rfc2045.el... /usr/share/emacs/28.0.50/lisp/mail/rfc2045.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/sendmail.el... Compiling /usr/share/emacs/28.0.50/lisp/mail/rfc2047.el... Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/map.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/map.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/mail/rfc2047.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/mail/sendmail.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/json.el... Compiling /usr/share/emacs/28.0.50/lisp/password-cache.el... /usr/share/emacs/28.0.50/lisp/password-cache.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/eieio.el... /usr/share/emacs/28.0.50/lisp/json.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/emacs-lisp/eieio.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/eieio-core.el... Compiling /usr/share/emacs/28.0.50/lisp/auth-source.el... Compiling /usr/share/emacs/28.0.50/lisp/mail/smtpmail.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/eieio-core.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/tab-line.el... /usr/share/emacs/28.0.50/lisp/auth-source.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/mail/smtpmail.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/tab-line.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/time.el... Compiling /usr/share/emacs/28.0.50/lisp/calendar/cal-menu.el... Compiling /usr/share/emacs/28.0.50/lisp/calendar/calendar.el... /usr/share/emacs/28.0.50/lisp/time.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/calendar/cal-menu.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/find-func.el... /usr/share/emacs/28.0.50/lisp/calendar/calendar.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/format-spec.el... /usr/share/emacs/28.0.50/lisp/format-spec.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/emacs-lisp/find-func.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/outline.el... Compiling /usr/share/emacs/28.0.50/lisp/calendar/time-date.el... Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/generator.el... /usr/share/emacs/28.0.50/lisp/calendar/time-date.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/outline.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/avl-tree.el... Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/derived.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/avl-tree.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/emacs-lisp/derived.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/emacs-lisp/generator.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/inline.el... Compiling /usr/share/emacs/28.0.50/lisp/server.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/inline.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/tree-widget.el... /usr/share/emacs/28.0.50/lisp/server.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/tree-widget.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/recentf.el... Compiling /usr/share/emacs/28.0.50/lisp/paren.el... /usr/share/emacs/28.0.50/lisp/recentf.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/savehist.el... /usr/share/emacs/28.0.50/lisp/paren.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/savehist.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/calendar/iso8601.el... Compiling /usr/share/emacs/28.0.50/lisp/net/tramp-compat.el... /usr/share/emacs/28.0.50/lisp/calendar/iso8601.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/calendar/parse-time.el... /usr/share/emacs/28.0.50/lisp/calendar/parse-time.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/tramp-integration.el... /usr/share/emacs/28.0.50/lisp/net/tramp-compat.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/files-x.el... /usr/share/emacs/28.0.50/lisp/files-x.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/trampver.el... /usr/share/emacs/28.0.50/lisp/net/trampver.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/tramp-integration.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/tramp.el... Compiling /usr/share/emacs/28.0.50/lisp/filenotify.el... Compiling /usr/share/emacs/28.0.50/lisp/autorevert.el... /usr/share/emacs/28.0.50/lisp/filenotify.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/autorevert.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/tramp.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/progmodes/project.el... Compiling /usr/share/emacs/28.0.50/lisp/progmodes/xref.el... Compiling /usr/share/emacs/28.0.50/lisp/face-remap.el... Compiling /usr/share/emacs/28.0.50/lisp/winner.el... /usr/share/emacs/28.0.50/lisp/winner.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/face-remap.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/progmodes/project.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/progmodes/xref.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/fileloop.el... Compiling /usr/share/emacs/28.0.50/lisp/progmodes/etags.el... /usr/share/emacs/28.0.50/lisp/fileloop.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/progmodes/etags.el: Error: File error Creating file with prefix Compilation finished. Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-bodies.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-util.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-encode.el... /usr/share/emacs/28.0.50/lisp/gnus/mm-encode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/rfc2231.el... /usr/share/emacs/28.0.50/lisp/mail/rfc2231.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/mailabbrev.el... /usr/share/emacs/28.0.50/lisp/mail/mailabbrev.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gmm-utils.el... /usr/share/emacs/28.0.50/lisp/gnus/gmm-utils.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/mailheader.el... /usr/share/emacs/28.0.50/lisp/mail/mailheader.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/rmail.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-decode.el... /usr/share/emacs/28.0.50/lisp/gnus/mm-bodies.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-util.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/mm-decode.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/epg-config.el... /usr/share/emacs/28.0.50/lisp/epg-config.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/mail/rmail.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/epg.el... Compiling /usr/share/emacs/28.0.50/lisp/epa.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/mml-sec.el... /usr/share/emacs/28.0.50/lisp/epa.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mml.el... /usr/share/emacs/28.0.50/lisp/epg.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/rfc822.el... /usr/share/emacs/28.0.50/lisp/mail/rfc822.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/mml-sec.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/puny.el... /usr/share/emacs/28.0.50/lisp/net/puny.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/emacs-lisp/rmc.el... /usr/share/emacs/28.0.50/lisp/emacs-lisp/rmc.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/message.el... Compiling /usr/share/emacs/28.0.50/lisp/hl-line.el... /usr/share/emacs/28.0.50/lisp/hl-line.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/mailcap.el... /usr/share/emacs/28.0.50/lisp/gnus/mml.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/mailcap.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/mail/flow-fill.el... /usr/share/emacs/28.0.50/lisp/mail/flow-fill.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-vars.el... /usr/share/emacs/28.0.50/lisp/url/url-vars.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-parse.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-util.el... /usr/share/emacs/28.0.50/lisp/url/url-parse.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-domsuf.el... /usr/share/emacs/28.0.50/lisp/url/url-domsuf.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-util.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-cookie.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-history.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-methods.el... /usr/share/emacs/28.0.50/lisp/url/url-history.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-cookie.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/message.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-methods.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-expand.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-privacy.el... /usr/share/emacs/28.0.50/lisp/url/url-privacy.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-proxy.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url.el... /usr/share/emacs/28.0.50/lisp/url/url-expand.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-proxy.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/browse-url.el... Compiling /usr/share/emacs/28.0.50/lisp/dom.el... /usr/share/emacs/28.0.50/lisp/dom.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/xml.el... /usr/share/emacs/28.0.50/lisp/xml.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/svg.el... /usr/share/emacs/28.0.50/lisp/net/browse-url.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/svg.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/shr.el... Compiling /usr/share/emacs/28.0.50/lisp/international/kinsoku.el... /usr/share/emacs/28.0.50/lisp/international/kinsoku.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/jka-compr.el... /usr/share/emacs/28.0.50/lisp/jka-compr.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/doc-view.el... Compiling /usr/share/emacs/28.0.50/lisp/mail/rfc2368.el... /usr/share/emacs/28.0.50/lisp/mail/rfc2368.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/ido.el... /usr/share/emacs/28.0.50/lisp/doc-view.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/nnheader.el... /usr/share/emacs/28.0.50/lisp/ido.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus.el... /usr/share/emacs/28.0.50/lisp/net/shr.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-win.el... /usr/share/emacs/28.0.50/lisp/gnus/nnheader.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-range.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus-range.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-int.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus-win.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-spec.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/nnoo.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-spec.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/nnoo.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/netrc.el... Compiling /usr/share/emacs/28.0.50/lisp/international/utf7.el... /usr/share/emacs/28.0.50/lisp/net/netrc.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/international/utf7.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mail-source.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/nnmail.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/nnimap.el... /usr/share/emacs/28.0.50/lisp/gnus/mail-source.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-int.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-cloud.el... /usr/share/emacs/28.0.50/lisp/gnus/nnmail.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/dbus.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-dbus.el... /usr/share/emacs/28.0.50/lisp/gnus/nnimap.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/dbus.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-start.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-undo.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus-dbus.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-group.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus-cloud.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-undo.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-sum.el... Compiling /usr/share/emacs/28.0.50/lisp/net/dig.el... /usr/share/emacs/28.0.50/lisp/net/dig.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/smime.el... /usr/share/emacs/28.0.50/lisp/gnus/smime.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mml-smime.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus-start.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-view.el... /usr/share/emacs/28.0.50/lisp/gnus/mml-smime.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/mm-view.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mml2015.el... /usr/share/emacs/28.0.50/lisp/gnus/gnus-group.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-uu.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-art.el... /usr/share/emacs/28.0.50/lisp/gnus/mml2015.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/notifications.el... /usr/share/emacs/28.0.50/lisp/gnus/mm-uu.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/notifications.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-sum.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-art.el: Error: File error Creating file with prefix Compilation finished. Compiling /usr/share/emacs/28.0.50/lisp/mail/mail-extr.el... /usr/share/emacs/28.0.50/lisp/mail/mail-extr.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/sort.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/gnus-cite.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/smiley.el... /usr/share/emacs/28.0.50/lisp/sort.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/smiley.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/gnus-cite.el: Error: File error Creating file with prefix Compilation finished. Compiling /usr/share/emacs/28.0.50/lisp/mail/qp.el... /usr/share/emacs/28.0.50/lisp/mail/qp.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-cache.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-queue.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-auth.el... Compiling /usr/share/emacs/28.0.50/lisp/gnus/mm-archive.el... /usr/share/emacs/28.0.50/lisp/url/url-auth.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/gnus/mm-archive.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-cache.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-queue.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/nsm.el... Compiling /usr/share/emacs/28.0.50/lisp/url/url-gw.el... /usr/share/emacs/28.0.50/lisp/net/nsm.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/url/url-http.el... Compiling /usr/share/emacs/28.0.50/lisp/net/network-stream.el... /usr/share/emacs/28.0.50/lisp/url/url-gw.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/gnutls.el... /usr/share/emacs/28.0.50/lisp/net/gnutls.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/network-stream.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/url/url-http.el: Error: File error Creating file with prefix Compilation finished. Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-dispatcher.el... /usr/share/emacs/28.0.50/lisp/vc/vc-dispatcher.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/vc/vc.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-rcs.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-cvs.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-svn.el... /usr/share/emacs/28.0.50/lisp/vc/vc-cvs.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/vc-svn.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/vc-rcs.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/vc.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-sccs.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-src.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-bzr.el... /usr/share/emacs/28.0.50/lisp/vc/vc-src.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/vc-sccs.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-git.el... /usr/share/emacs/28.0.50/lisp/vc/vc-bzr.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/vc/diff-mode.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-hg.el... Compiling /usr/share/emacs/28.0.50/lisp/vc/vc-mtn.el... /usr/share/emacs/28.0.50/lisp/vc/vc-git.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/diff-mode.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/vc-mtn.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/vc/vc-hg.el: Error: File error Creating file with prefix Compilation finished. Compiling /usr/share/emacs/28.0.50/lisp/bookmark.el... /usr/share/emacs/28.0.50/lisp/bookmark.el: Error: File error Creating file with prefix Compiling /usr/share/emacs/28.0.50/lisp/net/zeroconf.el... Compiling /usr/share/emacs/28.0.50/lisp/net/tramp-cache.el... Compiling /usr/share/emacs/28.0.50/lisp/net/tramp-gvfs.el... Compiling /usr/share/emacs/28.0.50/lisp/net/tramp-archive.el... /usr/share/emacs/28.0.50/lisp/net/zeroconf.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/tramp-cache.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/tramp-gvfs.el: Error: File error Creating file with prefix /usr/share/emacs/28.0.50/lisp/net/tramp-archive.el: Error: File error Creating file with prefix Compilation finished. [-- Attachment #3: Type: text/plain, Size: 18 bytes --] Thanks, Nick ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-13 12:51 ` No Wayman @ 2021-06-13 13:36 ` Eli Zaretskii 2021-06-14 13:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2021-06-13 13:36 UTC (permalink / raw) To: No Wayman, Andrea Corallo; +Cc: 48978 > From: No Wayman <iarchivedmywholelife@gmail.com> > Cc: 48978@debbugs.gnu.org > Date: Sun, 13 Jun 2021 08:51:09 -0400 > > > What happens if you do the following from the shell prompt: > > > > $ emacs -batch -l comp -f batch-native-compile > > /usr/share/emacs/28.0.50/lisp/progmodes/etags.el > > Here we get the rest of the file-error: > > Debugger entered--Lisp error: (file-error > "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating file > with prefix" "Permission denied" > "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc") > signal(file-error > ("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating > file with prefix" "Permission denied" > "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc")) > comp--native-compile("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el") > batch-native-compile() > command-line-1(("-l" "comp" "-f" "batch-native-compile" > "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el")) > command-line() > normal-top-level() > > Which is obviously a permissions error. > > > Also, is /usr/share/emacs/28.0.50/lisp/progmodes writable by > > your > > user? > > Permissions for the directory are as follows: > > drwxr-xr-x 2 root root 4.0K Jun 13 08:48 > /usr/share/emacs/28.0.50/lisp/progmodes/ > > ^Looks like that's the problem! Yes, that's what I thought was happening. > I'm using an AUR script to install Emacs. > I see now there was a recent change to that script which modifies > the permissions of directories: > > https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=dca21d899ec2b1390526a300c7a617a22165dbda > > Willing to bet that's the cause of the error here. > I'll contact the maintainer of that installation script. > Thanks for the response and sorry for the noise (though, I do > think there may be a bug with the way that file-error is being > reported). It isn't noise: Emacs shouldn't really try creating files in that directory, not when native-compiling in the background. Andrea, this happens because native-compilation calls byte-compilation, which then attempts to create the temporary .elc file in the same directory where the .el file lives. I show the backtrace which leads to this issue below. Do we really need that temporary file for the purposes of native-compilation, or could we disable its creation? If the latter, I think we should, because in general there's no reason to assume the /usr/share tree is writable by unprivileged users. Here's the backtrace I promised: Thread 1 hit Breakpoint 2, Fmake_temp_file_internal (prefix=XIL(0x8000000008cb8990), dir_flag=XIL(0), suffix=XIL(0x8000000005aa61ec), text=XIL(0)) at fileio.c:692 692 CHECK_STRING (prefix); (gdb) pp prefix "d:/gnu/git/emacs/native-comp/lisp/progmodes/etags.elc" (gdb) pp suff suffix suffix_len suffix_p suffixes (gdb) pp suffix "" (gdb) bt #0 Fmake_temp_file_internal (prefix=XIL(0x8000000008cb8990), dir_flag=XIL(0), suffix=XIL(0x8000000005aa61ec), text=XIL(0)) at fileio.c:692 #1 0x7140f8a7 in F6d616b652d74656d702d66696c65_make_temp_file_0 ( par_0=-9223372036742191384, par_1=0, par_2=0, par_3=0) from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\preloaded\files-1e8937b2-855151cb.eln #2 0x012624c7 in funcall_subr (subr=0x5ec187c, numargs=1, args=0x82d6d8) at eval.c:3122 #3 0x01261e51 in Ffuncall (nargs=2, args=0x82d6d0) at eval.c:3039 #4 0x071273ba in F627974652d636f6d70696c652d66696c65_byte_compile_file_0 ( par_0=-9223372036743223960, par_1=0) from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\bytecomp-12882072-407267f8.eln #5 0x0126240c in funcall_subr (subr=0xfe4668, numargs=1, args=0x82d908) at eval.c:3116 #6 0x01261e51 in Ffuncall (nargs=2, args=0x82d900) at eval.c:3039 #7 0x012ce32c in exec_byte_code (bytestr=XIL(0x8000000006abb530), vector=XIL(0xa000000000ff3488), maxdepth=make_fixnum(16), args_template=make_fixnum(257), nargs=1, args=0x82e280) at bytecode.c:632 #8 0x01262996 in fetch_and_exec_byte_code (fun=XIL(0xa000000000ff35f0), syms_left=make_fixnum(257), nargs=1, args=0x82e278) at eval.c:3163 #9 0x01262f13 in funcall_lambda (fun=XIL(0xa000000000ff35f0), nargs=1, arg_vector=0x82e278) at eval.c:3244 #10 0x01261ec1 in Ffuncall (nargs=2, args=0x82e270) at eval.c:3043 #11 0x012603c8 in Fapply (nargs=3, args=0x82e270) at eval.c:2622 #12 0x012622f9 in funcall_subr (subr=0x1732a80 <Sapply>, numargs=3, args=0x82e270) at eval.c:3094 #13 0x01261e51 in Ffuncall (nargs=4, args=0x82e268) at eval.c:3039 #14 0x012ce32c in exec_byte_code (bytestr=XIL(0x8000000005ed74a4), vector=XIL(0xa000000008c00e90), maxdepth=make_fixnum(14), args_template=make_fixnum(385), nargs=1, args=0x82e8b0) at bytecode.c:632 #15 0x01262996 in fetch_and_exec_byte_code (fun=XIL(0xa000000008c0b2f0), syms_left=make_fixnum(385), nargs=1, args=0x82e8a8) at eval.c:3163 #16 0x01262f13 in funcall_lambda (fun=XIL(0xa000000008c0b2f0), nargs=1, arg_vector=0x82e8a8) at eval.c:3244 #17 0x01261ec1 in Ffuncall (nargs=2, args=0x82e8a0) at eval.c:3043 #18 0x06ecfb72 in F636f6d702d7370696c6c2d6c6170_comp_spill_lap_0 ( par_0=-9223372036743223960) from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\comp-7672a6ed-b8d99e2f.eln #19 0x012623dd in funcall_subr (subr=0x8c0b320, numargs=1, args=0x82ead8) at eval.c:3114 #20 0x01261e51 in Ffuncall (nargs=2, args=0x82ead0) at eval.c:3039 #21 0x06f2b5aa in F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0 (par_0=-9223372036743223960, par_1=0, par_2=0) from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\comp-7672a6ed-b8d99e2f.eln #22 0x01262454 in funcall_subr (subr=0x6793e30, numargs=1, args=0x82ed00) at eval.c:3119 #23 0x01261e51 in Ffuncall (nargs=2, args=0x82ecf8) at eval.c:3039 #24 0x06f2cd3d in F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0 () from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\comp-7672a6ed-b8d99e2f.eln #25 0x012623c1 in funcall_subr (subr=0x8c11638, numargs=0, args=0x82efd8) at eval.c:3112 #26 0x01261e51 in Ffuncall (nargs=1, args=0x82efd0) at eval.c:3039 #27 0x06845ee1 in F636f6d6d616e642d6c696e652d31_command_line_1_0 ( par_0=-4611686018316439424) from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\preloaded\startup-bbc6ea72-6a9af975.eln #28 0x012623dd in funcall_subr (subr=0x5efb2ec, numargs=1, args=0x82f3e8) at eval.c:3114 #29 0x01261e51 in Ffuncall (nargs=2, args=0x82f3e0) at eval.c:3039 #30 0x0683b3a1 in F636f6d6d616e642d6c696e65_command_line_0 () from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\preloaded\startup-bbc6ea72-6a9af975.eln #31 0x012623c1 in funcall_subr (subr=0x5e7f38c, numargs=0, args=0x82f638) at eval.c:3112 #32 0x01261e51 in Ffuncall (nargs=1, args=0x82f630) at eval.c:3039 #33 0x0683621d in F6e6f726d616c2d746f702d6c6576656c_normal_top_level_0 () from d:\gnu\git\emacs\native-comp\native-lisp\28.0.50-19bbbe78\preloaded\startup-bbc6ea72-6a9af975.eln #34 0x0125f90f in eval_sub (form=XIL(0xc000000005f5e48c)) at eval.c:2511 #35 0x0125edc3 in Feval (form=XIL(0xc000000005f5e48c), lexical=XIL(0)) at eval.c:2343 #36 0x01164957 in top_level_2 () at keyboard.c:1103 #37 0x0125bde1 in internal_condition_case (bfun=0x1164924 <top_level_2>, handlers=XIL(0x90), hfun=0x11640d5 <cmd_error>) at eval.c:1478 #38 0x011649d1 in top_level_1 (ignore=XIL(0)) at keyboard.c:1111 #39 0x0125ab24 in internal_catch (tag=XIL(0xeee0), func=0x116495d <top_level_1>, arg=XIL(0)) at eval.c:1198 #40 0x01164829 in command_loop () at keyboard.c:1072 #41 0x01163b65 in recursive_edit_1 () at keyboard.c:720 #42 0x01163dd3 in Frecursive_edit () at keyboard.c:789 #43 0x0115f470 in main (argc=7, argv=0xa44140) at emacs.c:2298 Lisp Backtrace: "make-temp-file" (0x82d6d8) "byte-compile-file" (0x82d908) 0xff35f0 PVEC_COMPILED "apply" (0x82e270) "comp-spill-lap-function" (0x82e8a8) "comp-spill-lap" (0x82ead8) "comp--native-compile" (0x82ed00) "batch-native-compile" (0x82efd8) "command-line-1" (0x82f3e8) "command-line" (0x82f638) "normal-top-level" (0x82f728) ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-13 13:36 ` Eli Zaretskii @ 2021-06-14 13:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 13:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-14 13:01 UTC (permalink / raw) To: Eli Zaretskii; +Cc: No Wayman, 48978 Eli Zaretskii <eliz@gnu.org> writes: >> From: No Wayman <iarchivedmywholelife@gmail.com> >> Cc: 48978@debbugs.gnu.org >> Date: Sun, 13 Jun 2021 08:51:09 -0400 >> >> > What happens if you do the following from the shell prompt: >> > >> > $ emacs -batch -l comp -f batch-native-compile >> > /usr/share/emacs/28.0.50/lisp/progmodes/etags.el >> >> Here we get the rest of the file-error: >> >> Debugger entered--Lisp error: (file-error >> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating file >> with prefix" "Permission denied" >> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc") >> signal(file-error >> ("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating >> file with prefix" "Permission denied" >> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc")) >> comp--native-compile("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el") >> batch-native-compile() >> command-line-1(("-l" "comp" "-f" "batch-native-compile" >> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el")) >> command-line() >> normal-top-level() >> >> Which is obviously a permissions error. >> >> > Also, is /usr/share/emacs/28.0.50/lisp/progmodes writable by >> > your >> > user? >> >> Permissions for the directory are as follows: >> >> drwxr-xr-x 2 root root 4.0K Jun 13 08:48 >> /usr/share/emacs/28.0.50/lisp/progmodes/ >> >> ^Looks like that's the problem! > > Yes, that's what I thought was happening. > >> I'm using an AUR script to install Emacs. >> I see now there was a recent change to that script which modifies >> the permissions of directories: >> >> https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=dca21d899ec2b1390526a300c7a617a22165dbda >> >> Willing to bet that's the cause of the error here. >> I'll contact the maintainer of that installation script. >> Thanks for the response and sorry for the noise (though, I do >> think there may be a bug with the way that file-error is being >> reported). > > It isn't noise: Emacs shouldn't really try creating files in that > directory, not when native-compiling in the background. > > Andrea, this happens because native-compilation calls > byte-compilation, which then attempts to create the temporary .elc > file in the same directory where the .el file lives. I show the > backtrace which leads to this issue below. > > Do we really need that temporary file for the purposes of > native-compilation, or could we disable its creation? Agree, I think we can (and should) disable its creation when `byte+native-compile' is non-nil. > If the latter, > I think we should, because in general there's no reason to assume the > /usr/share tree is writable by unprivileged users. Right I pushed dc4ac39b26, it should do the job. Nick could you have a look if the it solves the problem? Thanks Andrea ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-14 13:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-14 13:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 13:23 ` Eli Zaretskii 2021-06-14 16:08 ` Eli Zaretskii 2021-06-14 21:15 ` No Wayman 2 siblings, 1 reply; 11+ messages in thread From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-14 13:04 UTC (permalink / raw) To: 48978; +Cc: eliz, iarchivedmywholelife Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> writes: > Eli Zaretskii <eliz@gnu.org> writes: > >>> From: No Wayman <iarchivedmywholelife@gmail.com> >>> Cc: 48978@debbugs.gnu.org >>> Date: Sun, 13 Jun 2021 08:51:09 -0400 >>> >>> > What happens if you do the following from the shell prompt: >>> > >>> > $ emacs -batch -l comp -f batch-native-compile >>> > /usr/share/emacs/28.0.50/lisp/progmodes/etags.el >>> >>> Here we get the rest of the file-error: >>> >>> Debugger entered--Lisp error: (file-error >>> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating file >>> with prefix" "Permission denied" >>> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc") >>> signal(file-error >>> ("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el" "Creating >>> file with prefix" "Permission denied" >>> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.elc")) >>> comp--native-compile("/usr/share/emacs/28.0.50/lisp/progmodes/etags.el") >>> batch-native-compile() >>> command-line-1(("-l" "comp" "-f" "batch-native-compile" >>> "/usr/share/emacs/28.0.50/lisp/progmodes/etags.el")) >>> command-line() >>> normal-top-level() >>> >>> Which is obviously a permissions error. >>> >>> > Also, is /usr/share/emacs/28.0.50/lisp/progmodes writable by >>> > your >>> > user? >>> >>> Permissions for the directory are as follows: >>> >>> drwxr-xr-x 2 root root 4.0K Jun 13 08:48 >>> /usr/share/emacs/28.0.50/lisp/progmodes/ >>> >>> ^Looks like that's the problem! >> >> Yes, that's what I thought was happening. >> >>> I'm using an AUR script to install Emacs. >>> I see now there was a recent change to that script which modifies >>> the permissions of directories: >>> >>> https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=dca21d899ec2b1390526a300c7a617a22165dbda >>> >>> Willing to bet that's the cause of the error here. >>> I'll contact the maintainer of that installation script. >>> Thanks for the response and sorry for the noise (though, I do >>> think there may be a bug with the way that file-error is being >>> reported). >> >> It isn't noise: Emacs shouldn't really try creating files in that >> directory, not when native-compiling in the background. >> >> Andrea, this happens because native-compilation calls >> byte-compilation, which then attempts to create the temporary .elc >> file in the same directory where the .el file lives. I show the >> backtrace which leads to this issue below. >> >> Do we really need that temporary file for the purposes of >> native-compilation, or could we disable its creation? > > Agree, I think we can (and should) disable its creation when > `byte+native-compile' is non-nil. > >> If the latter, >> I think we should, because in general there's no reason to assume the >> /usr/share tree is writable by unprivileged users. > > Right I pushed dc4ac39b26, it should do the job. Nick could you have a ^^^ 663fb3b774 Wasn't quick enough and had to rebase sorry :) Andrea ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-14 13:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-14 13:23 ` Eli Zaretskii 0 siblings, 0 replies; 11+ messages in thread From: Eli Zaretskii @ 2021-06-14 13:23 UTC (permalink / raw) To: Andrea Corallo; +Cc: iarchivedmywholelife, 48978 > From: Andrea Corallo <akrl@sdf.org> > Cc: Eli Zaretskii <eliz@gnu.org>, No Wayman > <iarchivedmywholelife@gmail.com>, > 48978@debbugs.gnu.org > Date: Mon, 14 Jun 2021 13:04:44 +0000 > > > Right I pushed dc4ac39b26, it should do the job. Nick could you have a > ^^^ > 663fb3b774 > > Wasn't quick enough and had to rebase sorry :) No one is fast enough when Lars is around ;-) ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-14 13:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 13:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-14 16:08 ` Eli Zaretskii 2021-06-15 7:50 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 21:15 ` No Wayman 2 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2021-06-14 16:08 UTC (permalink / raw) To: Andrea Corallo; +Cc: iarchivedmywholelife, 48978 > From: Andrea Corallo <akrl@sdf.org> > Cc: No Wayman <iarchivedmywholelife@gmail.com>, 48978@debbugs.gnu.org > Date: Mon, 14 Jun 2021 13:01:44 +0000 > > > Do we really need that temporary file for the purposes of > > native-compilation, or could we disable its creation? > > Agree, I think we can (and should) disable its creation when > `byte+native-compile' is non-nil. You mean, when `byte+native-compile' is nil, right? > Right I pushed dc4ac39b26, it should do the job. Thanks. ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-14 16:08 ` Eli Zaretskii @ 2021-06-15 7:50 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 0 replies; 11+ messages in thread From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-15 7:50 UTC (permalink / raw) To: Eli Zaretskii; +Cc: iarchivedmywholelife, 48978 Eli Zaretskii <eliz@gnu.org> writes: >> From: Andrea Corallo <akrl@sdf.org> >> Cc: No Wayman <iarchivedmywholelife@gmail.com>, 48978@debbugs.gnu.org >> Date: Mon, 14 Jun 2021 13:01:44 +0000 >> >> > Do we really need that temporary file for the purposes of >> > native-compilation, or could we disable its creation? >> >> Agree, I think we can (and should) disable its creation when >> `byte+native-compile' is non-nil. > > You mean, when `byte+native-compile' is nil, right? Yes sorry. >> Right I pushed dc4ac39b26, it should do the job. > > Thanks. Welcome, thanks Andrea ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-14 13:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 13:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 16:08 ` Eli Zaretskii @ 2021-06-14 21:15 ` No Wayman 2021-06-15 7:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2 siblings, 1 reply; 11+ messages in thread From: No Wayman @ 2021-06-14 21:15 UTC (permalink / raw) To: Andrea Corallo; +Cc: 48978 Andrea Corallo <akrl@sdf.org> writes: > Right I pushed dc4ac39b26, it should do the job. Nick could you > have a > look if the it solves the problem? > > Thanks > > Andrea Rebuilt from current head of master and everything looks like it's working fine. Thanks Andrea and Eli. ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix 2021-06-14 21:15 ` No Wayman @ 2021-06-15 7:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 0 replies; 11+ messages in thread From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-15 7:51 UTC (permalink / raw) To: No Wayman; +Cc: 48978-done, Eli Zaretskii No Wayman <iarchivedmywholelife@gmail.com> writes: > Andrea Corallo <akrl@sdf.org> writes: > >> Right I pushed dc4ac39b26, it should do the job. Nick could you have >> a >> look if the it solves the problem? >> >> Thanks >> >> Andrea > > > Rebuilt from current head of master and everything looks like it's > working fine. > > Thanks Andrea and Eli. Very nice, closing. Thanks for reporting. Andrea ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-06-15 7:51 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-06-12 19:48 bug#48978: 28.0.50; native-comp: Error: File error Creating file with prefix No Wayman 2021-06-13 7:16 ` Eli Zaretskii 2021-06-13 12:51 ` No Wayman 2021-06-13 13:36 ` Eli Zaretskii 2021-06-14 13:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 13:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 13:23 ` Eli Zaretskii 2021-06-14 16:08 ` Eli Zaretskii 2021-06-15 7:50 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-06-14 21:15 ` No Wayman 2021-06-15 7:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
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).