pdump should not be necessary, Sergey provided a config file for gcc 3 to
work around
the section issues. Maybe this needs updating for gcc 3.3
andy
-----Original Message-----
From: xemacs-beta-admin(a)xemacs.org
[mailto:xemacs-beta-admin@xemacs.org]On Behalf Of Vin Shelton
Sent: Friday, January 30, 2004 7:35 PM
To: Paul Stodghill
Cc: XEmacs Beta
Subject: Re: 21.4.15 Imminent
Paul Stodghill <stodghil(a)cs.cornell.edu> writes:
> I encountered some problems compiling the release-21-4 branch. In
> particular, gcc 3.3.1 (cygwin) didn't like the line breaks within a
> string in sheap.c. Here is what I did to get it to compile.
>
> --- sheap.c~ 2001-04-12 14:24:19.000000000 -0400
> +++ sheap.c 2004-01-30 10:28:56.500432000 -0500
> @@ -82,16 +82,16 @@
> {
> printf(
> -"\nRequested %d bytes, static heap exhausted! base is %p, current
> ptr
> -is %p. You have exhausted the static heap.
> -
> -If you are simply trying to compile, remove sheap-adjust.h
> -and recompile from the top level. If this doesn't
> -work then STATIC_HEAP_SLOP (defined in this file) is too small.
> -
> -If you want to run temacs, change SHEAP_ADJUSTMENT in sheap-adjust.h
> -to 0 or a +ve number. Generally you should *not* try to run temacs
> -with a static heap, you should dump first.\n", size,
> +"\nRequested %d bytes, static heap exhausted! base is %p,
current ptr\n"
> +"is %p. You have exhausted the static heap.\n "
> +"\n"
> +"If you are simply trying to compile, remove sheap-adjust.h\n"
> +"and recompile from the top level. If this doesn't\n"
> +"work then STATIC_HEAP_SLOP (defined in this file) is too small.\n"
> +"\n"
> +"If you want to run temacs, change SHEAP_ADJUSTMENT in
sheap-adjust.h\n"
> +"to 0 or a +ve number. Generally you should *not* try to run temacs\n"
> +"with a static heap, you should dump first.\n", size,
> static_heap_base, static_heap_ptr);
> exit(-1);
>
> Even with this change, I didn't get temacs to dump xemacs. Removing
> sheap-adjust.h didn't help. I gave up on this and tried --pdump, which
> worked the first time.
>
> Hope you find this useful.
Paul,
Thanks for building the latest 21.4 sources. I think that cygwin
currently requires --pdump to build, but I don't build on Cygwin and
can't say with certainty. In any case, I'm very surprised about the
string problem for gcc 3.3.1. I'm pretty sure I've built XEmacs with
gcc 3.3.1 (I don't currently have 3.3.1 lying around or I'd try) -
maybe sheap.c is not required for all configurations?
In any case, if you had to specify --pdump anyway, was the patch you
made to sheap.c necessary?
Thanks,
Vin