public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
* kgcc vs. gcc
@  Watson, Keith
   ` A. R. Vener
   ` xander
  0 siblings, 2 replies; 3+ messages in thread
From: Watson, Keith @  UTC (permalink / raw)
  To: 'Blinux listserv', 'Blinux-Newbie'

Hi,

I had heard that under RH7.0 I needed to compile using kgcc instead of gcc.
Ok, next question, "How?". From reading the kernel docs I have come up with
the following procedure:

make clean	(just to be safe)
make mkproper
make oldconfig
make dep bzImage install >/usr/src/install.log

It is my assumtion that this defaults to gcc. How do I use kgcc? Any
suggestions?

Keith




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kgcc vs. gcc
   kgcc vs. gcc Watson, Keith
@  ` A. R. Vener
   ` xander
  1 sibling, 0 replies; 3+ messages in thread
From: A. R. Vener @  UTC (permalink / raw)
  To: blinux-list

Edit the makefile. There is probably a line similar to:

CC = gcc

TO use another compiler just replace the name or path of gcc.

Caveeats:
1.  YOu must actually have a copy of kgcc installed on your system.
2. Compiler flags may differ and you may need to edit the definition
  for compiler flag options. 


> From blinux-list-admin@redhat.com  Fri Nov 10 08:13:34 2000
> Return-Path: <blinux-list-admin@redhat.com>
> Received: from listman.redhat.com (listman.redhat.com [199.183.24.211])
> 	by cougar.aero-vision.com (8.9.3/8.9.3) with ESMTP id IAA11093
> 	for <salt@aero-vision.com>; Fri, 10 Nov 2000 08:13:34 -0500
> Received: from listman.redhat.com (localhost.localdomain [127.0.0.1])
> 	by listman.redhat.com (Postfix) with ESMTP
> 	id F2E622F1DB; Fri, 10 Nov 2000 08:13:01 -0500 (EST)
> Delivered-To: blinux-list@listman.redhat.com
> Received: from mail.redhat.com (mail.redhat.com [199.183.24.239])
> 	by listman.redhat.com (Postfix) with ESMTP id 1DBC32EFF6
> 	for <blinux-list@listman.redhat.com>; Fri, 10 Nov 2000 08:12:27 -0500 (EST)
> Received: (from mail@localhost)
> 	by mail.redhat.com (8.11.0/8.8.7) id eAADCQv01158
> 	for blinux-list@listman.redhat.com; Fri, 10 Nov 2000 08:12:26 -0500
> Received: from tampa101.grtk.com (fwuser@fw.grtk.com [12.8.224.4])
> 	by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eAADCQD01154
> 	for <blinux-list@redhat.com>; Fri, 10 Nov 2000 08:12:26 -0500
> Received: by mailrelay.belltechinc.com with Internet Mail Service (5.5.2650.21)
> 	id <WTCXH8ZV>; Fri, 10 Nov 2000 08:16:33 -0500
> Message-ID: <BA1FF93E22D4D211876A00A0C9B39A33024C103D@challenger.grtk.com>
> From: "Watson, Keith" <kwatson@grtk.com>
> To: "'Blinux listserv'" <blinux-list@redhat.com>,
>         "'Blinux-Newbie'" <blinux-newbie@braille.uwo.ca>
> Subject: kgcc vs. gcc
> Date: Fri, 10 Nov 2000 08:11:19 -0500
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2650.21)
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> X-Loop: blinux-list@redhat.com
> Sender: blinux-list-admin@redhat.com
> Errors-To: blinux-list-admin@redhat.com
> X-BeenThere: blinux-list@redhat.com
> X-Mailman-Version: 2.0beta4
> Precedence: bulk
> Reply-To: blinux-list@redhat.com
> List-Id: Linux for blind general discussion <blinux-list.redhat.com>
> 
> Hi,
> 
> I had heard that under RH7.0 I needed to compile using kgcc instead of gcc.
> Ok, next question, "How?". From reading the kernel docs I have come up with
> the following procedure:
> 
> make clean	(just to be safe)
> make mkproper
> make oldconfig
> make dep bzImage install >/usr/src/install.log
> 
> It is my assumtion that this defaults to gcc. How do I use kgcc? Any
> suggestions?
> 
> Keith
> 
> 
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/blinux-list
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kgcc vs. gcc
   kgcc vs. gcc Watson, Keith
   ` A. R. Vener
@  ` xander
  1 sibling, 0 replies; 3+ messages in thread
From: xander @  UTC (permalink / raw)
  To: 'Blinux listserv'; +Cc: 'Blinux-Newbie'

  > Hi,
  > 
  > I had heard that under RH7.0 I needed to compile using kgcc instead of gcc.
  > Ok, next question, "How?". From reading the kernel docs I have come up with
  > the following procedure:
  > 
  > make clean	(just to be safe)
  > make mkproper
  > make oldconfig
  > make dep bzImage install >/usr/src/install.log
  > 
  > It is my assumtion that this defaults to gcc. How do I use kgcc? Any
  > suggestions?

The problem is that Redhat 7.0 is shipped with gcc 2.96. The linux kernel
doesn't compile correctly with this version of gcc. Hence, you need an
older version of gcc/binutils (preferably gcc 2.95.x). I do not know if
this is available with the compat-egcs-blabla packages.

I compiled 2.95.2 and binutils with the distributed RH7 gcc/binutils
packages, installed them in /usr/local, removed the RH7 gcc/binutils
packages and compiled the kernel. A bit of a hassle. I only needed 2.95
for the kernel, so I tossed it away after the succesfull compile, install
and reboot.


Good luck,
xander





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 kgcc vs. gcc Watson, Keith
 ` A. R. Vener
 ` xander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).