From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Newsgroups: gmane.emacs.help Subject: Re: Build failure caused by a .tit file Date: Tue, 18 Apr 2017 02:08:34 +0300 Message-ID: <87a87ebpjh.fsf@gkayaalp.com> References: <87pogbb06p.fsf@gkayaalp.com> <83efwrdrej.fsf@gnu.org> <87lgqzav0t.fsf@gkayaalp.com> <838tmzdmym.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1492470553 29320 195.159.176.226 (17 Apr 2017 23:09:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2017 23:09:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 18 01:09:09 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0Fla-0007T0-DC for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Apr 2017 01:09:06 +0200 Original-Received: from localhost ([::1]:39101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0Flg-0003m4-Al for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Apr 2017 19:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0FlG-0003lM-8Q for help-gnu-emacs@gnu.org; Mon, 17 Apr 2017 19:08:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0FlF-0005by-3U for help-gnu-emacs@gnu.org; Mon, 17 Apr 2017 19:08:46 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:35136) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0FlB-0005a6-4n; Mon, 17 Apr 2017 19:08:41 -0400 Original-Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id A73EAD04; Tue, 18 Apr 2017 01:08:37 +0200 (CEST) Original-Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id C185FA80C2; Tue, 18 Apr 2017 01:08:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter18-d.gandi.net Original-Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id mM8tJrA_XatW; Tue, 18 Apr 2017 01:08:36 +0200 (CEST) X-Originating-IP: 46.2.17.92 Original-Received: from xi.xi (unknown [46.2.17.92]) (Authenticated sender: self@gkayaalp.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EE377A80CF; Tue, 18 Apr 2017 01:08:35 +0200 (CEST) In-Reply-To: <838tmzdmym.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Apr 2017 19:21:21 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112799 Archived-At: On 2017-04-17 19:21 +0300, Eli Zaretskii wrote: >> From: G=C3=B6ktu=C4=9F Kayaalp >> Cc: help-gnu-emacs@gnu.org >> Date: Mon, 17 Apr 2017 18:55:30 +0300 >>=20 >> > This error message comes from this snippet in titdic-cnv.el: >> > >> > ;; Decode the buffer contents from the encoding specified by a >> > ;; value of the key "ENCODE:". >> > (if (not (search-forward "\nBEGIN" nil t)) >> > (error "TIT dictionary doesn't have body part")) >> > >> > Is it really true that CCDOSPY.tit you have has no line that begins >> > with "BEGIN"? Otherwise, why doesn't the search-forward call succeed? >>=20 >> The line 55-57 reads >>=20 >> # the following line must not be removed >> BEGINDICTIONARY >> # >>=20 >> and manually running >>=20 >> M-: (search-forward "\nBEGIN" nil t) >>=20 >> returns 1850. The snippet you've included when run via M-:, works as >> expected, i.e., no errors, moves to line 56, after first =E2=80=98N=E2= =80=99. > > So if you manually invoke titdic-convert on CCDOSPY.tit, it does work? > And you do all this in the same Emacs binary, probably called > bootstrap-emacs, which runs the failing command during the build? I've run this commands from an instance of Emacs 25.1, not from the version that I'm trying to build from the repo. bootstrap-emacs aborts with =E2=80=98Fatal error 6=E2=80=99 when I run it, dumping a backtrace and= core. I=E2=80=99ve both tried to run it normally and with the command line src/bootstrap-emacs -file leim/CXTERM-DIC/CCDOSPY.tit -eval '(titdic-conver= t)' same results. I also tried using titdic-convert with my usual emacs instance (25.1), which successfully created a =E2=80=98CCDOSPY.el=E2=80=99 = file in the current directory. Find below the backtrace I get from bootstrap-emacs: ,---- | Fatal error 6: Aborted | Backtrace: | src/bootstrap-emacs[0x50d4c9] | src/bootstrap-emacs[0x4f3f37] | src/bootstrap-emacs[0x50d573] | src/bootstrap-emacs[0x4aa614] | src/bootstrap-emacs[0x4ae45f] | src/bootstrap-emacs[0x441985] | src/bootstrap-emacs[0x452de6] | src/bootstrap-emacs[0x426b07] | src/bootstrap-emacs[0x5680ac] | src/bootstrap-emacs[0x56842d] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x56b9a6] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x56b7ed] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x568475] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x568885] | src/bootstrap-emacs[0x567b50] | src/bootstrap-emacs[0x567ef2] | src/bootstrap-emacs[0x56842d] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x56b9a6] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x56b53d] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x568885] | src/bootstrap-emacs[0x567b50] | src/bootstrap-emacs[0x567ef2] | src/bootstrap-emacs[0x56842d] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x568885] | src/bootstrap-emacs[0x568acb] | src/bootstrap-emacs[0x56a72c] | src/bootstrap-emacs[0x568b56] | src/bootstrap-emacs[0x5a20f3] | src/bootstrap-emacs[0x567b50] | src/bootstrap-emacs[0x567ef2] | src/bootstrap-emacs[0x56b7ed] | src/bootstrap-emacs[0x5681a0] | src/bootstrap-emacs[0x56aff6] | ... | Aborted (core dumped) `---- --gk.