From: CRDGW2::CRDGW2::MRGATE::"SMTP::PREP.AI.MIT.EDU::HELP-GCC-REQUEST" 16-JAN-1991 05:59:38.03 To: MRGATE::"ARISIA::EVERHART" CC: Subj: gcc-1.38 install problem and fix... Received: by crdgw1.ge.com (5.57/GE 1.80) id AA05503; Wed, 16 Jan 91 05:39:40 EST Received: by life.ai.mit.edu (4.1/AI-4.10) id AA03288; Mon, 14 Jan 91 01:33:28 EST Return-Path: Received: from tut.cis.ohio-state.edu by life.ai.mit.edu (4.1/AI-4.10) id AA03251; Mon, 14 Jan 91 01:32:42 EST Received: by tut.cis.ohio-state.edu (5.61-kk/5.910105) id AA15748; Mon, 14 Jan 91 01:30:10 -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: 14 Jan 91 05:54:28 GMT From: singhvk@jarvis.csri.toronto.edu ("Vijaya Singh (Vij)") Organization: EECG, University of Toronto Subject: gcc-1.38 install problem and fix... Message-Id: <91Jan14.005317est.3242@godzilla.eecg.toronto.edu> Sender: help-gcc-request@prep.ai.mit.edu To: help-gcc@prep.ai.mit.edu I posted the following a few days ago: ********************************************************************* Has anyone stumbled into the following problem when installing GNU CC on a Sun3/50 (Sun Unix 4.2): Compiling gcc-1.38 using cc (stage 1) works fine. Compiling gcc-1.38 using gcc (stage 2) blows up... stage1/gcc -g -O -Bstage1/ -I. -I/u1/singhvk/MASc/gcc-1.38/src -I/u1/singhvk/ MASc/gcc-1.38/src/config \ -DSTANDARD_STARTFILE_PREFIX=\"/u1/singhvk/MASc/gcc-1.38/lib/\" \ -DSTANDARD_EXEC_PREFIX=\"/u1/singhvk/MASc/gcc-1.38/lib/gcc-\" -c \ `echo /u1/singhvk/MASc/gcc-1.38/src/gcc.c | sed 's,^\./,,'` stage1/gcc -c -g -O -Bstage1/ -I. -I/u1/singhvk/MASc/gcc-1.38/src -I/u1/ singhvk/MASc/gcc-1.38/src/config ../src/version.c stage1/gcc -c -g -O -Bstage1/ -I. -I/u1/singhvk/MASc/gcc-1.38/src -I/u1/ singhvk/MASc/gcc-1.38/src/config ../src/obstack.c stage1/gcc -g -O -Bstage1/ -o gccnew gcc.o version.o obstack.o ld: -c: bad flag *** Error code 1 Seems that a "-c" flag is being passed to ld ?!? I've compiled a small program using "stage1/gcc -C ..." (ie: compile, assemble, don't link) without a problem so the compiler itself is probably fine. Any help would be GREATLY appreciated! ********************************************************************* The following change to "tm-sun3.h" seems to work (ie: the install procedure, including stage3, works fine): #define LINK_SPEC "%{!e*:-e start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} %{-Bstatic}" to #define LINK_SPEC "%{!e*:-e start}" ---> ld was complaining about receiving -c and -B flags <--- VIJ... singhvk@eecg.toronto.edu