[comp.unix.xenix] Xenix/286 problem

bob@rel.eds.com (Bob Leffler) (05/25/89)

It appears that Mush 6.5 patchlevel 3 justs outgrew the Xenix 286
compiler.

i.e.

%makeL
	cc -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c
main.c
mush.h (203): fatal error 2: out of heap space
*** Error code 1
Stop


The resolution in the SCO manual, states to break the modules into smaller
portions.  Anyone have any other suggestions?

bob


-- 
Bob Leffler - Electronic Data Systems, Financial Information Services Division
3044 West Grand Blvd., Room 11-101, Detroit, MI 48202 (313) 556-4474
bob@rel.mi.org or {uunet!edsews, rutgers, sharkey}!rel!bob
Opinions expressed may not be those of my employer.

dws@cseg.uucp (David W. Summers) (05/26/89)

In article <1193@rel.eds.com>, bob@rel.eds.com (Bob Leffler) writes:
> It appears that Mush 6.5 patchlevel 3 justs outgrew the Xenix 286
> compiler.
> 
> i.e.
> 
> %makeL
> 	cc -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c
> main.c
> mush.h (203): fatal error 2: out of heap space
> *** Error code 1
> Stop

Well, I don't know about everyone else, but I never could get MUSH to compile on
my Xenix 286 system with the CURSES option turned on.  I just gave up finally
and turned it off and everything compiles fine and works great....I just don't
have curses capability.  Oh well, I *would* like to have this capability.  Any
one have any suggestions?

- David Summers
  (dws@cseg.uucp)
  (..!harris.cis.ksu.edu!hcx!cseg!dws)

alpope@token.Sun.COM (Alan Pope) (05/27/89)

In article <1193@rel.eds.com>, bob@rel.eds.com (Bob Leffler) writes:
> It appears that Mush 6.5 patchlevel 3 justs outgrew the Xenix 286
> compiler.
> 
> i.e.
> 
> %makeL
> 	cc -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c
> main.c
> mush.h (203): fatal error 2: out of heap space
> *** Error code 1
> Stop

In 1986 I had similar problems continuously at the Chicago Board Options
Exchange while building a Market Maker Trading System.  If memory serves
me correctly, there are couple of approaches:

	1)	it seems there used be be an alternate binary, which had an
		L designation, that you could swap in for the pass2 binary.
		Check the binaries for cc (maybe c2L?).

	2)	Alternately, you might try running first with a -E flag to
		get all substitutions done first, and then compile the
		``main.i'' (in this case).  It seems I tried that but I
		can't remember if it had any effect.

If you don't have all the recent patches (upgrades), whatever, you should
probably call SCO and buy them (if you're not already under their mega-buck
support plan).  Hope this helps.
						Alan L. Pope
						alpope@sun.com

chapman@sco.COM (Brian Chapman) (05/30/89)

In article <1193@rel.eds.com>, bob@rel.eds.com (Bob Leffler) writes:
> 
> %makeL
> 	cc -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c
> main.c
> mush.h (203): fatal error 2: out of heap space
> *** Error code 1
> Stop

Try adding -LARGE to your cc flags:
 	cc -LARGE -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c

This causes cc to invoke a different set of the compiler
passes that are themselves large model, and hopefully have
a larger heap/stack.
	-- Chapman

roccom@tahoe.unr.edu (RoCCo mArtIn) (05/31/89)

In article <1193@rel.eds.com> bob@rel.eds.com (Bob Leffler) writes:
>It appears that Mush 6.5 patchlevel 3 justs outgrew the Xenix 286
>compiler.
>
>	cc -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c
>main.c
>mush.h (203): fatal error 2: out of heap space
>*** Error code 1
>Stop
>

I've had similar problems, however the package I'm porting over must have
curses.  Curses needs a larger stack space (the -F # option), and you can
force more allocation of heap space with the -LARGE option. 

So, I suggest you change the makefile so the compile line will read:

cc -LARGE -F 2000 -M2le -Mt32 -O -DSYSV -DCURSES -DREGCMP -DUSG  -c main.c
   ===========^==
	      |
	      -- This value was suggested to me by SCO tech support...

Hope this helps!

>bob

-rocco
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Usenet:      uunet!unrvax!tahoe!roccom
Internet:    roccom@tahoe.unr.edu
Withoutanet: mousketeers@disney.land.fun (ok, so its not very punny ...)