Re: strange problem in X

Sascha Schumann (sascha@schumann.cx)
Mon, 28 Jun 1999 16:48:33 +0200


On Mon, Jun 28, 1999 at 07:15:38AM -0700, Joe wrote:
> > > Currently I think that most glibc2.1 distros include
> > (?)egcs(?), and no
> > > longer include gcc. Someone that is not comiling there
> > kernel very often
> > > should not have a special C compiler on a system just for
> > the kernel.
> >
> > Note that with rpm or similar it is very easy to install and
> > desinstall
> > the advised compiler just for compiling the kernel (a small
> > script will
> > automate the switch of compilers) .
>
> NOT AN OPTION... first RH 6.0 does not come with a gcc 2.7.2
> compiler (at least I did not see one) ..second I am not going to
> try again to build either a cross compiler or a gcc compiler and
> potentially screw up my system.. third I SIMPLY SHOULD NOT HAVE
> TO HAVE 2 C COMPILERS. fourth that means that while I am
> compiling my kernel I cannot compile anything else..

You don't need to shout.

There is nothing wrong with having an older version of the same
compiler around.

> having 2 compilers is just a 'work around' for quirks between
> compilers, unless it is a cross compiler

On the systems I admin are installed two compilers, the first one
being

$ gcc -v
Reading specs from
/usr/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

And the other one

$ kgcc -v
Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs
gcc driver version egcs-2.91.66 19990314 (egcs-1.1.2 release)
executing gcc version 2.7.2.3

kgcc is only a script ... cat /usr/bin/kgcc

#!/bin/sh

exec gcc -V2.7.2.3 -b i386-redhat-linux $*

Works nicely, doesn't consume too much diskspace, and you can
compile with egcs while you are compiling your kernel (which
shouldn't happen too often) without changing one file.

-- 

Regards,

Sascha Schumann Consultant

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/