egcs build problem for 980217 source

Manfred Hollstein manfred@s-direktnet.de
Wed Feb 18 11:22:00 GMT 1998


On Wed, 18 February 1998, 12:05:15, eric@sparrow.vgernet.net wrote:

 > On Wed, Feb 18, 1998 at 07:41:39AM +0100, Manfred.Hollstein@ks.sel.alcatel.de wrote:
 > > On Tue, 17 February 1998, 10:36:52, ebuddington@wesleyan.edu wrote:
 > > 
 > >  > I am trying to compile the egcs source from code downloaded this
 > >  > morning (17 Feb 1998) via CVS. I'm not sure this is a bug, but
 > >  > it would be a nice thing to avoid if possible.
 > >  > 
 > >  > --- System:
 > >  > 
 > >  > $ uname -a
 > >  > Linux sparrow 2.0.33 #2 Tue Jan 20 19:01:37 EST 1998 i486 unknown
 > >  > $ gcc --version
 > >  > egcs-2.90.23 980102 (egcs-1.0.1 release)
 > >  > $ export | grep CC
 > >  > declare -x CC="gcc"
 > >  > 
 > >  > --- Problem
 > >  > 
 > >  > Failure during compile, wherein 'cc' is sought and not found.
 > >  > (there is indeed no 'cc' in my PATH, just 'gcc')
 > >  > 
 > >  > The command is coming from Makefile.in:905, I believe.
 > >  > 
 > >  > The 'cc' is coming from $(OLDCC), which seems to be hard-wired
 > >  > to 'cc' at Makefile.in:114, with the explaination that gcc
 > >  > shouldn't be used for this. My system has only gcc.
 > >  > 
 > >  [snip]
 > >  > _mulsi3
 > >  > /bin/sh: cc: command not found
 > >  > make[2]: *** [libgcc1.a] Error 1
 > > 
 > > What kind of distribution do you have? On all Linux dists I know of, cc
 > > is supposed to be a symlink to gcc.
 > 
 > It's a heavily modified Debian system - I'm creeping my own stow-like
 > packaging system over the original Debian packages. As a result,
 > I find the occasional assumption (by packages) that files will
 > be in certain places - I thought this was something similar.
 > 
 > I rather assumed that any new gcc installation would recreate such a
 > cc->gcc link. But if you tell me that 'cc' is supposed to have system
 > scope (like /etc/passwd - having a special meaning to the system)
 > rather than package scope (just another executable), I'll believe you.
 > Is that the case?

Yes, the cc link on Linux is special to Linux; a `generic' gcc or egcs
installation does not create any cc link.

On my system (also a heavily hacked Debian GNU/Linux 1.3.1) I built
gcc-2.7.2.3 myself as a Debian package and installed it in /tools/gnu
setting up links in /usr; here I saw that the cc link is created by
the debian/rules makefile.

Manfred



More information about the Gcc-bugs mailing list