Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 55052) by debbugs.gnu.org; 21 Apr 2022 05:57:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 21 01:57:11 2022 Received: from localhost ([127.0.0.1]:48148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nhPoV-0006Ch-B4 for submit <at> debbugs.gnu.org; Thu, 21 Apr 2022 01:57:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1nhPoL-0006C0-4x for 55052 <at> debbugs.gnu.org; Thu, 21 Apr 2022 01:57:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1nhPoE-0001sV-7F; Thu, 21 Apr 2022 01:56:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=16TEJrqzJud1kElIjNgPk69IIShXVmpttN+Gkiv+GTQ=; b=jHac2GZmgg4P737pBiVA wQTHR3sVe2L2oXG+/2/s3fGYG6vKoyGkm6JCmhSjJgpjOn+r5KkDvtMrsH5rof/jOWK7stFwk5VwF dj3GyBduhPZ7Cimv9amkB72xLwYelKsDpDb/QzamKz3K8UmVTMTM5MmpGKfpr0ooCv1HRF2HpbrMg 9mCjqZ0wfHxNSj92Kz+ehsO4Ur4e4+kWNoEG/VcBjQeglREji0rQWI1f06p/25gb37QcDyQ3wDpnC Cj2T+JahFbY/whWXvrBFNYz9FXO/4ZMEpSpLOKNop+1JY9bGJsv+ykFaWtN6KUgjltdIwx9eblw2i sAQSVfUImtE3uA==; Received: from [87.69.77.57] (port=1426 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1nhPoC-0000AK-9W; Thu, 21 Apr 2022 01:56:53 -0400 Date: Thu, 21 Apr 2022 08:56:48 +0300 Message-Id: <837d7jrnbz.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Ken Raeburn <raeburn@HIDDEN> In-Reply-To: <87o80vgllz.fsf@HIDDEN> (message from Ken Raeburn on Wed, 20 Apr 2022 23:29:28 -0400) Subject: Re: bug#55052: 28.0.92; confusing/wrong warning-error message from native comp References: <87o80vgllz.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55052 Cc: 55052 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Ken Raeburn <raeburn@HIDDEN> > Date: Wed, 20 Apr 2022 23:29:28 -0400 > > > I restarted emacs and got this message in a *Warnings* buffer: > > Warning (comp): /home/raeburn/elisp/kr-irc.el: Error: File is missing Cannot open load file > > First, there’s the obvious confusion between “warning” and “error” here. It isn't a confusion. The "error" part came from the subprocess that tried to natively-compile the file: for that process, this was a fatal error. The "warning" part came from the foreground session which launched the subprocess; for that session, this is merely a warning, because it is still functional, it just will use the .elc or the .el version of the package. > Obviously, the bug at the root of this was mine, and easily fixed now > that I know it. These are the usual reasons for problems in native-compilation which don't seem to exist when you byte-compile the file in your customized Emacs session: the native-compilation is done in a separate process that starts pristine and doesn't load your init files, so any such implicitly assumed loaded features cause errors and warnings. > But the error messages given were misleading if not outright wrong, > and the structure of the code makes it a struggle to debug it. I agree that it is hard to debug these problems, and would welcome any changes to make that easier. As a simple but important improvement, how about a variable that would cause the subprocess emit much more detailed information about the problem? > In GNU Emacs 28.0.92 (build 1, x86_64-redhat-linux-gnu, X toolkit, cairo version 1.17.4, Xaw3d scroll bars) > of 2022-03-20 built on 5bed50ec23174a34b43f6166b598ee0b Please switch to the official Emacs 28.1, instead of running a pretest. Thanks.
bug-gnu-emacs@HIDDEN
:bug#55052
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 21 Apr 2022 03:29:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 20 23:29:42 2022 Received: from localhost ([127.0.0.1]:48052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nhNVm-0001lC-7v for submit <at> debbugs.gnu.org; Wed, 20 Apr 2022 23:29:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:53102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raeburn@HIDDEN>) id 1nhNVj-0001l1-Vw for submit <at> debbugs.gnu.org; Wed, 20 Apr 2022 23:29:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <raeburn@HIDDEN>) id 1nhNVj-0004VP-QI for bug-gnu-emacs@HIDDEN; Wed, 20 Apr 2022 23:29:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <raeburn@HIDDEN>) id 1nhNVf-0006VA-O3 for bug-gnu-emacs@HIDDEN; Wed, 20 Apr 2022 23:29:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650511773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Gl7VGyn9Ui+Ijov2WjKJOxHgeesGyb6DMGQoSZSgyA=; b=Z5O2K5TsHnD8SDPiaF0mqYdB0Eqsk4bF9JMOigh+AAdqWLMQ01KPBBGUTZMvhKIlLlh3uW rcQI70TJU5ZyF1pNWpGx+9FP3PH7NQZviL1XukqnmT+OeHJrhs1B5HKFLr/rBNlZzgunT2 mgd+NCSjMRuItGnhmf8nTo303zw9i28= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-568-5xfOxzCNNoWidYj6lFlJYw-1; Wed, 20 Apr 2022 23:29:32 -0400 X-MC-Unique: 5xfOxzCNNoWidYj6lFlJYw-1 Received: by mail-qt1-f198.google.com with SMTP id cj27-20020a05622a259b00b002f334b76068so2256711qtb.4 for <bug-gnu-emacs@HIDDEN>; Wed, 20 Apr 2022 20:29:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FovD+XPec2xBJjX8qZwkAE2iAm4M2430Uwk+1KIyOdE=; b=fQWcmYj+2DPmGdY+h5dFdMvDrubzNyCSr7iVW81W3SgL96HRdMyLoUrVtPSzW7CUaC FTbP4xrMG48qng9rwthO1sIBgNNXiXm40djpzM/IzcenFAAr1HOTPiucyRwP/Q+I9Gl2 WazERzQK+F6UCATrWqQyxA1UD2TaXUoa9Cbm1vuRkGlmOdDrgLZPc1R76XliDSnQZb6T F4/6FBzzhdP2R/WkPLQ5XYNO/e2Imj3PB0PCdxJDdrA9gqjYJWUZtCvInv7/VpMoYFUD emDKsZ+zpj4xBjMJAmMW/4f46YfDYCc7bUm+qGbcPs7JB71wwFqHMO/MXh6VeaCawoEh YQsw== X-Gm-Message-State: AOAM533rOglwAY1Tzn7j6NbZX3zNMxy/gIbp9ZddjAk65QF0kJMgMOyD PcHiGbl+hMSgYQ1vWAgNGhGOJvCbM0NAa97E78obwkN+b3jpx1E8A6iR0OO0hH3KbadxjQGSxSX hN18RBQJIvSB3IjY= X-Received: by 2002:ad4:5f8f:0:b0:446:6ded:336c with SMTP id jp15-20020ad45f8f000000b004466ded336cmr9770589qvb.49.1650511771668; Wed, 20 Apr 2022 20:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv9XgrseJZI0dPYdetQMiIXhlUo0OmItgtWPxTRMEO6Y0VDUD7ebefyfE/p1qx+hWZ6EWJ5w== X-Received: by 2002:ad4:5f8f:0:b0:446:6ded:336c with SMTP id jp15-20020ad45f8f000000b004466ded336cmr9770584qvb.49.1650511771364; Wed, 20 Apr 2022 20:29:31 -0700 (PDT) Received: from crash (c-24-60-138-149.hsd1.ma.comcast.net. [24.60.138.149]) by smtp.gmail.com with ESMTPSA id k189-20020a3788c6000000b0069c10860b10sm2300572qkd.107.2022.04.20.20.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 20:29:30 -0700 (PDT) From: Ken Raeburn <raeburn@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 28.0.92; confusing/wrong warning-error message from native comp Date: Wed, 20 Apr 2022 23:29:28 -0400 Message-ID: <87o80vgllz.fsf@HIDDEN> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=raeburn@HIDDEN X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.133.124; envelope-from=raeburn@HIDDEN; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) I restarted emacs and got this message in a *Warnings* buffer: Warning (comp): /home/raeburn/elisp/kr-irc.el: Error: File is missing Canno= t open load file First, there=E2=80=99s the obvious confusion between =E2=80=9Cwarning=E2=80= =9D and =E2=80=9Cerror=E2=80=9D here. Second, the named file most certainly does exist. It=E2=80=99s one I set t= o eval-after-load when rcirc is run. If I try M-x load-library RET kr-irc RET, the message appears again. I can invoke (native-compile ...) with the full pathname, and that seems to work; I get a .eln pathname back as the return value, and after that, load-library doesn=E2=80=99t complain. If I delete the named .eln file, th= e load-library complaints come back. I tried deleting the whole eln-cache tree to see what would happen. The .eln files for everything I installed from ELPA/MELPA got rebuilt fine, with a few minor warnings, but kr-irc.el triggered the warning-error again. I was initially suspicious that compiling files from my ~/elisp directory might be a problem somehow, but it seems that .eln files were regenerated for three other files without problems. The code in comp-run-async-workers does a pretty good job of packaging up all the compilation work into one function with no easy way to instrument any of it, but after applying some before-advice to make-process to pull out the subprocess command and the temporary filename, and copy the file to look at, I was able to run the subprocess command directly. Unfortunately, it gave no more helpful messages, but at least I was then dealing with the process that actually got the error. I could then run it under strace, and found my problem: A =E2=80=9Crequire=E2=80=9D of a library that isn=E2=80=99t in the load-path,= but was explicitly loaded by my init file. My init code does (load-library "smart-quotes/smart-quotes") during startup, but kr-irc.el has (require 'smart-quotes) and the smart-quotes directory isn=E2=80=99t in my load-path. Obviously, the bug at the root of this was mine, and easily fixed now that I know it. But the error messages given were misleading if not outright wrong, and the structure of the code makes it a struggle to debug it. In GNU Emacs 28.0.92 (build 1, x86_64-redhat-linux-gnu, X toolkit, cairo ve= rsion 1.17.4, Xaw3d scroll bars) of 2022-03-20 built on 5bed50ec23174a34b43f6166b598ee0b Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Fedora Linux 35 (Workstation Edition) Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dlucid --with-gpm=3Dno --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX 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 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: rcirc-track-minor-mode: t display-time-mode: t desktop-save-mode: t global-edit-server-edit-mode: t which-function-mode: t icomplete-mode: t shell-dirtrack-mode: t global-hi-lock-mode: t hi-lock-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /home/raeburn/.emacs.d/elpa/systemtap-mode-20151122.1940/systemtap-mode hid= es /usr/share/emacs/site-lisp/systemtap-mode /home/raeburn/.emacs.d/elpa/p4-20150721.1937/p4 hides /usr/share/emacs/site= -lisp/perforce/p4 /home/raeburn/.emacs.d/elpa/transient-20211101.2251/transient hides /usr/sh= are/emacs/28.0.92/lisp/transient Features: (shadow sort mail-extr cl-print ielm pp emacsbug sendmail mule-util jka-compr misearch multi-isearch add-log ob-shell rcirc gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr wid-edit time desktop frameset cus-load kr-init docker-tramp tramp-cache vagrant-tramp dash tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time ls-lisp org-protocol org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date ol org-keys oc org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs edit-server advice smart-quotes easy-mmode which-func imenu icomplete server term disp-table shell pcomplete ehelp comint ansi-color ring hi-lock comp comp-cstr warnings cl-extra help-mode finder-inf rx info 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 auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax 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 emoji-zwj 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 326951 25999) (symbols 48 23700 0) (strings 32 88713 10549) (string-bytes 1 3032841) (vectors 16 44055) (vector-slots 8 757424 25820) (floats 8 333 44) (intervals 56 6816 318) (buffers 992 20))
Ken Raeburn <raeburn@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#55052
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.