Re: Updating a hint

2008-12-20 Thread William Immendorf
Redux:

AUTHOR: William Immendorf 

DATE: 2008-12-20

LICENSE: Creative Commons Attribution-Noncommercial-Share Alike 3.0
United States License
http://creativecommons.org/licenses/by-nc-sa/3.0/us/

SYNOPSIS: Installing all the GCC compilers while building LFS

DESCRIPTION: This hint will guide you through the installation of any or all
the GCC compilers while building an LFS system. These instructions target
the 4.x.x series of GCC as there have been significant changes since the
3.x.x series. Prior to the 4.x.x series, only the Ada compiler could not be
installed during Chapter 6 of an LFS build. See Randy's
http://www.linuxfromscratch.org/hints/downloads/files/ada_install_during_lfs.txt
hint for instructions to install the Ada compiler during an LFS build if you
are using a version of GCC prior to 4.x.x.

ATTACHMENTS: None

REQUIRED DOWNLOADS:

1. The GCC tarball for whatever version of GCC called for in LFS. This will
be a file named something similar to gcc-4.3.2.tar.bz2

2. The 2005 version of the GNAT compiler found on the AdaCore site. The
download location (https://libre.adacore.com/dynamic/download_page) requires
that you create an account on the AdaCore site before you can download the
package. Nothing is required other than a valid email address. Ensure you
download the 2005 version of the GNAT compiler. The 2006 version will not work.
The file name you need is: gnat-gpl-2005-i686-gnu-linux-gnu-libc2.3-bin.tar.gz.
(not required if your host system has an existing Ada compiler, or you don't
plan on installing the GCC Ada compiler)

3. A Zip tarball if you are building the Java comp. See
http://www.info-zip.org/Zip.html#Sources for download locations.

4. An Unzip tarball if you are building the Java comp. See
http://www.info-zip.org/UnZip.html#Downloads for download locations.

PREREQUISITES:

None

HINT:

=
CONTENTS:
=

   1.  Introduction
   2.  The Treelang compiler
   3.  The Fortran compiler
 GMP installation
 MPFR installation
 GCC installation
   4.  The Ada compiler
   5.  Package dependencies
   6.  Installing the GNAT Ada compiler
   7.  Configuring the PATH variable
   8.  Chapter 5 GCC-Pass1 Modifications
   9.  Reconfiguring the PATH variable
   10. Chapter 5 GCC-Pass2 Modifications
   11. Chapter 5 Ncurses modifications
   12. Chapter 6 GCC Modifications
   13. Chapter 6 Ncurses modifications
   14. Closing


1. INTRODUCTION:


The default installation during LFS only installs a C and C++ compiler. If
you know that you'll need additional compilers after LFS is built, it is
easier to just build the additional compilers during LFS. So, you say to
yourself, when I get to the GCC installation in Chapter 6 of LFS, I'll just
add additional compilers to the configure script command and I'll build them
then. This won't work for the Ada, Fortran or Treelang compilers. For
these three compilers, you cannot wait until the GCC installation in Chapter
6 to decide you want/need to install them (Fortran is a slight exception
to this). At this point of Chapter 6, you are in a chroot environment
working with whatever is installed in the /tools directory you created in
Chapter 5 and there are not adequate tools, nor any real way to add them,
to compile Ada and Treelang.

In summary, if you need to install the Ada, Fortran or Treelang compilers
during Chapter 6 of an LFS build, you'll need to do some extra work. The
Java and Objective C compilers can be installed by simply adding them to the
list of compilers in the configure script parameter, --enable-languages=...

In order to install the GCC Ada compiler, you must have an existing Ada
compiler available so GCC can boostrap its version of Ada. If your host has
an existing Ada compiler, you can omit some of this hint and simply use the
updated Chapter 5 and Chapter 6 GCC installation instructions. More on this
in the appropriate sections later in the hint.

=
2. THE TREELANG COMPILER:
=

You probably don't need the Treelang compiler. It is only good for
developers who are developing a new compiler for GCC. However, if you wish
to build it during a build of LFS, you'll need to install the Bison and Flex
packages before starting the Chapter 6 build of GCC.

=
3. THE JAVA COMPILER
=

gjar, a part of gcj, needs Zip and Unzip to build. Use BLFS
instructions for both.



4. THE ADA COMPILER:


Starting with version 4.x.x of GCC, the Ada installation is simpler, but it
still requires an initial boostrap using an existing Ada compiler. If you
have an Ada compiler on the host system you're building LFS on, there
isn't much required before you can just build GCC.


5. PACKAGE DEPENDENCIES:


As previously mentioned, if you already hav

Re: Updating a hint

2008-12-20 Thread Randy McMurchy
William Immendorf wrote:
> I am updating a hint that is very useful for LFS. It is attached.

I was not notified that this hint was going to be adopted. Additionally,
there is no mention of the original author in the acknowledgments
section, therefore I'd like the hints maintainer to not post this hint
until these items are taken care of.

Thanks,
Randy
-- 
http://linuxfromscratch.org/mailman/listinfo/hints
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


Re: Updating a hint

2008-12-20 Thread William Immendorf
Trying again. This time, it is in the body. The filename is
all_of_gcc_during_lfs.txt.

AUTHOR: William Immendorf 

DATE: 2008-12-20

LICENSE: Creative Commons Attribution-Noncommercial-Share Alike 3.0
United States License
 http://creativecommons.org/licenses/by-nc-sa/3.0/us/

SYNOPSIS: Installing all the GCC compilers while building LFS

DESCRIPTION: This hint will guide you through the installation of any or all
the GCC compilers while building an LFS system. These instructions target
the 4.x.x series of GCC as there have been significant changes since the
3.x.x series. Prior to the 4.x.x series, only the Ada compiler could not be
installed during Chapter 6 of an LFS build. See Randy's
http://www.linuxfromscratch.org/hints/downloads/files/ada_install_during_lfs.txt
hint for instructions to install the Ada compiler during an LFS build if you
are using a version of GCC prior to 4.x.x.

ATTACHMENTS: None

REQUIRED DOWNLOADS:

1. The GCC tarball for whatever version of GCC called for in LFS. This will
be a file named something similar to gcc-4.3.2.tar.bz2

2. The 2005 version of the GNAT compiler found on the AdaCore site. The
download location (https://libre.adacore.com/dynamic/download_page) requires
that you create an account on the AdaCore site before you can download the
package. Nothing is required other than a valid email address. Ensure you
download the 2005 version of the GNAT compiler. The 2006 version will not work.
The file name you need is: gnat-gpl-2005-i686-gnu-linux-gnu-libc2.3-bin.tar.gz.
(not required if your host system has an existing Ada compiler, or you don't
plan on installing the GCC Ada compiler)

3. A Zip tarball if you are building the Java comp. See
http://www.info-zip.org/Zip.html#Sources for download locations.

4. An Unzip tarball if you are building the Java comp. See
http://www.info-zip.org/UnZip.html#Downloads for download locations.

PREREQUISITES:

None

HINT:

=
CONTENTS:
=

1.  Introduction
2.  The Treelang compiler
3.  The Fortran compiler
  GMP installation
  MPFR installation
  GCC installation
4.  The Ada compiler
5.  Package dependencies
6.  Installing the GNAT Ada compiler
7.  Configuring the PATH variable
8.  Chapter 5 GCC-Pass1 Modifications
9.  Reconfiguring the PATH variable
10. Chapter 5 GCC-Pass2 Modifications
11. Chapter 5 Ncurses modifications
12. Chapter 6 GCC Modifications
13. Chapter 6 Ncurses modifications
14. Closing


1. INTRODUCTION:


The default installation during LFS only installs a C and C++ compiler. If
you know that you'll need additional compilers after LFS is built, it is
easier to just build the additional compilers during LFS. So, you say to
yourself, when I get to the GCC installation in Chapter 6 of LFS, I'll just
add additional compilers to the configure script command and I'll build them
then. This won't work for the Ada, Fortran or Treelang compilers. For
these three compilers, you cannot wait until the GCC installation in Chapter
6 to decide you want/need to install them (Fortran is a slight exception
to this). At this point of Chapter 6, you are in a chroot environment
working with whatever is installed in the /tools directory you created in
Chapter 5 and there are not adequate tools, nor any real way to add them,
to compile Ada and Treelang.

In summary, if you need to install the Ada, Fortran or Treelang compilers
during Chapter 6 of an LFS build, you'll need to do some extra work. The
Java and Objective C compilers can be installed by simply adding them to the
list of compilers in the configure script parameter, --enable-languages=...

In order to install the GCC Ada compiler, you must have an existing Ada
compiler available so GCC can boostrap its version of Ada. If your host has
an existing Ada compiler, you can omit some of this hint and simply use the
updated Chapter 5 and Chapter 6 GCC installation instructions. More on this
in the appropriate sections later in the hint.

=
2. THE TREELANG COMPILER:
=

You probably don't need the Treelang compiler. It is only good for
developers who are developing a new compiler for GCC. However, if you wish
to build it during a build of LFS, you'll need to install the Bison and Flex
packages before starting the Chapter 6 build of GCC.

=
3. THE JAVA COMPILER
=

gjar, a part of gcj, needs Zip and Unzip to build. Use BLFS
instructions for both.



4. THE ADA COMPILER:


Starting with version 4.x.x of GCC, the Ada installation is simpler, but it
still requires an initial boostrap using an existing Ada compiler. If you
have an Ada compiler on the host system you're building LFS on, there
isn't much required before you can just build GCC.

=