Newsgroups: comp.sys.next
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cunixa.cc.columbia.edu!das15
From: das15@cunixa.cc.columbia.edu (Douglas A Scott)
Subject: Re: Problem with C++/collect
Message-ID: <1991Jun1.220630.14086@cunixf.cc.columbia.edu>
Sender: usenet@cunixf.cc.columbia.edu (The Network News)
Nntp-Posting-Host: cunixa.cc.columbia.edu
Reply-To: das15@cunixa.cc.columbia.edu (Douglas A Scott)
Organization: Columbia University
References: <55250@nigel.ee.udel.edu>
Date: Sat, 1 Jun 1991 22:06:30 GMT

In article <55250@nigel.ee.udel.edu> carroll@cis.udel.edu (Mark Carroll) writes:
>Hello all.
>
>I'm working on a research project at the U of Delaware, where we're
>implementing a large package in Objective-C. Underlying the implementation
>that we're doing is a compiler package called PET, written by  NIST in C++.
>
>When I compile the PET on the NeXT (using the GNU libraries), I get a 
>segmentation fault on final link phase, during collect. 

	I think this one is in NextAnswers.  There is a problem with the NeXT
	make utility in that it will not allow you to set the stacksize limit
	higher than the default (512K) even if you change it in your current
	shell.  It is this limit that causes the linking stage to bomb--too
	many symbols for the poor linker to fit into its stack.  This is an
	especially serious problem if you are compiling -g.

	The solution:  first do a "limit stacksize 8192" in your current
	shell, then execute the final link directly from the shell as a
	command.  What I do is just copy the output that has appeared on the
	screen from the make and paste it back in as a command.

	I think perhaps the gnu make that is available as source may not have
	this problem, but I havent really tested it yet.

	BTW, sometimes it will bomb out in cc1++ or /bin/ld, too--same
	problem, same solution.


Douglas Scott          Columbia University Computer Music Studio 
Internet: <doug@woof.columbia.edu> <das15@cunixa.cc.columbia.edu>
UUCP: ...!columbia!woof!zardoz!doug          Phone: (703)765-4771
-----------------------------------------------------------------
