From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bhavin Gandhi Newsgroups: gmane.emacs.bugs Subject: bug#52376: 28.0.90; libdir is missing from native-comp-eln-load-path with GTK3 build Date: Wed, 8 Dec 2021 22:51:14 +0530 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="5243"; mail-complaints-to="usenet@ciao.gmane.io" To: 52376@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 08 18:22:14 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 1mv0dx-000140-UH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 18:22:14 +0100 Original-Received: from localhost ([::1]:50796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv0dw-0000ER-Eh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 12:22:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv0dn-0000Bn-3F for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 12:22:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv0dm-0000c3-PR for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 12:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv0dm-0005F9-5s for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 12:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bhavin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Dec 2021 17:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52376 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.163898411820143 (code B ref -1); Wed, 08 Dec 2021 17:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2021 17:21:58 +0000 Original-Received: from localhost ([127.0.0.1]:41264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv0dh-0005Ep-Ps for submit@debbugs.gnu.org; Wed, 08 Dec 2021 12:21:58 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv0df-0005Eg-GD for submit@debbugs.gnu.org; Wed, 08 Dec 2021 12:21:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv0df-00009J-Ad for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 12:21:55 -0500 Original-Received: from [2607:f8b0:4864:20::b32] (port=33429 helo=mail-yb1-xb32.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv0dc-0000b5-9a for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 12:21:55 -0500 Original-Received: by mail-yb1-xb32.google.com with SMTP id d10so7752251ybn.0 for ; Wed, 08 Dec 2021 09:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=f3ddtEpBmWUQ4lQLFI5ApeXBzgDaLpFEK4JFQfb4sTs=; b=TK00G3L4Q9goJiu3TKueIvOU8UAm+TJnqJB85S44gW+oBTsL2U8pHAQ7llmlHECg1V 7aUE0pCJ6lYgtj4JAN+pnrKJ15bH5JNUKgeLfvAVhdWaFwb1z8UvABKziCsjaHImT0qV fzrP9Ff2QZbdG9VV5SrGb5mffSSgcj7HGIEj3z8ikYwqiQ0GUvH3L4zFBklJ8btPyLMK elm57SFZY/2folAq1fRD56bgY2craT6mdtCIcToZ48wI9y+zF0uLwT0BsyvGUTq+E7v0 /4vsAdnT7q2Q+4fhJYnR9scPBoapdIKdV2Ne7FIifrQxWEZOYMX7Sf7kUKXxqoLm4DqE 7a4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=f3ddtEpBmWUQ4lQLFI5ApeXBzgDaLpFEK4JFQfb4sTs=; b=DoIe/GZTgXKMMxHPHSAPlGHEXx9jAdNCxvJS7/ONLC/Y3h0/H2iw+61W4flRvfK79x AtKlX76EHfjxEQTPatfrOf5bVrbWQU8NBOC7b+iKeagfiHcBmqrZCmIp3FUDK+Dxp5ZQ brIa6i68y9D3vjkO1io6wz5QFZKJjUIohL83dZlaqqnM2NmYy6xzpOICgjQmtuhtn076 0jJBP80phG48tMVpiZMaJs4C24YPb/RwECs2DduABgb7cpcRU2ANv7bm7K7uRuUmBwNk qNoR/u/SuMO3ywOFDG4NYXk9EQljMENcaenQOVGvkF8WbjcBd0+IlkejwB5bVZtxn9MP xcZg== X-Gm-Message-State: AOAM5336Z0DEidF7F7b8eK8WLsQEPxG4zQuNVBNBqRpiDMuIFbZHKvCS PlfH0e8x6YdGoXzRtjTHwiLhV06E1vNMBBzYGyLdAY+i1pQ= X-Google-Smtp-Source: ABdhPJzq8RRJGs83QzuQzLAJfsTTeEa272A7xfezAClhN5mxMuiv1NaBxL406ltjirr8RAa/gMxh7uIJJlPwUq5nApw= X-Received: by 2002:a25:50cf:: with SMTP id e198mr22399ybb.508.1638984110479; Wed, 08 Dec 2021 09:21:50 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b32 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b32; envelope-from=bhavin7392@gmail.com; helo=mail-yb1-xb32.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:221933 Archived-At: I have been trying to build a RPM package for pretest 28.0.90. This process builds three variants, GTK3, Lucid, and No X. When I install and start GTK3 based Emacs with emacs -Q, the value of native-comp-eln-load-path does not have /usr/lib64/emacs/28.0.90/native-lisp/ in it. --8<---------------cut here---------------start------------->8--- native-comp-eln-load-path is a variable defined in =E2=80=98C source code= =E2=80=99. Its value is ("/home/bhavin/.emacs.d/eln-cache/" "/home/bhavin/src/emacs/native-lisp/") --8<---------------cut here---------------end--------------->8--- $ ls -ll /usr/lib64/emacs/28.0.90/native-lisp/28.0.90-619a407c/ total 3080 -rw-r--r--. 1 root root 81216 Dec 8 15:14 autoload-f3599901-fca77eea.eln =E2=80=A6 But in case of other two variants Lucid and the No X, the libdir is there. To isolate the issue I tried following commands with newly extracted pretest tar: --8<---------------cut here---------------start------------->8--- $ ./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=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation $ make -j8 bootstrap $ make -j8 $ sudo make -j8 install --8<---------------cut here---------------end--------------->8--- With this installation, the libdir is detected and loaded as well. I'm not sure where to look and how to debug this issue, I tried looking at the source code to find places where this variable is set, but wasn't able to find any code related to libdir. This might not be a bug, but with my very little knowledge on how Emacs starts and loads things, I have already ran out of things to try out for this problem. This behaviour is consistently reproducible, so I should be able to run commands, give more details, and try any instructions to debug this. All the build steps, above commands are run in separate and new containers. In GNU Emacs 28.0.90 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-12-08 built on toolbox Repository revision: c4a21caf591131351dab4f26adac00541614fb9f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Fedora Linux 35 (Container Image) 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=3Dgtk3 --with-gpm=3Dno --with-xwidgets --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 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv 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 xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 74321 8216) (symbols 48 7850 1) (strings 32 21907 3978) (string-bytes 1 764195) (vectors 16 17728) (vector-slots 8 256054 16638) (floats 8 27 37) (intervals 56 304 0) (buffers 992 12))