From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,8a32fd137f90f439 X-Google-Attributes: gid111c93,public From: Steeve Subject: Re: Installing ccc with gcc Date: 1999/12/08 Message-ID: <384EB1C0.9F0053C3@eps.mcgill.ca>#1/1 X-Deja-AN: 558250403 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@mcgill.ca X-Trace: carnaval.risq.qc.ca 944681408 132.206.152.21 (Wed, 08 Dec 1999 14:30:08 EST) MIME-Version: 1.0 Reply-To: steeve@eps.mcgill.ca NNTP-Posting-Date: Wed, 08 Dec 1999 14:30:08 EST Newsgroups: comp.os.linux.alpha Richard Griswold wrote: > > I upgraded egcs on my Alpha so I can compile the 2.2.13 kernel. From the > information at http://egcs.cygnus.com/, it looks like gcc and egcs have > merged. I ended up installing gcc 2.8.1 (the latest version I could find > RPMs for) on my system. I had to remove egcs because of conflicts between > the egcs and gcc RPMs. Now ccc won't work, because it needs egcs. > > How can I install both gcc and ccc? I'm in the process of doing this on Redhat 6.0. I downloaded the source gcc-2.95.2 from egcs (yeah, all the different version numbers are incredibly confusing). Anyway, I got the gcc-core, gcc-g++, gcc-g77 and gcc-objc tarballs and extracted them all into a single dir. Then created objdir and did the configure and compile using the existing compiler (egcs-1.1.2-12). I believe that during the compilation the compiler recomiles itslef in Stage-2 (not sure but it looks like it.) mkdir objdir cd objdir ../gcc-2.95.2/configure --prefix=/usr make bootstrap Then I removed the rpm's for the existing egcs gcc, egcs-g77-1.1.2-12 egcs-1.1.2-12 egcs-c++-1.1.2-12 egcs-objc-1.1.2-12 cpp-1.1.2-12 For whatever reason the c pre-processor is in a separate rpm. Very bizare things happen if you don't remove this package. Then do, make install Just to be anal I did the whole thing over again using the newly installed compiler, mkdir test cd test ../gcc-2.95-2/configure --prefix=/usr make bootstrap make install All goes well. BTW, the default install prefix is /usr/local which just don't seem right to me but I suppose you *could* try to install it there and leave the rpm's in place, but I'd bet that you'd run into trouble in the long run. And you can always easily reinstall the rpm's if you get into trouble. -- :wq