From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tom Gillespie Newsgroups: gmane.emacs.bugs Subject: bug#42664: feature/native-comp; cc-defs.el: c-lang-const Symbol's function definition is void: cc-bytecomp-is-compiling Date: Sat, 1 Aug 2020 19:51:44 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31694"; mail-complaints-to="usenet@ciao.gmane.io" To: 42664@debbugs.gnu.org, akrl@sdf.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 02 08:07:12 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 1k279L-00085v-CV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Aug 2020 08:07:11 +0200 Original-Received: from localhost ([::1]:40046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k279K-0005cv-FC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Aug 2020 02:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k279C-0005ce-VF for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 02:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k279C-0001lT-MK for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 02:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k279C-0006pX-I6 for bug-gnu-emacs@gnu.org; Sun, 02 Aug 2020 02:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Gillespie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Aug 2020 06:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42664 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, akrl@sdf.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159634840826217 (code B ref -1); Sun, 02 Aug 2020 06:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2020 06:06:48 +0000 Original-Received: from localhost ([127.0.0.1]:41469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k278v-0006ok-Hy for submit@debbugs.gnu.org; Sun, 02 Aug 2020 02:06:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k246T-0003iK-Kt for submit@debbugs.gnu.org; Sat, 01 Aug 2020 22:52:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k246T-0006Bk-Cd for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 22:52:01 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:50239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k246Q-0005q6-LC for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 22:52:01 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id c80so11492852wme.0 for ; Sat, 01 Aug 2020 19:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YuiG4QPYIZom7VcZQ0Cmg7NQ6W1aFa0ERfVWvLT99z4=; b=ffB4WmvCLbVxbOhPE3k2ZJ3u86er+zAeobd+QKJmmTSNmf7WPxWHX5ra7FZheBylUZ KrpgrLJOFJTaPV28e0gcv/Va+WpIf/Mouxzaad7AspADKMrbqKwASN1u5/LX3dAtt4st LDsAA8eA64fjLOZo41qnE1oK77PH2GB8lq0f95ENFU6yLVlqA7HN6++QuvZfz6I39TuJ XjG6hR44wYpJ/zq9AiokxpVI/D/gRep55BxqYLN76PXGJwFuhiWcFmuST1LsR5/kr+Pt 95Log/Usvr4SfL4WfQyr/Pta47APwTvKWdi2mJSFPhn+V/+I4ofX92NB3O+4Ba5UBOVv L33w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YuiG4QPYIZom7VcZQ0Cmg7NQ6W1aFa0ERfVWvLT99z4=; b=cN0/levy4UVQEe1g2t+hs4X66wVZStWzdHCyBkgjswqx/FCPswxd3m/SKrGPcYXfVC aFif2Ca0+1GbMX1HextzE3pUmzvIwWkYBo+Sx+ZdSAeiQa+QMpc10O9qTViTgo9Ap9c8 lx5WIdX11YT450vUQ1lhbcFUsxVMp3iwB6dFLE6EE90HHNFLkxXotCLAklWHaIR5PzTG oLkGm9SSxuXS1NL/r0K0Mw/kiTwhoG8i30lcr5pRXq7ILeGQo8slHcaO6JesCAGgAsRP t1tQkT5KluvmtxQjSer1fIuNMWetbmNgSc6vNQ29IZt8k8p1ww0XcUWTwXPI7NhCHPMa jOJA== X-Gm-Message-State: AOAM530/o0HpROqY+BbPWkIMNE4vQK/GjHNKuzu8qdbpN6sXH9YhiVGt VyvQf7f7zR2HviweXhJI6YjFh1EnHya3f2/27rNqIRz6 X-Google-Smtp-Source: ABdhPJxNjICaxQFPJeGuPzFlJ3wqgc9ayrvtVsu/fyztyZ9Z13Tg4yagqGNjpPO+z9DLSxmnzHc3AqnX9dTZPXq/Qnw= X-Received: by 2002:a1c:7918:: with SMTP id l24mr9605867wme.132.1596336715295; Sat, 01 Aug 2020 19:51:55 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x32e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 02 Aug 2020 02:06:44 -0400 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:183810 Archived-At: When trying to byte compile on 28.0.50 on the feature/native-comp branch at 7a161dc688f0eeee64e307a55efbc7d11bab3627 I encountered the following error message: Symbol's function definition is void: cc-bytecomp-is-compiling. This is not an issue on master at 9f01ce6327af886f26399924a9aadf16cdd4fd9f. To repro run the following. #+begin_src bash emacs -q -batch --no-site-file --eval '(progn (with-temp-buffer (insert "(c-lang-const c-matchers-1 c)") (write-file "oh-no.el")) (require '"'"'cc-defs) (byte-compile-file "oh-no.el"))' #+end_src Or in emacs launched with =emacs -q --no-site-file= run =M-x ielm= and then #+begin_src ielm (with-temp-buffer (insert "(c-lang-const c-matchers-1 c)") (write-file "oh-no.el")) (require 'cc-defs) (byte-compile-file "oh-no.el") #+end_src Testing against master on in the emacs git repo via the following produces no error. ./autogen.sh ./configure make -j 8 src/emacs -q -batch --no-site-file --load lisp/progmodes/cc-defs.el --load lisp/progmodes/cc-fonts.el --eval '(progn (with-temp-buffer (insert "(c-lang-const c-matchers-1 c)") (write-file "oh-no.el")) (require '"'"'cc-defs) (byte-compile-file "oh-no.el"))' The output of git diff 9f01ce6327af886f26399924a9aadf16cdd4fd9f 7a161dc688f0eeee64e307a55efbc7d11bab3627 -- lisp/progmodes suggests that something similarly strange may be going on in this case. report-emacs-bug output below ======================= In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2020-08-01 built on localhost Repository revision: 7a161dc688f0eeee64e307a55efbc7d11bab3627 Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Gentoo/Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Saving file /home/tom/oh-no.el... Wrote /home/tom/oh-no.el Mark set [2 times] Compiling /home/tom/oh-no.el... goto-history-element: Beginning of history; no preceding item [2 times] Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-28.0.9999-r1 --htmldir=/usr/share/doc/emacs-28.0.9999-r1/html --libdir=/usr/lib64 --program-suffix=-emacs-28-vcs --includedir=/usr/include/emacs-28-vcs --infodir=/usr/share/info/emacs-28-vcs --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-dumping=pdumper --with-file-notification=inotify --enable-acl --without-dbus --with-modules --without-gameuser --with-libgmp --without-gpm --with-json --without-kerberos --without-kerberos5 --without-lcms2 --with-xml2 --without-mailutils --with-nativecomp --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --without-rsvg --with-tiff --with-xpm --without-imagemagick --with-xft --without-cairo --with-harfbuzz --without-libotf --without-m17n-flt --with-x-toolkit=lucid --with-xaw3d 'CFLAGS=-march=core-avx2 -O2 -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: XAW3D XPM JPEG TIFF GIF PNG SOUND NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB LUCID X11 XDBE XIM MODULES NATIVE_COMP THREADS JSON PDUMPER Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /usr/share/emacs/site-lisp/cjk-latex/thai-word hides /usr/share/emacs/28.0.50/lisp/language/thai-word Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils warnings compile bytecomp byte-compile cconv cc-defs cl-loaddefs cl-lib cl-print ielm easymenu pp comint ansi-color ring tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 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 loaddefs button faces cus-face pcase macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 69211 5782) (symbols 48 6976 0) (strings 32 18809 2705) (string-bytes 1 632345) (vectors 16 10953) (vector-slots 8 220874 7738) (floats 8 28 31) (intervals 56 395 0) (buffers 992 15))