🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54207

gcc-1.38 install problem and fix...

#54207
From: "Vijaya Singh (Vij)"
Date: Mon, 14 Jan 1991 05:54
45 lines
2201 bytes
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
Technical Details
Message-ID: <91Jan14.005317est.3242@godzilla.eecg.toronto.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!news-server.csri.toronto.edu!singhvk

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,64eec70504743b5,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-01-14 01:38:04 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!news-server.csri.toronto.edu!singhvk
From: singhvk@eecg.toronto.edu ("Vijaya Singh (Vij)")
Newsgroups: gnu.gcc.help
Subject: gcc-1.38 install problem and fix...
Message-ID: <91Jan14.005317est.3242@godzilla.eecg.toronto.edu>
Date: 14 Jan 91 05:54:28 GMT
Organization: EECG, University of Toronto
Lines: 45