This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: COG 3-1-1 successful build
- From: Adrian Hawryluk <adrianh at optech dot on dot ca>
- To: Janis Johnson <janis187 at us dot ibm dot com>, Adrian Hawryluk <adrianh at optech dot on dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Nov 2002 13:52:34 -0500
- Subject: RE: COG 3-1-1 successful build
Uhh, I don't think I did "make bootstrap". I built gcc in September, and
was in the middle of writing my message when I must have been interrupted,
because today I found that message in my postponed/drafts folder. Looking
back at the documentation, I now see this in gcc-3.1.1\INSTALL\build.html:
Building a native compiler
For a native build issue the command make bootstrap. This will build
the entire GCC system, which includes the following steps:
* Build host tools necessary to build the compiler such as
texinfo, bison, gperf.
* Build target tools for use by the compiler such as binutils
(bfd, binutils, gas, gprof, ld, and opcodes) if they have been individually
linked or moved into the top level GCC source tree before configuring.
* Perform a 3-stage bootstrap of the compiler.
* Perform a comparison test of the stage2 and stage3 compilers.
* Build runtime libraries using the stage3 compiler from the
previous step.
If you are short on disk space you might consider make
bootstrap-lean instead. This is identical to make bootstrap except that
object files from the stage1 and stage2 of the 3-stage bootstrap of the
compiler are deleted as soon as they are no longer needed.
I remember reading (or at least seeing) this documentation, but I don't
remember reading the "For a native build issue the command make bootstrap."
sentence, so I must have skipped it. Anyway, it works. If you want me to
do any additional testing, I'll try to in my spare time (if I can find some
:[ ) I still have gcc version 2.95.3-5 on my system and I haven't yet
bothered to create a cross compile version yet.
Adrian
-----Original Message-----
From: Janis Johnson [mailto:janis187@us.ibm.com]
Sent: Monday, November 18, 2002 1:01 PM
To: Adrian Hawryluk
Cc: gcc@gcc.gnu.org
Subject: Re: COG 3-1-1 successful build
On Mon, Nov 18, 2002 at 12:39:40PM -0500, Adrian Hawryluk wrote:
> Hi,
>
> I was able to successfully build GCC 3.1.1 on the Win2k platform, but not
> without some confusion. Make gave out this complaint:
>
> make: *** No rule to make target `../libiberty/libiberty.a', needed by
> `gengenrtl.exe'.
>
> I've never built gcc from scratch before but have built other software
under
> *NIX platforms and under Cygwin. I read the 5 installation steps and did
> not see any mention of this. I looked around on my computer and found
that
> this file was in a couple of places. It was when I tried to create the
> directory ../libiberty to put a copy there that I discovered that there
was
> a directory there full of source files (amongst other things). It would
> seem that this library is not compiled automatically by the make file.
The installation instructions recommend something like the following:
mkdir gcc-obj
cd gcc-obj
../gcc-3.1.1/configure <configure options>
make bootstrap
make install
Is that what you did?
Janis