This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Do you need an existing compiler to install gcc?
- To: help-gcc at gnu dot org
- Subject: Re: Do you need an existing compiler to install gcc?
- From: tjb at starbase dot neosoft dot com (Timothy J. Bogart)
- Date: 22 Dec 1999 23:34:49 GMT
- Abuse-Reports-To: abuse at airmail.net to report improper postings
- Newsgroups: gnu.gcc.help
- Organization: NeoSoft, Inc. +1 713 968 5800
- References: <83rkev$bh1$1@nnrp1.deja.com>
- Xref: wodc7nx0 gnu.gcc.help:2274
If you are going to configure and build the gcc compiler, you
need a working compiler to do this. Presuming you are using
the default ksh, you will want to make sure the working compiler
is in your path. Doing an
export CC=<path-to-working-compiler>/compiler
will help. This working compiler can be a download of gcc
from BULL, for example, but you must have _some_ compiler if
you are to build code. You will need root permissions to
put the BULL compiler, or anybody else who has built gcc
to go in the default place.../usr/local/bin. Hence the above
becomes
export CC=/usr/local/bin/gcc
if you did this.
Plus you migh double check the instructions...from memory, I
seem to recall that they recommend you not do the configure/build
in the 'home' of what you undar, but create another directory and
do it from there...
Hope that helps some.
In article <83rkev$bh1$1@nnrp1.deja.com>, <adezoysa@my-deja.com> wrote:
>I have a rs6000 with 4.3.1.0, downloaded gcc-2.95.2, unzipped and
>expanded it. When i go to configure it, it tells me :
>
># /us3/temp/gcc-2.95.2/configure
>Configuring for a powerpc-ibm-aix4.3.1.0 host.
>Created "Makefile" in /us3/temp/source using "mh-frag"
>/us3/temp/gcc-2.95.2/configure[1462]: /us3/temp/gcc-2.95.2/gcc: 0403-
>006 Execut.
>*** The command '/us3/temp/gcc-2.95.2/gcc -o conftest -O2 conftest.c'
>failed.
>*** You must set the environment variable CC to a working compiler.
>
>Whats going on? Do I need an existing CC compiler prior to this?
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.