This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling gcc without an existing cc compiler.
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: Peter dot Loo at bannerhealth dot com (Loo, Peter)
- Cc: gcc at gnu dot org
- Date: Wed, 12 Jun 2002 13:15:45 -0700 (PDT)
- Subject: Re: Compiling gcc without an existing cc compiler.
> I downloaded gcc-3.1.tar.gz file for our new AIX 5.1. Currently the
> server does not have any compiler installed, so my question is how do I
> install gcc-3.1 on our server without an existing C compiler.
You cannot use the source distribution. You need a precompiled binary
package for your platform. See http://gcc.gnu.org/install/binaries.html
> The reason to install gcc on the server is to have a C compiler, but
> installation process requires an existing C compiler. Isn't that a bit
> NUTS?
Not at all, it's just that you are looking in the wrong place.
However, we should fix our installation instructions to say, in bold face
at the top of pages such as
http://gcc.gnu.org/install/download.html ,
and any other page that provides links to the source code, something like:
<b>If you don't already have a C compiler on your machine, stop right now;
the GCC sources are probably useless to you.</b> You will need a precompiled
binary version of GCC, which you may be able to find
<a href="/install/binaries.html">from our Binaries web page</a>.
GCC can be configured to operate as a cross-compiler (you run it on OS #1
to produce code that can run on OS #2).