From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: repost of 'make bootstrap' problem (was: make bootstrap fails from fresh CVS checkout) Date: Mon, 31 Dec 2007 14:57:35 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86r6h2vayo.fsf_-_@lifelogs.com> References: <87ir3wodst.fsf@lifelogs.com> <86lk8fs4r1.fsf@lifelogs.com> <86fxy580db.fsf_-_@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199136604 21367 80.91.229.12 (31 Dec 2007 21:30:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Dec 2007 21:30:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 31 22:30:17 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J9SD9-00019J-Ri for ged-emacs-devel@m.gmane.org; Mon, 31 Dec 2007 22:30:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9SCo-00060T-15 for ged-emacs-devel@m.gmane.org; Mon, 31 Dec 2007 16:29:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9SCj-0005xM-T0 for emacs-devel@gnu.org; Mon, 31 Dec 2007 16:29:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9SCj-0005wX-71 for emacs-devel@gnu.org; Mon, 31 Dec 2007 16:29:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9SCj-0005wP-1z for emacs-devel@gnu.org; Mon, 31 Dec 2007 16:29:49 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9SCi-0001R5-5t for emacs-devel@gnu.org; Mon, 31 Dec 2007 16:29:48 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J9Rtk-0005zg-7x for emacs-devel@gnu.org; Mon, 31 Dec 2007 21:10:12 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Dec 2007 21:10:12 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Dec 2007 21:10:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 79 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:Ex5O9sl1pmn4zgN4hhwAOU1c1Vo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85761 Archived-At: Reposting, also see message IDs <86lk8fs4r1.fsf@lifelogs.com> and <87ir3wodst.fsf@lifelogs.com> for the original reports with full error logs but this should be enough. The error thrown is in the fileio.c test I reference below. I am top-posting since the below is just a log of my reports, not a discussion. Ted On Fri, 14 Dec 2007 14:52:48 -0600 Ted Zlatanov wrote: TZ> Further investigation: TZ> I traced the error to fileio.c:3867: TZ> if (XINT (end) != st.st_size TZ> || ((int) st.st_size * 4) / 4 != st.st_size) TZ> /* extra parameters added by me */ TZ> error ("Maximum buffer size exceeded: XINT(end)=%d, st.st_size=%d", XINT(end), st.st_size); TZ> This shows that XINT(end) and st.st_size are both 0, by the way. This TZ> agrees with my observation (see the original message) that no data is TZ> read from the file that's being loaded before the maximum buffer size is TZ> exceeded. TZ> If I comment out that check, the compilation proceeds until: TZ> Dumping under names emacs and emacs-23.0.50 TZ> emacs: Can't allocate buffer for /home/tzz/source/emacs/src/temacs TZ> in unexelf.c, line 721. I can't avoid that error so I'm unable to build Emacs. TZ> This is under GCC 4.1.3 on Ubuntu: TZ> Using built-in specs. TZ> Target: i486-linux-gnu TZ> Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu TZ> Thread model: posix TZ> gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) TZ> I also tried GCC 3.4 with the same result, in case the 4.1.3 prerelease TZ> was a problem. The error was exactly the same. TZ> It's been almost a month since I reported this problem; I'd love to TZ> figure out the cause. Is anyone willing to help? My C knowledge is TZ> insufficient to figure out what's happening. TZ> Ted TZ> On Fri, 30 Nov 2007 17:17:06 -0600 Ted Zlatanov wrote: TZ> Is this known to be broken, or am I missing something obvious? TZ> I am surprised a `make bootstrap' failure is happening on Ubuntu, but TZ> even if the problem is not with Emacs itself, it certainly looks like it TZ> (or a library interaction triggered by load-with-code-conversion) from TZ> my investigation. TZ> On Tue, 20 Nov 2007 14:35:46 -0600 Ted Zlatanov wrote: TZ> The full log follows. This is with a clean CVS checkout on a new TZ> Ubuntu 7.10 install. TZ> After looking at loadup.el, I see the problem starts with the lines: TZ> (setq load-source-file-function 'load-with-code-conversion) TZ> (load "files") TZ> when I remove the load-source-file-function setq, the files.el code is TZ> loaded fine. The bootstrap fails later at international/utf-8.el TZ> because it can't read a ? character, but if I have the setq the next TZ> Lisp library loaded causes the buffer size error. TZ> In addition, strace of the temacs process shows that no data is read() TZ> from the .el file. The error happens *before* which to me indicates TZ> this is not a problem with the Lisp code. I checked it anyhow, and TZ> it's a clean checkout from CVS without corruption. I suspect it's an TZ> error at the C level but I don't know enough about the bootstrap TZ> process to debug this. TZ> I searched older discussions and didn't see this. Sorry if it's an TZ> obvious problem.