From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yasuhiro KIMURA Newsgroups: gmane.emacs.bugs Subject: bug#45287: 28.0.50; byte-compile-file results in error with commit fe50a8b9ba or later on master Date: Thu, 17 Dec 2020 17:20:52 +0900 (JST) Message-ID: <20201217.172052.1479814136117064411.yasu@utahime.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37424"; mail-complaints-to="usenet@ciao.gmane.io" To: 45287@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 09:23:34 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpoZS-0009dJ-21 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 09:23:34 +0100 Original-Received: from localhost ([::1]:60982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpoZQ-00046g-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 03:23:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpoYw-00045T-HA for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpoYw-0005yt-8c for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpoYw-0004Wk-36 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yasuhiro KIMURA Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 08:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45287 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160819334917336 (code B ref -1); Thu, 17 Dec 2020 08:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Dec 2020 08:22:29 +0000 Original-Received: from localhost ([127.0.0.1]:34613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpoYO-0004VX-Uj for submit@debbugs.gnu.org; Thu, 17 Dec 2020 03:22:29 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpoYL-0004VO-W2 for submit@debbugs.gnu.org; Thu, 17 Dec 2020 03:22:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpoYK-0003eZ-K5 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:22:24 -0500 Original-Received: from gate.home.utahime.org ([183.180.29.210]:11537 helo=maybe.home.utahime.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpoYG-0005k1-MV for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:22:24 -0500 Original-Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by maybe.home.utahime.org (Postfix) with ESMTPS id C88EF3EF06; Thu, 17 Dec 2020 17:22:16 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1608193336; bh=kKeWSYlhqmP3uxiaPrNQReFDbMmirzOK61+hM5WQ6dk=; h=Date:To:Subject:From; b=OfykrDWWuXLg5MnpOtxfHFfX+MUnNI6uF2UBqAf/KkAHVeaaK06L1wfSrljfGsiPU FCu9T0gsZnuwN1TJtTsLwYkxzrn5fbEa+pWpiPuCmwBHXRMJMnJ35NJVJH9q3ggHdz QF90rfpC0Q4jMz7zWNiMxmgh41FtBGChP3WeDigi5UiJfPyRflGaaSU9q3XPA2ZdHf 9mdw8/toEhA1IBZMwJvhYdNvKOEdzqZYbXlo7QpW1H0wpQk8kL16D19O95TQb4NNXf +dunH2xKSPGJit0dSTJRuGQKLeHXDNEtexnQe/GQbzA7L+MR1lO5O1F7rad7H93/3H CJDbP8FkquhcQ== Original-Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 995D86502B; Thu, 17 Dec 2020 17:22:15 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at eastasia.home.utahime.org X-Mailer: Mew version 6.8 on Emacs 28.0 Received-SPF: pass client-ip=183.180.29.210; envelope-from=yasu@utahime.org; helo=maybe.home.utahime.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196237 Archived-At: commit fe50a8b9ba Author: Philipp Stephani Date: Sun Dec 13 17:13:50 2020 +0100 Byte compilation: handle case where the output file is a mountpoint. See Bug#44631. While testing for a readonly output directory has slightly different semantics, in practice they should cover cases where Emacs is sandboxed and can only write to the destination file, not its directory. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Handle the case where the output directory is not writable. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--not-writable-directory) (bytecomp-tests--dest-mountpoint): New unit tests. With this commit or later on master, https://github.com/yasuhirokimura/tamago/tree/fix_build_after_the_removal_of_make_coding_system build of this application fails as following. if test "emacs" != "no"; then \ am__dir=. am__subdir_includes=''; \ case cannarpc.elc in */*) \ am__dir=`echo 'cannarpc.elc' | sed 's,/[^/]*$,,'`; \ am__subdir_includes="-L $am__dir -L ./$am__dir"; \ esac; \ test -d "$am__dir" || /usr/bin/mkdir -p "$am__dir" || exit 1; \ emacs --batch \ -q -no-site-file -no-init-file --eval="(setq load-path (append (list (expand-file-name \"..\")) load-path))" --eval="(load \"docomp.el\")" \ $am__subdir_includes -L . -L . \ --eval "(defun byte-compile-dest-file (f) \"cannarpc.elc\")" \ --eval "(unless (byte-compile-file \"cannarpc.el\") (kill-emacs 1))"; \ else :; fi Loading c:/Users/yasu/Work/Emacs/master/tamago/docomp.el (source)... Package cl is deprecated Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-writable-p(nil) byte-compile-file("cannarpc.el") (if (byte-compile-file "cannarpc.el") nil (kill-emacs 1)) (unless (byte-compile-file "cannarpc.el") (kill-emacs 1)) eval((unless (byte-compile-file "cannarpc.el") (kill-emacs 1)) t) command-line-1(("--eval=(setq load-path (append (list (expand-file-..." "--eval=(load \"docomp.el\")" "-L" "." "-L" "." "--eval" "(defun byte-compile-dest-file (f) \"cannarpc.elc\")" "--eval" "(unless (byte-compile-file \"cannarpc.el\") (kill-em...")) command-line() normal-top-level() make[2]: *** [Makefile:315: cannarpc.elc] Error 127 make[2]: Leaving directory '/c/Users/yasu/Work/Emacs/master/tamago/egg' make[1]: *** [Makefile:489: all-recursive] Error 1 make[1]: Leaving directory '/c/Users/yasu/Work/Emacs/master/tamago' make: *** [Makefile:361: all] Error 2 In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) of 2020-12-17 built on ROLLING Repository revision: 51698f77dd6356049fcacdb01ebe80cfe4c67272 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19042.685) Configured using: 'configure --prefix=/c/Emacs-master --without-dbus' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Fundamental Minor modes in effect: magit-auto-revert-mode: t global-git-commit-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: c:/Emacs-master/share/emacs/site-lisp/flim/sasl hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/sasl Features: (shadow pp mew-varsx mew-win32 mew-w3m w3m doc-view jka-compr image-mode exif timezone w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-favicon w3m-image tab-line w3m-proc w3m-util mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars mew-env mew-lang-jp mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs mew-const mew emacsbug sendmail magit-version edmacro kmacro yaml-mode mime-setup mail-mime-setup alist semi-setup advice path-util apel-ver product semi-def rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse url-vars magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient format-spec magit-git magit-section magit-utils crm log-edit easy-mmode message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra help-mode seq byte-opt bytecomp byte-compile cconv cl-seq shell pcomplete comint ansi-color ring server subr-x dash gv cl-loaddefs cl-lib gitignore-mode gitconfig-mode conf-mode rx gitattributes-mode thingatpt easymenu japan-util iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 208066 6100) (symbols 48 22414 33) (strings 32 73731 1940) (string-bytes 1 2181085) (vectors 16 35974) (vector-slots 8 527467 17880) (floats 8 124 187) (intervals 56 574 116) (buffers 984 12))