From: CRDGW2::CRDGW2::MRGATE::"SMTP::PREP.AI.MIT.EDU::HELP-GCC-REQUEST" 23-JAN-1991 23:21:38.50 To: MRGATE::"ARISIA::EVERHART" CC: Subj: Re: Can't compile Gcc 1.39 on sun3 os 4.1 Received: by crdgw1.ge.com (5.57/GE 1.80) id AA02396; Wed, 23 Jan 91 23:09:52 EST Received: by life.ai.mit.edu (4.1/AI-4.10) id AA22155; Wed, 23 Jan 91 07:13:00 EST Return-Path: Received: from tut.cis.ohio-state.edu by life.ai.mit.edu (4.1/AI-4.10) id AA21983; Wed, 23 Jan 91 07:08:56 EST Received: by tut.cis.ohio-state.edu (5.61-kk/5.910105) id AA26264; Wed, 23 Jan 91 07:08:06 -0500 Received: from USENET by tut.cis.ohio-state.edu with netnews for help-gcc@prep.ai.mit.edu (help-gcc@prep.ai.mit.edu) (contact usenet@tut.cis.ohio-state.edu if you have questions) Date: 23 Jan 91 11:54:07 GMT From: fischer@iesd.auc.dk (Lars P. Fischer) Organization: Mathematics and Computer Science, University of Aalborg Subject: Re: Can't compile Gcc 1.39 on sun3 os 4.1 Message-Id: References: <1991Jan22.191823.21968@DMI.USherb.CA> Sender: help-gcc-request@prep.ai.mit.edu To: help-gcc@prep.ai.mit.edu > >>>> On 22 Jan 91, bussiere@ganymede.DMI.USherb.CA (Luc Bussieres) said: Luc> I'm unable to compile gcc 1.39 on a sun3 running sunos 4.1. Luc> Everything compile fine on a Sparcstation SLC. On the sun3 I'm Luc> able to make the stage1 but after I receive this message: Luc> ... Well, I installed GCC 1.39 on both Sun-3/60 and SPARCstation yesterday, and everything went smoothly, as usual. Both machines are running SunOS 4.1. I did the "./config.gcc sun3-os4" thing and then ran the following script: #!/bin/csh -f make CC="gcc -O" make stage1 make CC=stage1/gcc CFLAGS="-g -O -Bstage1/" make stage2 make CC=stage2/gcc CFLAGS="-g -O -Bstage2/" foreach file (*.o) cmp $file stage2/$file end Worked like a charm. I made one hack to the Makefile: I replaced "$(CC) $(CFLAGS)" with "cc" at all places where $(CC) is used for *linking*. This means that Sun's linker is invoked, giving dynamic liking. This saves some space, but it should not behave differently otherwise. (I don this all the time in order to use GCC and dynamic linking -- the best of both worlds). /Lars -- Lars Fischer, fischer@iesd.auc.dk | Politics is no exact science. CS Dept., Univ. of Aalborg, DENMARK. | - Otto von Bismark