From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: make bootstrap fails from fresh CVS checkout (was: GNU/Linux (Ubuntu 7.10) bootstrap from a CVS checkout fails ("Maximum buffer size exceeded"))
Date: Fri, 14 Dec 2007 14:52:48 -0600 [thread overview]
Message-ID: <86fxy580db.fsf_-_@lifelogs.com> (raw)
In-Reply-To: 86lk8fs4r1.fsf@lifelogs.com
Further investigation:
I traced the error to fileio.c:3867:
if (XINT (end) != st.st_size
|| ((int) st.st_size * 4) / 4 != st.st_size)
/* extra parameters added by me */
error ("Maximum buffer size exceeded: XINT(end)=%d, st.st_size=%d", XINT(end), st.st_size);
This shows that XINT(end) and st.st_size are both 0, by the way. This
agrees with my observation (see the original message) that no data is
read from the file that's being loaded before the maximum buffer size is
exceeded.
If I comment out that check, the compilation proceeds until:
Dumping under names emacs and emacs-23.0.50
emacs: Can't allocate buffer for /home/tzz/source/emacs/src/temacs
in unexelf.c, line 721. I can't avoid that error so I'm unable to build Emacs.
This is under GCC 4.1.3 on Ubuntu:
Using built-in specs.
Target: i486-linux-gnu
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
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
I also tried GCC 3.4 with the same result, in case the 4.1.3 prerelease
was a problem. The error was exactly the same.
It's been almost a month since I reported this problem; I'd love to
figure out the cause. Is anyone willing to help? My C knowledge is
insufficient to figure out what's happening.
Ted
On Fri, 30 Nov 2007 17:17:06 -0600 Ted Zlatanov <tzz@lifelogs.com> 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 <tzz@lifelogs.com> 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.
next prev parent reply other threads:[~2007-12-14 20:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-20 20:35 GNU/Linux (Ubuntu 7.10) bootstrap from a CVS checkout fails ("Maximum buffer size exceeded") Ted Zlatanov
2007-11-30 23:17 ` Ted Zlatanov
2007-12-14 20:52 ` Ted Zlatanov [this message]
2007-12-31 18:17 ` where to report bootstrap bugs? (was: make bootstrap fails from fresh CVS checkout) Ted Zlatanov
2007-12-31 20:45 ` Eli Zaretskii
2007-12-31 21:14 ` where to report bootstrap bugs? Michael Albinus
2007-12-31 21:29 ` Ted Zlatanov
2007-12-31 22:15 ` Dan Nicolaescu
2008-01-02 13:30 ` Ted Zlatanov
2008-01-02 13:52 ` Andreas Schwab
2008-01-02 16:42 ` Ted Zlatanov
2008-01-02 17:42 ` Dan Nicolaescu
2008-01-01 3:18 ` where to report bootstrap bugs? (was: make bootstrap fails from fresh CVS checkout) Richard Stallman
2007-12-31 20:57 ` repost of 'make bootstrap' problem " Ted Zlatanov
2008-01-01 1:30 ` repost of 'make bootstrap' problem Thien-Thi Nguyen
2008-01-01 19:48 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fxy580db.fsf_-_@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.