From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vitaly Ankh Newsgroups: gmane.emacs.bugs Subject: bug#63681: build error from native-comp: void function ("emacs-lisp/package.el" package-desc-p) Date: Wed, 24 May 2023 16:37:25 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2074"; mail-complaints-to="usenet@ciao.gmane.io" To: 63681@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 24 13:55:21 2023 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 1q1n5N-0000Jw-Cs for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 May 2023 13:55:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1n57-0002ch-GY; Wed, 24 May 2023 07:55:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1n55-0002cX-To for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 07:55:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1n55-0001dW-KQ for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 07:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1n55-0002Du-98 for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 07:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vitaly Ankh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 May 2023 11:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63681 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.16849292728489 (code B ref -1); Wed, 24 May 2023 11:55:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2023 11:54:32 +0000 Original-Received: from localhost ([127.0.0.1]:42396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1n4Z-0002Cr-EO for submit@debbugs.gnu.org; Wed, 24 May 2023 07:54:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1k06-0007rk-4D for submit@debbugs.gnu.org; Wed, 24 May 2023 04:37:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1k05-0003kD-QB for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 04:37:41 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1k03-00009n-V2 for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 04:37:41 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-64d3fbb8c1cso630311b3a.3 for ; Wed, 24 May 2023 01:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684917457; x=1687509457; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MbIan5da3/bVfmSSF9ecex4ip/jiwJgIjKo9KAqtBLI=; b=BHouw4iBOZ9IoXG0I2Gziw4fpOGyYT9mDr7CVVqr2MmkO9cjPaLyHhGASJzAR+jCgi tzwd6tjB3WLmEMmflVBUeD9gORt8bt2IL+3jg3gYujLauSO2XQ7L+isnGnbTWBpgqG30 x35C7mJzYf27KVOfz1S8u3Z9rUIp7N/he+fzaDrmJTGGJ/BvA7KdxJ0XZqBxaxP6hkTH A/mkQOdTEScyeogLN1FrNe/YH3iOk8A1tX6+/qJv5Sqyh2f5n088HNbJ01CewCR+04HH mHnqGOa6OZulQPpyWHBZxzqGop5VJEVpt+sOKObhD8J0gau4soiG6dDRYlZlKeGgKiJP ySUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684917457; x=1687509457; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MbIan5da3/bVfmSSF9ecex4ip/jiwJgIjKo9KAqtBLI=; b=TPMfpfAi6QRy0aICWiN4oOO3brtoze9F6+ZLmmc/deRp2aAScu4XLqGIFZEc4LYnoG l9SYYobBt8YzYS+lPml0r6HZGeU6YIga8VAVbIh7nx2J+bYrO1Qk0zA6Ke2ZhoyTTYQ9 MwZcBwn6rScPQsE3F+ydgXGdOJcKf3DIV72/4DU8LrpJhiRcWiuPfPnMHHhJJeZ4d5mI oJgZN0r1Y7tuGgoXEZPR/FuXrArlgkjvUyMlCdxpXRyUpPR8v0QJuraa3qJT+F7UM5EP 163/1UoH7sAsZl+1ZuzHzHCZtLdDT14C2Fp1ucWQwdyoLvbr477bLDSGO8mSfybM9uGU hZeQ== X-Gm-Message-State: AC+VfDyBMlZqpe6RptyoeDyn8vK6l9ydh8qHFm/Bao66PfyP494o+MQt UKxs1015OurhDWAemOtQRjFL8CifGhB7g/wLlErk/043IgiflinS X-Google-Smtp-Source: ACHHUZ5Bnus0cDSgq14K8IqnEtFldaBvPNZIISSkQqETCYQoZMuyD7JKJGxEpKOwc/A9DiPupUpMXXrR7CsdObuqlck= X-Received: by 2002:a17:903:22cd:b0:1a6:71b1:a0b9 with SMTP id y13-20020a17090322cd00b001a671b1a0b9mr19950385plg.47.1684917457416; Wed, 24 May 2023 01:37:37 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=vitalyankh@gmail.com; helo=mail-pf1-x430.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 24 May 2023 07:54:30 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262289 Archived-At: Hi emacs, With the latest emacs lisp native compiler change (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D92ccb6ba83076a40f= 3bfc7906913346a5b3a7a92 and subsequent commits), there is a build error: ``` Error: void-function ("emacs-lisp/package.el" package-desc-p) mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (void-function "emacs-lisp/package.el" package-desc-p)) signal(void-function ("emacs-lisp/package.el" package-desc-p)) comp--native-compile("emacs-lisp/package.el") batch-native-compile() batch-byte+native-compile() command-line-1(("--eval" "(setq load-prefer-newer t byte-compile-warnings 'all)" "--eval" "(setq org--inhibit-version-check t)" "-l" "comp" "-f" "batch-byte+native-compile" "emacs-lisp/package.el")) command-line() normal-top-level() Symbol=E2=80=99s function definition is void: "emacs-lisp/package.el", pack= age-desc-p ``` I built Emacs master branch with the latest commit (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D9ad997cd68981fe6c= 6933b6977fdae23e84e6a75), enabled native-comp, on Linux. Repository branch: master System Description: Arch Linux Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:games --with-modules --without-libotf --without-m17n-flt --without-gconf --without-gsettings --enable-link-time-optimization --with-native-compilation --with-pgtk --without-xaw3d --with-sound=3Dalsa --with-xwidgets --without-compress-install '--program-transform-name=3Ds/\([ec]tags\)/\1.emacs/' 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -fuse-ld=3Dg= old' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' VitalyR