From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48743: 28.0.50; batch-native-compile should produce .elc files as well Date: Sun, 30 May 2021 06:57:54 -0700 (PDT) Message-ID: <20210530135754.DE34AC2054B@raman-glaptop.localdomain> Reply-To: "T.V Raman" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34037"; mail-complaints-to="usenet@ciao.gmane.io" To: 48743@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 30 15:59:17 2021 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 1lnLyG-0008iE-UV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 15:59:17 +0200 Original-Received: from localhost ([::1]:33312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnLyG-0008J7-0o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 09:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnLy2-0008Fd-QK for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 09:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnLy2-0007uu-II for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnLy2-0005GL-Gh for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "T.V Raman" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48743 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.162238308520141 (code B ref -1); Sun, 30 May 2021 13:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 May 2021 13:58:05 +0000 Original-Received: from localhost ([127.0.0.1]:60125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnLx6-0005En-TX for submit@debbugs.gnu.org; Sun, 30 May 2021 09:58:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnLx4-0005Ec-GT for submit@debbugs.gnu.org; Sun, 30 May 2021 09:58:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnLx4-0008DX-7v for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 09:58:02 -0400 Original-Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:39903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnLx1-0007O0-C2 for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 09:58:01 -0400 Original-Received: by mail-pg1-x52d.google.com with SMTP id v14so6353060pgi.6 for ; Sun, 30 May 2021 06:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:subject:mime-version:content-transfer-encoding:message-id :date; bh=02SaMkXnD/NgGQPlwRh5pOjoqyBFQrmY7WMlN2+7xtg=; b=YtbBPNjIYPyVQs82FzMhUewgosCsXGnqgIk5MfUS4pWvWJBB6mvEg3sq+R11BWRCDq nZi+B5Pi5Sp552sKybnrEPL8Bc8NbFgz2SWPax/ykS0D+RcsdYi4WJsHAwt2KZv9q6/m 7gayA+PSTH4RssrkMOURCzh25foaxLZDkD9S/JRnSLulfqYyuN58BdGvi+hPeQ3R5Zd/ d+87rD6RQKNSaOp+lBzn5d0MCrleJ6F8vbxbnTZnQbUuj3jvxeA5j21GBZKRiZ2jLjkD dHpu6oKsJJh0nxz//tfmwvOP8kGfJ7/gz5TJwg1AQtPKevYn34Ze29YPfjy8PO/13qaW T+uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:mime-version :content-transfer-encoding:message-id:date; bh=02SaMkXnD/NgGQPlwRh5pOjoqyBFQrmY7WMlN2+7xtg=; b=gUiCNclJopAWjhpRcbRFWyJboZH2+7jIJhiYWtazris9c0+sR0ZSnwuBPp/G2o+rEf ZMW28wgna8uK8GfYbnQsjch1P2gUODoZvV8OyJy/rZo3q0Tl+l/HgIEvhJ+vMs5bOx5P 6q+js3AOtZUrJMofbiXwkM5Nkz11jFgTRsIlA7agoDkzY/Z5hs4CB2zoCgvVbxEhn2Ve d8orUdVOntme4TB9vf4ZL+S7eISa5BFpOyl0kLKuJ2d/vzKJrNtkiDUpC0LCBmErQlmL IkuiArcZ6NxioIIQz2hB/DMUqOIwkM4OEte0XSzJ5oVR0D/faD+6NAl5iXvkuDA0daRL 0Z9g== X-Gm-Message-State: AOAM533YqYO+665m4FUj8c47YXkxkPtjE/hKzQkVU9c7/pEUAXtbXDQv 5xsInFexNK71jn6rHxRefc+LgCDuPPuu2Xh9 X-Google-Smtp-Source: ABdhPJyo/k4FWrUOnHyHcRFCH8bFplxu3UO7c2cGFJQADmKJLfQ/l82aDwzV2j8wJjdkTlgNs/zPJw== X-Received: by 2002:a63:6343:: with SMTP id x64mr3050942pgb.130.1622383076884; Sun, 30 May 2021 06:57:56 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id s11sm8859277pfm.95.2021.05.30.06.57.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 May 2021 06:57:56 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id DE34AC2054B; Sun, 30 May 2021 06:57:54 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=raman@google.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:207619 Archived-At: 1. Large packages that span multiple files can have build-order dependencies e.g. files containing macros need to be built and loaded when compiling the rest of the package. 2. At present, jitted .eln files appear to be compiled from the .el files, and that misses these dependencies, leading to spurious warnings, and possibly incorrect behavior. 3. Attempting to fix this by using -f batch-native-compile fails in one and possibly two ways: A. If the Makefile defines its build rules using .elc and .el suffixes, then one needs to first remove the .elc files before running make in order to generate the .eln files. These .eln files end up in .emacs.d/eln-cache; B. however if one then rebuilds the .elc files, those are now newer than the .eln files, which means the .eln files get jitted anyway. That jit run of course produces all the afore-mentioned problems. Suggestion: have batch-native-compile generate both .eln and .elc files -- or alternatively, have the jit compiler generate the .eln files from .elc files if the .elc files are newer. The latter solution would be nice since it isolates package developers from having to think about native compilation, and differences between .eln and .elc files with respect to warnings and behavior. --Raman In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-05-29 built on raman-glaptop Repository revision: f163b9f426c6bd0bec87c0985bca4f838b9eee89 Repository branch: native-emacs Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux rodete Configured using: 'configure --enable-silent-rules --without-xwidgets --with-mailutils --without-compress-install --with-native-compilation --program-prefix=native- LDFLAGS=-O3 'CPPFLAGS=-Ofast '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: recentf-mode: t dired-omit-mode: t dirtrack-procfs-mode: t savehist-mode: t save-place-mode: t psession-mode: t psession-autosave-mode: t midnight-mode: t magit-wip-initial-backup-mode: t magit-wip-before-change-mode: t magit-wip-after-apply-mode: t magit-wip-after-save-mode: t magit-wip-mode: t global-git-commit-mode: t ido-ubiquitous-mode: t flx-ido-mode: t ido-everywhere: t display-time-mode: t disable-mouse-global-mode: t company-statistics-mode: t company-prescient-mode: t prescient-persist-mode: t cl-font-lock-built-in-mode: t auto-correct-mode: t global-voice-lock-mode: t voice-lock-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/raman/emacs/lisp/emacspeak/lisp/tapestry hides /home/raman/emacs/lisp/site-lisp/vm/lisp/tapestry /home/raman/.emacs.d/elpa/lispy-20210121.926/elpa hides /home/raman/.emacs.d/elpa/ivy-20210518.1815/elpa /home/raman/.emacs.d/elpa/transient-20210525.1141/transient hides /home/raman/sourceforge/native-emacs/lisp/transient /home/raman/emacs/lisp/emacspeak/lisp/tetris hides /home/raman/sourceforge/native-emacs/lisp/play/tetris Features: (shadow mailalias emacsbug shr-color mm-archive mule-util hl-line finder-inf emacspeak-paradox paradox ...) Memory information: ((conses 16 3018329 1355737) (symbols 48 72873 30) (strings 32 378570 157451) (string-bytes 1 15281924) (vectors 16 191362) (vector-slots 8 5234800 796305) (floats 8 2349 1254) (intervals 56 284641 71727) (buffers 992 45)) -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮 -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮