From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.emacs.bugs Subject: bug#65339: build failure on Android (Termux) Date: Wed, 16 Aug 2023 12:25:21 +0200 Message-ID: <4722817.cl5Wp8zd50@nimes> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19958"; mail-complaints-to="usenet@ciao.gmane.io" To: 65339@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 16 12:27:43 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 1qWDkb-0004y4-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Aug 2023 12:27:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWDk1-0001W2-NN; Wed, 16 Aug 2023 06:27: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 1qWDjy-0001Vc-IO for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 06:27:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWDjy-0004AQ-AH for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 06:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWDjy-00088N-3v for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 06:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bruno Haible Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Aug 2023 10:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65339 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.169218158131219 (code B ref -1); Wed, 16 Aug 2023 10:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Aug 2023 10:26:21 +0000 Original-Received: from localhost ([127.0.0.1]:38913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWDjJ-00087T-1N for submit@debbugs.gnu.org; Wed, 16 Aug 2023 06:26:21 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:58530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWDjG-00087G-8a for submit@debbugs.gnu.org; Wed, 16 Aug 2023 06:26:19 -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 1qWDim-0000xM-Od for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 06:25:49 -0400 Original-Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.219]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWDiO-0003VY-Tz for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 06:25:28 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1692181521; cv=none; d=strato.com; s=strato-dkim-0002; b=Io8aAGABU1ILcdgQ1NyQOhq+QQ39k0NW/faTHq8542VdqHXukbm2GwczR9QM3pt8yH x6ACngFl1atMynOV1ZVvpaGkp+/iYve36ZpQVhZMS2FvkxZ69eTCmKQ8i22g/SMNo8Ld H547P54aZ9z+OP41Kzml3GmhHyGWTGDo2SOWgJik7NAUsHxJk1q1Nkia3CkrGI0KKwrg pxuk2oWCCcolhn4T+LoZRxpI6akRGc4pFC7b5kr5BxRxbDKizH71PsvGaKfSvyz6SHpw 2yiODRTZ77iVjU1iKKTKnP5Aqqo+jv3oRnzZUEgh3f+vT7UBox0Htyoh51QLLZ0jDfNW yMqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1692181521; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=K7rLfoxWNZdauJ4SRiCXJS/yII4Iu4Du06LWKEPYaTc=; b=LLxE/a/kjq3M7bdywGmH/H6JKtyYsKLW8bzAvycYKDMzZzbrv98/nJGvuXsWwIBt3w XvYXUhcDZWASjlAnMrceqlKYHnbpMh31S01nr6B6LgnHIzxqwKe5rtqgXoWkCFqPN4V3 hh8hZ1lML1PKxNlsQC4GgLX3I9CtqoF4NjUEoCoOPyFkA+YEWm9vdPHgQ58KZa2c2/HU B4akfApJJLAPe+fAmvrwgwaOTCscvg4eqBZuteBJyE6Sso9oh7j4xR531FzgerZL9Nym X5yMI2tAD4OeJESq1c945+eSsc6wLaDPF0GizcUwBHNNpfrikO8S6eqcP+Jtdjw4+4mL 9nYg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1692181521; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=K7rLfoxWNZdauJ4SRiCXJS/yII4Iu4Du06LWKEPYaTc=; b=UAWt4YV/hiMHrGbM2Ic0QHYTPwT53JtgwvSt9VkRQE/4iNvkgJa1ZmDyCbui3yIY/b SW0E1fmZFcBO3AyYzreg285BYkqCIBpxoQJIxFcQdhkanOrVADThcUGuToVlxnz//NPl ua0PgPUgUOAm9EtlZehqA5u0dZaDZWDTcK9DCljkoiREh4sBSaubMzP5DlujQcg+JxM0 MRHAY1TfyC8yYesxg8U1wkFrMR6HSpy1/VYAdUGh84wzqelkv5j5+nBmfF2cb2BG97e4 Lor0pkT2I4dttoi/lYIFkP6c3B+QbFlpScvXZVvHwseIX95UxhQLUVlpQsABzqv9XWkB RkAw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1692181521; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=K7rLfoxWNZdauJ4SRiCXJS/yII4Iu4Du06LWKEPYaTc=; b=/So6Zf7JtM5hMf5Rwa82fTNi53Hj6cgm1wWWbFU2gGZNStmzV+qgnydFD3Gz/+U4Oq Vjcq2sN74MgppCSArkDQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpPD1KDxnGxb4/wjRQtDCidPpMcxog==" Original-Received: from nimes.localnet by smtp.strato.de (RZmta 49.8.0 AUTH) with ESMTPSA id Vd691cz7GAPL4HG (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 16 Aug 2023 12:25:21 +0200 (CEST) Received-SPF: none client-ip=81.169.146.219; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267567 Archived-At: After working around bug#65319, the build of Emacs in the Termux app on Android 11 fails like this: $ make ... cp -f temacs bootstrap-emacs rm -f bootstrap-emacs.pdmp ./temacs --batch -l loadup --temacs=pbootstrap \ --bin-dest /usr/local/bin/ --eln-dest /usr/local/lib/emacs/30.0.50/ Loading loadup.el (source)... Dump mode: pbootstrap Using load-path (/data/data/com.termux/files/home/emacs/lisp /data/data/com.termux/files/home/emacs/lisp/emacs-lisp /data/data/com.termux/files/home/emacs/lisp/progmodes /data/data/com.termux/files/home/emacs/lisp/language /data/data/com.termux/files/home/emacs/lisp/international /data/data/com.termux/files/home/emacs/lisp/textmodes /data/data/com.termux/files/home/emacs/lisp/vc) Loading emacs-lisp/debug-early (source)... Loading emacs-lisp/byte-run (source)... Loading emacs-lisp/backquote (source)... Loading subr (source)... Loading keymap (source)... Loading version (source)... Loading widget (source)... Loading custom (source)... Loading emacs-lisp/map-ynp (source)... Loading international/mule (source)... Loading international/mule-conf (source)... Loading env (source)... Loading format (source)... Loading bindings (source)... Loading window (source)... Loading /data/data/com.termux/files/home/emacs/lisp/files.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/macroexp.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/pcase.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/macroexp.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/cus-face.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/faces.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/ldefs-boot.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/button.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/cl-preloaded.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/oclosure.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/obarray.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/abbrev.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/help.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/jka-cmpr-hook.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/epa-hook.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/mule-cmds.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/case-table.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/characters.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/charscript.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/emoji-zwj.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/composite.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/chinese.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/cyrillic.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/indian.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/sinhala.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/english.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/ethiopic.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/european.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/czech.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/slovak.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/romanian.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/greek.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/hebrew.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/cp51932.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/eucjp-ms.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/japanese.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/korean.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/lao.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/tai-viet.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/thai.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/tibetan.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/vietnamese.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/misc-lang.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/utf-8-lang.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/georgian.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/khmer.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/burmese.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/cham.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/philippine.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/language/indonesian.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/indent.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/cl-generic.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/simple.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/seq.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/nadvice.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/minibuffer.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/frame.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/startup.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/term/tty-colors.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/font-core.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/syntax.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/font-lock.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/jit-lock.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/mouse.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/select.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/timer.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/easymenu.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/isearch.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/rfn-eshadow.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/menu-bar.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/tab-bar.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/lisp.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/textmodes/page.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/register.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/textmodes/paragraphs.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/progmodes/prog-mode.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/lisp-mode.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/textmodes/text-mode.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/textmodes/fill.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/newcomment.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/replace.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/tabulated-list.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/buff-menu.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/touch-screen.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/progmodes/elisp-mode.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/float-sup.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/vc/vc-hooks.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/vc/ediff-hook.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/uniquify.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/electric.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/paren.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/shorthands.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/eldoc.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/cconv.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/cus-start.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/tooltip.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/international/iso-transl.el (source)... Loading /data/data/com.termux/files/home/emacs/lisp/emacs-lisp/rmc.el (source)... Finding pointers to doc strings... Finding pointers to doc strings...done Dumping under the name bootstrap-emacs.pdmp Dumping fingerprint: 9d1f04d2a4bf5bdeb7c24c37906b24b3cbe2fa79fdbdcaed721520df25d33edb Dump complete Byte counts: header=100 hot=7809180 discardable=70896 cold=10881816 Reloc counts: hot=1082237 discardable=4753 fdsan: attempted to close file descriptor 2, expected to be unowned, actually owned by FILE* 0xb678438c make[2]: *** [Makefile:1012: bootstrap-emacs.pdmp] Aborted make[2]: *** Deleting file 'bootstrap-emacs.pdmp' make[2]: Leaving directory '/data/data/com.termux/files/home/emacs/src' make[1]: *** [Makefile:554: src] Error 2 make[1]: Leaving directory '/data/data/com.termux/files/home/emacs' make[1]: Entering directory '/data/data/com.termux/files/home/emacs' *** *** "make all" failed with exit status 2. The line "fdsan: attempted to close file descriptor 2, expected to be unowned" is apparently emitted by Android's "file descriptor sanitizer". There's a discussion of this message here: https://github.com/termux/termux-packages/issues/6592 and a workaround patch has been posted here: https://github.com/termux/termux-packages/blob/master/packages/emacs/disable-fdsan.patch With this workaround patch, the build gets much further: It produces a working 'src/emacs' executable. Would it be possible to - either change Emacs' FILE / dirfd handling so that it no longer produces this fdsan alert, - or include the workaround patch in Emacs upstream? Bruno