From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 29 18:50:49 2021 Received: (at submit) by debbugs.gnu.org; 29 Aug 2021 22:50:49 +0000 Received: from localhost ([127.0.0.1]:57668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKTdV-0001wS-5Y for submit@debbugs.gnu.org; Sun, 29 Aug 2021 18:50:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:47856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKTdP-0001wF-Hh for submit@debbugs.gnu.org; Sun, 29 Aug 2021 18:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKTdP-0008Vq-7B for bug-gnu-emacs@gnu.org; Sun, 29 Aug 2021 18:50:39 -0400 Received: from gate.home.utahime.org ([183.180.29.210]:10244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKTdJ-0007zx-Sn for bug-gnu-emacs@gnu.org; Sun, 29 Aug 2021 18:50:38 -0400 Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by gate.home.utahime.org (Postfix) with ESMTPS id 6E63EC918; Mon, 30 Aug 2021 07:50:27 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1630277427; bh=6xDpFK0xhzqcc1og38XpnJGOE8lBGOnoIycC5FXQIBk=; h=Date:To:Subject:From; b=uXJvLF/wK/dX6MamurBIHOyKK2PuqdX4xWjwTcQ10WfS+d9HJ5hCgMABIL35kgjlq /ZwDEI8jPT2CeGeA3UoNKF07as7IWK8dFLtqGAeYWPqqryudojd8c5ygUvVpCNu2gk gJRdTKqnAxaTK/ypLrmtbG8YObafeQs3VALzgQvTzqnzlHvFcTdQdfDpBks5LeNi4C GtrJWa7pTHkTNFc/WfcfS5B0YivlXuvgY1LhqhcIgY1xERtcj2sdGn6WzyUsCrnqfB rxV5Ku2q+dviocZWzVJrjft/osxOkxXZ+rgsZUhsNklqeoUJ8h1fqY6ExobBd9rHnM LN1kELjO26fdQ== Received: from localhost (rolling-vm-freebsd2.home.utahime.org [192.168.174.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 3C53B324EF; Mon, 30 Aug 2021 07:50:26 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.0-rc2 at eastasia.home.utahime.org Date: Mon, 30 Aug 2021 07:48:02 +0900 (JST) Message-Id: <20210830.074802.1773005143426938265.yasu@utahime.org> To: bug-gnu-emacs@gnu.org Subject: 28.0.50; `./configure --native-compilation` fails on FreeBSD if 'porttools' is installed From: Yasuhiro Kimura X-Mailer: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=183.180.29.210; envelope-from=yasu@utahime.org; helo=gate.home.utahime.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) There is an port/package named 'porttools' in FreeBSD Ports/Packages Collections. it includes shell script named `port`, and if it is installed, `./configure --native-compilation` fails as following. ---------------------------------------------------------------------- checking for getpagesize... (cached) yes checking for working mmap... (cached) yes checking for main in -lXbsd... no checking for pthread library... -lpthread checking for thread support... yes checking for getaddrinfo_a in -lanl... no checking for gnutls >= 2.12.2... yes checking for jansson >= 2.7... yes checking for libkqueue... no checking for library containing kqueue... none required checking for library containing inflateEnd... -lz checking for dlopen... (cached) yes checking for dladdr... yes checking for dlfunc... yes usage: dirname string [...] usage: dirname string [...] checking for gcc_jit_context_acquire in -lgccjit... no configure: error: ELisp native compiler was requested, but libgccjit was not found. ---------------------------------------------------------------------- I checked configure.ac and found following lines. ---------------------------------------------------------------------- # Check MacPorts on macOS. AC_PATH_PROG(HAVE_MACPORTS, port) ---------------------------------------------------------------------- It means that configure script regards that OS is macOS and MacPorts is installed if it finds `port` command in you PATH. As I wrote above 'porttools' package installs shell script named `port`. So if you execute configure script on FreeBSD system that 'porttools' package is installed, then it misinterprets thet OS is macOS and fails to detect libgccjit. In fact configure script works fine if this line is commented out. According to my study about MacPorts, 1. MacPorts only works with macOS 2. If MacPort is installed, `port` command is used to interact with MacPorts. So configure script should work as is expected even if the above lines are chanaged as following. ---------------------------------------------------------------------- # Check MacPorts on macOS. if test $opsys = darwin; then AC_PATH_PROG(HAVE_MACPORTS, port) fi ---------------------------------------------------------------------- And it also prevents `port` command installed in non-macOS system from being misdetected as the evidence that OS is macOS. In GNU Emacs 28.0.50 (build 1, amd64-portbld-freebsd13.0) Repository revision: 3572613 Repository branch: master System Description: 13.0-RELEASE-p4 Configured using: 'configure --disable-build-details --localstatedir=/var --without-libsystemd --without-selinux --with-sound=no --with-x-toolkit=no --without-cairo --without-dbus --without-gconf --without-gif --without-gsettings --without-imagemagick --without-jpeg --without-lcms2 --without-libotf --without-m17n-flt --without-png --without-rsvg --without-tiff --without-toolkit-scroll-bars --without-x --without-xim --without-xpm --without-xwidgets --enable-acl --without-cairo --without-dbus --without-gconf --without-gif --with-gnutls --without-gsettings --without-harfbuzz --without-jpeg --with-json --with-file-notification=kqueue --without-lcms2 --without-m17n-flt --without-imagemagick --without-mailutils --with-modules --with-native-compilation --without-libotf --without-png --without-toolkit-scroll-bars --without-rsvg --with-threads --without-tiff --without-xft --without-xim --with-xml2 --without-xpm --without-xwidgets --with-x-toolkit=no --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/emacs/info/ --build=amd64-portbld-freebsd13.0 'CFLAGS=-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing ' 'CPPFLAGS=-isystem /usr/local/include' 'LDFLAGS= -L/usr/local/lib/gcc11 -fstack-protector-strong -L/usr/local/lib '' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER THREADS XIM ZLIB Important settings: value of $LANG: ja_JP.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /usr/local/share/emacs/28.0.50/site-lisp/transient hides /usr/local/share/emacs/28.0.50/lisp/transient /home/yasu/share/emacs/lisp/ruby-mode hides /usr/local/share/emacs/28.0.50/lisp/progmodes/ruby-mode /usr/local/share/emacs/28.0.50/site-lisp/flim/sasl hides /usr/local/share/emacs/28.0.50/lisp/net/sasl Features: (shadow pp mew-varsx mew-unix mew-w3m w3m doc-view image-mode exif timezone w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-favicon w3m-image tab-line w3m-proc w3m-util mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars mew-env mew-lang-jp mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs mew-const mew emacsbug sendmail eieio-opt speedbar ezimage image dframe find-func shortdoc help-fns radix-tree pcase term/screen term/xterm xterm jka-compr magit-version yaml-mode tmux mime-setup mail-mime-setup alist semi-setup path-util apel-ver product semi-def rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode facemenu dom nxml-util nxml-enc xmltok edmacro kmacro forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist gnutls forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml parse-time iso8601 bug-reference forge-post markdown-mode color noutline outline forge-repo forge forge-core forge-db closql emacsql-sqlite advice emacsql emacsql-compiler url-http url-auth url-gw nsm magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit 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 url-vars magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit easy-mmode message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete comint ring server ansi-color magit-mode transient comp regexp-opt comp-cstr warnings cl-extra help-mode tool-bar format-spec magit-git magit-section cl-seq magit-utils crm subr-x seq eieio byte-opt bytecomp byte-compile cconv eieio-core cl-macs gv eieio-loaddefs dash gitignore-mode gitconfig-mode conf-mode rx gitattributes-mode thingatpt cl-loaddefs cl-lib japan-util iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select 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 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 kqueue multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 306358 12198) (symbols 48 26684 51) (strings 32 90103 9469) (string-bytes 1 2684385) (vectors 16 52613) (vector-slots 8 987918 20994) (floats 8 315 115) (intervals 56 400 0) (buffers 992 14)) From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 29 19:21:16 2021 Received: (at 50259) by debbugs.gnu.org; 29 Aug 2021 23:21:16 +0000 Received: from localhost ([127.0.0.1]:57720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKU6x-0002kl-Pw for submit@debbugs.gnu.org; Sun, 29 Aug 2021 19:21:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKU6s-0002ji-CA for 50259@debbugs.gnu.org; Sun, 29 Aug 2021 19:21:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nbKun1QsD2Q62tuflABZ/A29fxMxbvR9J4ma/+hYeh8=; b=Sr9gx98S1hOvoPFWB9lmS9lBXA PD38jILlbKBG3yTkz/9jgbRihAq0P3J3XmIj4I5W3GGHxSmZxzitD+xqZ5vgbZcRsE4ezh40AhPuO OQOFP6UYhm3qYEbcdDZZg+zz6RPNVNV5VNO7MZblsJswA98RDvJLhMLePvbn7olLop70=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKU6h-0005Nx-G9; Mon, 30 Aug 2021 01:20:59 +0200 From: Lars Ingebrigtsen To: Yasuhiro Kimura Subject: Re: bug#50259: 28.0.50; `./configure --native-compilation` fails on FreeBSD if 'porttools' is installed References: <20210830.074802.1773005143426938265.yasu@utahime.org> Date: Mon, 30 Aug 2021 01:20:55 +0200 In-Reply-To: <20210830.074802.1773005143426938265.yasu@utahime.org> (Yasuhiro Kimura's message of "Mon, 30 Aug 2021 07:48:02 +0900 (JST)") Message-ID: <874kb7bzxk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yasuhiro Kimura writes: > So configure script should work as is expected even if the above lines > are chanaged as following. > > > # Check MacPorts on m [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50259 Cc: 50259@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Yasuhiro Kimura writes: > So configure script should work as is expected even if the above lines > are chanaged as following. > > ---------------------------------------------------------------------- > # Check MacPorts on macOS. > if test $opsys = darwin; then > AC_PATH_PROG(HAVE_MACPORTS, port) > fi > ---------------------------------------------------------------------- I've now done this on the trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 29 19:21:22 2021 Received: (at control) by debbugs.gnu.org; 29 Aug 2021 23:21:22 +0000 Received: from localhost ([127.0.0.1]:57723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKU74-0002l6-7P for submit@debbugs.gnu.org; Sun, 29 Aug 2021 19:21:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKU6z-0002ka-FW for control@debbugs.gnu.org; Sun, 29 Aug 2021 19:21:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Hdj117T9gE27hX6knt5HZQe3GZjSEWE6ysHiUfvbuas=; b=kcgV3g5QugBX1+BHoPqBs5eQqj GBBDNMOr+s20jGSFsscmlJQD8aHyR7zSnWZGk55Qrm/tBb7tG3ZMoLFLKME9+u+IeTyGiVhem22DW vw2gg6V7U/RySUlAwMCPWNVT91+VPMQKoru4jxeTiAIf7EoCBFcuseBx0y0JC562oS4w=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKU6r-0005OB-9o for control@debbugs.gnu.org; Mon, 30 Aug 2021 01:21:07 +0200 Date: Mon, 30 Aug 2021 01:21:04 +0200 Message-Id: <8735qrbzxb.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #50259 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 50259 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 50259 28.1 quit From unknown Wed Aug 20 01:21:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 27 Sep 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator