unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Pure space overflows
       [not found] <87pmokustt.fsf.ref@yahoo.com>
@ 2022-01-22  7:34 ` Po Lu
  2022-01-22  8:50   ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-22  7:34 UTC (permalink / raw)
  To: emacs-devel

I get pure space overflows when building with X and XInput 2 on the
following systems:

  i586-pc-linux-gnu
  i386-pc-solaris2.11

Would anyone mind me changing BASE_PURESIZE to a value which results in
no overflow on both those systems?  Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22  7:34 ` Pure space overflows Po Lu
@ 2022-01-22  8:50   ` Eli Zaretskii
  2022-01-22  9:38     ` Po Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2022-01-22  8:50 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Date: Sat, 22 Jan 2022 15:34:38 +0800
> 
> I get pure space overflows when building with X and XInput 2 on the
> following systems:
> 
>   i586-pc-linux-gnu
>   i386-pc-solaris2.11
> 
> Would anyone mind me changing BASE_PURESIZE to a value which results in
> no overflow on both those systems?  Thanks.

How much would you need to enlarge that?

And why BASE_PURESIZE and not SYSTEM_PURESIZE_EXTRA for those
configurations?



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22  8:50   ` Eli Zaretskii
@ 2022-01-22  9:38     ` Po Lu
  2022-01-22 10:33       ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-22  9:38 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> How much would you need to enlarge that?

100000 bytes seems to be enough to make the build work on both these
systems.

> And why BASE_PURESIZE and not SYSTEM_PURESIZE_EXTRA for those
> configurations?

Isn't that a relic from when we had separate headers for each machine
and configuration?  I couldn't find anywhere they are set today.

Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22  9:38     ` Po Lu
@ 2022-01-22 10:33       ` Eli Zaretskii
  2022-01-22 11:02         ` Po Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2022-01-22 10:33 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Sat, 22 Jan 2022 17:38:25 +0800
> 
> > And why BASE_PURESIZE and not SYSTEM_PURESIZE_EXTRA for those
> > configurations?
> 
> Isn't that a relic from when we had separate headers for each machine
> and configuration?

No, not yet a relic.

> I couldn't find anywhere they are set today.

See src/conf_post.h.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22 10:33       ` Eli Zaretskii
@ 2022-01-22 11:02         ` Po Lu
  2022-01-22 11:13           ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-22 11:02 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org
>> Date: Sat, 22 Jan 2022 17:38:25 +0800
>> 
>> > And why BASE_PURESIZE and not SYSTEM_PURESIZE_EXTRA for those
>> > configurations?
>> 
>> Isn't that a relic from when we had separate headers for each machine
>> and configuration?
>
> No, not yet a relic.
>
>> I couldn't find anywhere they are set today.
>
> See src/conf_post.h.

I wonder if the following code being under an MSDOS conditional is an
oversight, since it mentions GNU/Linux:

  #ifdef HAVE_X_WINDOWS
  /* We need a little extra space, see ../../lisp/loadup.el and the
     commentary below, in the non-X branch.  The 140KB number was
     measured on GNU/Linux and on MS-Windows.  */
  #define SYSTEM_PURESIZE_EXTRA (-170000+140000)

Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22 11:02         ` Po Lu
@ 2022-01-22 11:13           ` Eli Zaretskii
  2022-01-22 11:18             ` Eli Zaretskii
  2022-01-22 11:19             ` Po Lu
  0 siblings, 2 replies; 18+ messages in thread
From: Eli Zaretskii @ 2022-01-22 11:13 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Sat, 22 Jan 2022 19:02:49 +0800
> 
> > See src/conf_post.h.
> 
> I wonder if the following code being under an MSDOS conditional is an
> oversight, since it mentions GNU/Linux:
> 
>   #ifdef HAVE_X_WINDOWS
>   /* We need a little extra space, see ../../lisp/loadup.el and the
>      commentary below, in the non-X branch.  The 140KB number was
>      measured on GNU/Linux and on MS-Windows.  */
>   #define SYSTEM_PURESIZE_EXTRA (-170000+140000)

No, not an oversight.  This is for a MS-DOS build with X support.
(Yes, we actually had that at some point, and we still have *.inp
files in the msdos/ directory to support it, although I'd be very
surprised if such a build could be made today.)



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22 11:13           ` Eli Zaretskii
@ 2022-01-22 11:18             ` Eli Zaretskii
  2022-01-22 11:19             ` Po Lu
  1 sibling, 0 replies; 18+ messages in thread
From: Eli Zaretskii @ 2022-01-22 11:18 UTC (permalink / raw)
  To: luangruo; +Cc: emacs-devel

> Date: Sat, 22 Jan 2022 13:13:14 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> >   #ifdef HAVE_X_WINDOWS
> >   /* We need a little extra space, see ../../lisp/loadup.el and the
> >      commentary below, in the non-X branch.  The 140KB number was
> >      measured on GNU/Linux and on MS-Windows.  */
> >   #define SYSTEM_PURESIZE_EXTRA (-170000+140000)
> 
> No, not an oversight.  This is for a MS-DOS build with X support.
> (Yes, we actually had that at some point, and we still have *.inp
> files in the msdos/ directory to support it, although I'd be very
> surprised if such a build could be made today.)

See the --with-x option to config.bat.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22 11:13           ` Eli Zaretskii
  2022-01-22 11:18             ` Eli Zaretskii
@ 2022-01-22 11:19             ` Po Lu
  2022-01-23  8:10               ` Po Lu
  1 sibling, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-22 11:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> No, not an oversight.

Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-22 11:19             ` Po Lu
@ 2022-01-23  8:10               ` Po Lu
  2022-01-23  8:16                 ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-23  8:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>> No, not an oversight.
>
> Thanks.

powerpc-unknown-linux-gnu needs a SYSTEM_PURESIZE_EXTRA of 250000 to
build without pure space overflows, which seems a little excessive to
me.

Any ideas here?
Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23  8:10               ` Po Lu
@ 2022-01-23  8:16                 ` Eli Zaretskii
  2022-01-23  9:28                   ` Po Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2022-01-23  8:16 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 23 Jan 2022 16:10:48 +0800
> 
> powerpc-unknown-linux-gnu needs a SYSTEM_PURESIZE_EXTRA of 250000 to
> build without pure space overflows, which seems a little excessive to
> me.

With what configure options and which optional features?



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23  8:16                 ` Eli Zaretskii
@ 2022-01-23  9:28                   ` Po Lu
  2022-01-23 11:16                     ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-23  9:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org
>> Date: Sun, 23 Jan 2022 16:10:48 +0800
>> 
>> powerpc-unknown-linux-gnu needs a SYSTEM_PURESIZE_EXTRA of 250000 to
>> build without pure space overflows, which seems a little excessive to
>> me.
>
> With what configure options and which optional features?

Sorry, I should've mentioned that it's the same as the other machines I
tested: XInput 2 and the GTK 3 toolkit, and xpm, jpeg, tiff, gif, png,
rsvg, and webp support.

Though on that machine, turning XInput 2 off makes no difference.

Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23  9:28                   ` Po Lu
@ 2022-01-23 11:16                     ` Eli Zaretskii
  2022-01-23 12:22                       ` Andreas Schwab
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2022-01-23 11:16 UTC (permalink / raw)
  To: Po Lu, Andreas Schwab; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 23 Jan 2022 17:28:24 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> powerpc-unknown-linux-gnu needs a SYSTEM_PURESIZE_EXTRA of 250000 to
> >> build without pure space overflows, which seems a little excessive to
> >> me.
> >
> > With what configure options and which optional features?
> 
> Sorry, I should've mentioned that it's the same as the other machines I
> tested: XInput 2 and the GTK 3 toolkit, and xpm, jpeg, tiff, gif, png,
> rsvg, and webp support.
> 
> Though on that machine, turning XInput 2 off makes no difference.

It is strange that PPC needs significantly more pure space.  Does it
have some unique alignment requirements, perhaps?

Andreas, any ideas why additional pure space would be needed for PPC?



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23 11:16                     ` Eli Zaretskii
@ 2022-01-23 12:22                       ` Andreas Schwab
  2022-01-23 12:39                         ` Po Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Andreas Schwab @ 2022-01-23 12:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Po Lu, emacs-devel

On Jan 23 2022, Eli Zaretskii wrote:

> Andreas, any ideas why additional pure space would be needed for PPC?

Is it?

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23 12:22                       ` Andreas Schwab
@ 2022-01-23 12:39                         ` Po Lu
  2022-01-23 13:03                           ` Andreas Schwab
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-23 12:39 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Eli Zaretskii, emacs-devel

Andreas Schwab <schwab@linux-m68k.org> writes:

> On Jan 23 2022, Eli Zaretskii wrote:
>
>> Andreas, any ideas why additional pure space would be needed for PPC?
>
> Is it?

I needed to set SYSTEM_PURESIZE_EXTRA to 250000 to produce a build with
X that didn't cause an overflow.

Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23 12:39                         ` Po Lu
@ 2022-01-23 13:03                           ` Andreas Schwab
  2022-01-23 13:26                             ` Po Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Andreas Schwab @ 2022-01-23 13:03 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, emacs-devel

Worksforme.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23 13:03                           ` Andreas Schwab
@ 2022-01-23 13:26                             ` Po Lu
  2022-01-23 13:35                               ` Andreas Schwab
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu @ 2022-01-23 13:26 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Eli Zaretskii, emacs-devel

Andreas Schwab <schwab@linux-m68k.org> writes:

> Worksforme.

What system did you use to test?

Thanks.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23 13:26                             ` Po Lu
@ 2022-01-23 13:35                               ` Andreas Schwab
  2022-01-24  0:39                                 ` Po Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Andreas Schwab @ 2022-01-23 13:35 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, emacs-devel

https://build.opensuse.org/project/show/home:AndreasSchwab:emacs:master

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Pure space overflows
  2022-01-23 13:35                               ` Andreas Schwab
@ 2022-01-24  0:39                                 ` Po Lu
  0 siblings, 0 replies; 18+ messages in thread
From: Po Lu @ 2022-01-24  0:39 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Eli Zaretskii, emacs-devel

Andreas Schwab <schwab@linux-m68k.org> writes:

> https://build.opensuse.org/project/show/home:AndreasSchwab:emacs:master

I tried on an old system running Fedora 14, FWIW.



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-01-24  0:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87pmokustt.fsf.ref@yahoo.com>
2022-01-22  7:34 ` Pure space overflows Po Lu
2022-01-22  8:50   ` Eli Zaretskii
2022-01-22  9:38     ` Po Lu
2022-01-22 10:33       ` Eli Zaretskii
2022-01-22 11:02         ` Po Lu
2022-01-22 11:13           ` Eli Zaretskii
2022-01-22 11:18             ` Eli Zaretskii
2022-01-22 11:19             ` Po Lu
2022-01-23  8:10               ` Po Lu
2022-01-23  8:16                 ` Eli Zaretskii
2022-01-23  9:28                   ` Po Lu
2022-01-23 11:16                     ` Eli Zaretskii
2022-01-23 12:22                       ` Andreas Schwab
2022-01-23 12:39                         ` Po Lu
2022-01-23 13:03                           ` Andreas Schwab
2022-01-23 13:26                             ` Po Lu
2022-01-23 13:35                               ` Andreas Schwab
2022-01-24  0:39                                 ` Po Lu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).