From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65339: build failure on Android (Termux) Date: Wed, 16 Aug 2023 20:38:39 +0800 Message-ID: <877cpvjh68.fsf@yahoo.com> References: <4722817.cl5Wp8zd50@nimes> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29596"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65339@debbugs.gnu.org To: Bruno Haible Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 16 14:41:00 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 1qWFpa-0007R5-54 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Aug 2023 14:40:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWFo1-0005aW-Ot; Wed, 16 Aug 2023 08:39:21 -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 1qWFnk-0004qa-9i for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 08:39:05 -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 1qWFnk-0001j8-0l for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 08:39:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWFnj-0000eL-1K for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 08:39:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Aug 2023 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65339 X-GNU-PR-Package: emacs Original-Received: via spool by 65339-submit@debbugs.gnu.org id=B65339.16921895392481 (code B ref 65339); Wed, 16 Aug 2023 12:39:02 +0000 Original-Received: (at 65339) by debbugs.gnu.org; 16 Aug 2023 12:38:59 +0000 Original-Received: from localhost ([127.0.0.1]:39496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWFne-0000dx-RZ for submit@debbugs.gnu.org; Wed, 16 Aug 2023 08:38:59 -0400 Original-Received: from sonic315-20.consmr.mail.ne1.yahoo.com ([66.163.190.146]:32787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWFnb-0000dc-0l for 65339@debbugs.gnu.org; Wed, 16 Aug 2023 08:38:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692189528; bh=XTtRVOOmG+DDhkWYFtSEACI4gLzGDhRB6DGRFUPqI6c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=PzT2mLSv7OBAzOUXi6Gyd8vxrPPPy1ui/BSTAvLcXuN+bJiRo3gb6hRa6BuOdRwK+nGUDaeP9SCQiPqS9ZjhAAE+Wdgr3ddSr2sPInxH5GwRAcGNkMUvhZtmxiVPb2BBHou/V7ShVuStgPYiMYN8xwXmB//XEvxaQF2w2BrdX8ROjOeMkMc2p2wtIvn9NKgv8v3xa5suwSpOZ8MWNtdlyFLFZpPJhtp1LP8xG/VI7eAQACPkq4JPFryv37+2xNU7m9HC8w2IxUlqPk3d1KY4P6089DbuX4jOTjjQJNkl9LYQURnIdwves77F00+jPMjYS5hzli5zLSAtuRFi2rRb5w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692189528; bh=pdjJyoEcfJCJ7a0HpWe51nVC9TY8iiXNOmTAwtq2gVO=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Q1MyNFKhEH/tX5Tl0d3ckU7Zk7fJ7gIlRxXcaI22ihfS1f5X7MbzyLG+vFODupF4DyRCo3o2Ol2297UPv7fVowDcEzrnmnIpWbakp8fdn29OLVAesIBB4aRJupeA8GbkRP3X6mAacIHNacpxvJMqszxgJFMTr4THBRWbEVW4Z0chXtNWcJTPCTF1P0RMjeoH8OBLokbZ+Pl+GGwM7litRTrdZJP9AkhGns4HPaYN5Z3lXKbiI9jZJ6FHyLxU6B7UTDrQziEDif0R/cDYEu5D+qvcjGizZDoysNb6z+RpuX0oeHLOfBb8bOgklGwm4l5p5qctXciOENuzXk1NGAsD8A== X-YMail-OSG: ZtC3dbsVM1ku3iawMWBLliTuuF8F6IHs2X1S.yXdTyd_DnzF1PHW8h7_WN0Q7p4 RCa1CjI_nGyjyqAH7_hFYEp9RQHHxvC5qmlKvb.jPZcc7q8fynlkZwoMrARpBZ.kcw6SrMJBIkBn GvSjRZ.G6ybq8.0DlObDhnkchfz6VHjyOZlXt7bBSy3pGKjI2unxPBmw1TePy4MjBGhrDJ53Vh59 QH7qfq4RBBGsNG9ZHGusvOhbdpxI10_GYOzXWDRkwAhv_JzPf_5QbkNJKstCcuDv1BhDsfDcaCgh gps7gLvvZELexgYO.KsW4vNn6bL9VC1B5QQSyP.beRnXVw1Uow13s0qRUYdrco4WueBUGwjALAoV ddBMd7jpfflX.nvadaZfdAuKozGRcV_777JoLAM8.qQW.4AsFGgAdYb5yxTcBiw3wQU_VGXnhob4 cVCDpvgjKLVPfkMmCBGVFc83VShbfjhQhQWtbiOHi.Yyso31UQgPkxHz1tUBMb7AwUFOEVOQoZBs c1yqBU7k2NOWjthHMCMEqJ2GRzj.f6zjfUoVbG.uvdcCRsccQ4FmgC8gCA_PnC2M8u_rTeu5rMCN zw4l9p6GlbLetOypKJ33R6RSoOB.lRCnP5VkRIU9ypX36gjgu89O_FIThtVXBcNO0mxDd.FDDctH MpFMN0LNzVAtC0X_qkdpKMwIaZZWd_kMDCn3uO0hoIeagszvhkcwnI0.zYqsDTektocN34z.a.B5 5I_t92xPAoTSZMwa_qtQs2ziSEvHuyC7YM.rfhQpKsyafpMRGkwbsY_63Du70bDRdD76enf0VaET b6cJIqp78WD9meuthIEY6AqRhH35qnwJwdQ8akYPmu X-Sonic-MF: X-Sonic-ID: e0f9032b-a4f9-48cb-a1f2-38fa0b07dac5 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Wed, 16 Aug 2023 12:38:48 +0000 Original-Received: by hermes--production-sg3-69654d8bd-52vxq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f1fd29abe15e474972603410f7ec2b7a; Wed, 16 Aug 2023 12:38:44 +0000 (UTC) In-Reply-To: <4722817.cl5Wp8zd50@nimes> (Bruno Haible's message of "Wed, 16 Aug 2023 12:25:21 +0200") X-Mailer: WebService/1.1.21732 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:267581 Archived-At: Bruno Haible writes: > 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 This should be fixed now, please test and ack. Thanks.