mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
merged gnat and gcc
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@801 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
c7ab24803c
commit
de102fc8e9
@ -91,8 +91,8 @@
|
||||
<!ENTITY % librep SYSTEM "prog/librep/librep.ent">
|
||||
<!ENTITY % jdk SYSTEM "prog/jdk/j2sdk.ent">
|
||||
<!ENTITY % ruby SYSTEM "prog/ruby/ruby.ent">
|
||||
<!ENTITY % gnat SYSTEM "prog/gnat/gnat.ent">
|
||||
<!ENTITY % gcc SYSTEM "prog/gcc/gcc.ent">
|
||||
<!ENTITY % gnat SYSTEM "prog/gcc/gnat.ent">
|
||||
<!ENTITY % gcc2 SYSTEM "prog/gcc2/gcc2.ent">
|
||||
%python;
|
||||
%perl-modules;
|
||||
|
@ -2,10 +2,11 @@
|
||||
<?dbhtml filename="gcc.html" dir="general"?>
|
||||
<title>gcc-&gcc-version;</title>
|
||||
|
||||
&gnat-intro;
|
||||
&gnat-inst;
|
||||
&gcc-intro;
|
||||
&gcc-inst;
|
||||
&gcc-exp;
|
||||
&gcc-inst1;
|
||||
&gcc-desc;
|
||||
|
||||
</sect1>
|
||||
|
@ -18,13 +18,82 @@
|
||||
|
||||
<sect2><title>Description</title>
|
||||
|
||||
<para>These programs and libraries have been documented on the
|
||||
LFS gcc-&gcc-version; page and at <xref linkend="gnat"/> except
|
||||
for:</para>
|
||||
<para>The programs and libraries whose descriptions are missing here
|
||||
have been described in the LFS gcc-&gcc-version; page.</para>
|
||||
|
||||
<sect3><title>g77</title>
|
||||
<para>g77 is the fortran compiler invoked by gcc.</para></sect3>
|
||||
|
||||
<sect3><title>add2line</title>
|
||||
<para>add2line converts the ASCII form of the 2-line orbital elements in
|
||||
a file to binary form and appends them to the orbdata files. </para></sect3>
|
||||
|
||||
<sect3><title>gcov</title>
|
||||
<para>gcov is a test coverage program.</para></sect3>
|
||||
|
||||
<sect3><title>gdb</title>
|
||||
<para>gdb is the GNAT debugger.</para></sect3>
|
||||
|
||||
<sect3><title>gnatbind</title>
|
||||
<para>gnatbind is used to bind compiled objects.</para></sect3>
|
||||
|
||||
<sect3><title>gnatbl</title>
|
||||
<para>gnatbl is the Ada linker. </para></sect3>
|
||||
|
||||
<sect3><title>gnatchop</title>
|
||||
<para>gnatchop is useful for renaming files to meet the standard Ada
|
||||
default file naming conventions.</para></sect3>
|
||||
|
||||
<sect3><title>gnatelim</title>
|
||||
<para>gnatelim is used to detect and eliminate unused subprograms in an
|
||||
Ada partition.</para></sect3>
|
||||
|
||||
<sect3><title>gnatfind</title>
|
||||
<para>gnatfind is the GNAT definition/use finder.</para></sect3>
|
||||
|
||||
<sect3><title>gnatgcc</title>
|
||||
<para>gnatgcc is the compiler.</para></sect3>
|
||||
|
||||
<sect3><title>gnathtml.pl</title>
|
||||
<para>gnathtml.pl converts Ada souce files to html for viewing in Web
|
||||
browsers.</para></sect3>
|
||||
|
||||
<sect3><title>gnatkr</title>
|
||||
<para>gnatkr is used to determine the crunched name for a given file,
|
||||
when crunched to a specified maximum length.</para></sect3>
|
||||
|
||||
<sect3><title>gnatlink</title>
|
||||
<para>gnatlink is used to link programs and build an executable file.</para></sect3>
|
||||
|
||||
<sect3><title>gnatls</title>
|
||||
<para>gnatls is the compiled unit browser.</para></sect3>
|
||||
|
||||
<sect3><title>gnatemake</title>
|
||||
<para>gnatmake ia an automatic make facility.</para></sect3>
|
||||
|
||||
<sect3><title>gnatmem</title>
|
||||
<para>gnatmem is the GNAT utility that monitors dynamic allocation and
|
||||
deallocation activity in a program.</para></sect3>
|
||||
|
||||
<sect3><title>gnatprep</title>
|
||||
<para>gnatprep is the GNAT external preprocessor.</para></sect3>
|
||||
|
||||
<sect3><title>gnatpsta</title>
|
||||
<para>gnatpsta determines the values of all the relevant parameters in
|
||||
Standard and outputs to stdout.</para></sect3>
|
||||
|
||||
<sect3><title>gnatpsys</title>
|
||||
<para>gnatpsys determines the values of all the relevant parameters in
|
||||
System and outputs to stdout.</para></sect3>
|
||||
|
||||
<sect3><title>gnatstub</title>
|
||||
<para>gnatstub is a generator of body stubs.</para></sect3>
|
||||
|
||||
<sect3><title>gnatxref</title>
|
||||
<para>gnatxref is the GNAT cross referencer.</para></sect3>
|
||||
|
||||
<sect3><title>gvd</title>
|
||||
<para>gvd is the GNU Visual Debugger.</para></sect3>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -1,36 +1,32 @@
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
|
||||
<para><userinput>export CC=cc</userinput> : This command allows you to
|
||||
use gcc's C compiler instead of gnat's C compiler.</para>
|
||||
|
||||
<para><userinput>export PATH_HOLD=$PATH</userinput> : This command
|
||||
<para><userinput>PATH_HOLD=$PATH</userinput> : This command
|
||||
stores your current path before it's modified so that it can be restored after
|
||||
installation.</para>
|
||||
|
||||
<para><userinput>export PATH=/usr/src/gnat/bin:$PATH</userinput> : This
|
||||
<para><userinput>export PATH=$PATH:/opt/gnat/bin</userinput> : This
|
||||
command allows the build to find gnat's Ada compiler to build
|
||||
Ada.</para>
|
||||
|
||||
<para><userinput>touch treeprs.ads [es]info.h nmake.ad[bs]</userinput> :
|
||||
This command creates necessary files for the Ada build. This step
|
||||
may be skipped if you don't want to compile the ada frontend.</para>
|
||||
|
||||
<para><userinput>--enable-languages=c,c++,objc,f77,ada,java</userinput>
|
||||
: This command builds all available languages in the gcc package except
|
||||
java. You can modify this command to remove unwanted languages. If you
|
||||
are removing Ada, use the separate installation instructions below.</para>
|
||||
: This command builds all available languages in the gcc package.
|
||||
You may modify this command to remove unwanted languages.</para>
|
||||
|
||||
<para><userinput>--enable-shared --enable-threads=posix
|
||||
--enable-__cxa_atexit</userinput> : These commands are required to build
|
||||
the C++ libraries to published standards.</para>
|
||||
|
||||
<para><userinput>--with-slibdir=/lib</userinput> : This command sets the path to
|
||||
libgcc_s.so.</para>
|
||||
|
||||
<para><userinput>--enable-clocale=gnu</userinput> : This command is a
|
||||
failsafe for incomplete localedata.</para>
|
||||
|
||||
<para><userinput>touch treeprs.ads [es]info.h nmake.ad[bs]</userinput> : This command creates necessary files for the Ada build.</para>
|
||||
|
||||
<para><userinput>make gnatlib_and tools</userinput> : This command
|
||||
completes the Ada build process.</para>
|
||||
completes the Ada build process. Skip this step if you have not enabled
|
||||
ADA as one of the languages.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,25 +3,23 @@
|
||||
|
||||
<para>Install gcc by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>export CC=cc &&
|
||||
unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
export PATH_HOLD=$PATH &&
|
||||
export PATH=/usr/src/gnat/bin:$PATH &&
|
||||
<para><screen><userinput>PATH_HOLD=$PATH &&
|
||||
export PATH=$PATH:/opt/gnat/bin &&
|
||||
cd gcc/ada &&
|
||||
touch treeprs.ads [es]info.h nmake.ad[bs] &&
|
||||
cd ../.. &&
|
||||
mkdir ../gcc-build &&
|
||||
cd ../gcc-build &&
|
||||
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
||||
--enable-languages=c,c++,objc,f77,ada,java --enable-threads=posix \
|
||||
--with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu &&
|
||||
cd ../gcc-&gcc-version;/gcc/ada &&
|
||||
touch treeprs.ads [es]info.h nmake.ad[bs] &&
|
||||
cd /usr/src/gcc-build &&
|
||||
--enable-__cxa_atexit --enable-clocale=gnu &&
|
||||
make bootstrap &&
|
||||
cd gcc &&
|
||||
make gnatlib_and_tools &&
|
||||
cd .. &&
|
||||
make -C gcc gnatlib_and_tools &&
|
||||
make install-no-fixedincludes &&
|
||||
export PATH=$PATH_HOLD</userinput></screen></para>
|
||||
|
||||
<para>You may remove the gnat installation:</para>
|
||||
<para><screen><userinput>rm -rf /opt/gnat</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -1,17 +0,0 @@
|
||||
<sect2>
|
||||
<title>Installation of gcc without Ada</title>
|
||||
|
||||
<para>Install gcc by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
mkdir ../gcc-build &&
|
||||
cd ../gcc-build &&
|
||||
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
||||
--enable-languages=c,c++,objc,f77,java --enable-threads=posix \
|
||||
--with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu &&
|
||||
make bootstrap &&
|
||||
make install-no-fixedincludes</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
29
general/prog/gcc/gnat-inst.xml
Normal file
29
general/prog/gcc/gnat-inst.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<sect2>
|
||||
<title>Installation of gnat</title>
|
||||
|
||||
<para>Install gnat by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./doconfig</userinput></screen></para>
|
||||
|
||||
<para>The above script will ask you how and where you would like to install
|
||||
gnat. To avoid conflicts with the system gcc, the package will be installed
|
||||
in a seperate directory, that can later be removed from the system.</para>
|
||||
|
||||
<para>In response to the questions asked by the doconfig script, enter
|
||||
<userinput>3</userinput> in response to the first question
|
||||
and <userinput>/opt/gnat</userinput> in response to the
|
||||
second question.</para>
|
||||
|
||||
<para>To finish the install, run</para>
|
||||
<para><screen><userinput>./doinstall</userinput></screen></para>
|
||||
|
||||
<para>The gnat compiler can be invoked by executing the gcc binary
|
||||
installed by the above script. To avoid conflicts with the system
|
||||
gcc, we will rename the gcc command.</para>
|
||||
<para><screen><userinput>mv /opt/gnat/bin &&
|
||||
mv gcc gnatgcc &&
|
||||
cd real &&
|
||||
mv gcc gnatgcc</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
19
general/prog/gcc/gnat-intro.xml
Normal file
19
general/prog/gcc/gnat-intro.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<sect2>
|
||||
<title>Introduction to gnat (binary version)</title>
|
||||
|
||||
<screen>Download location (FTP): <ulink url="&gnat-download-ftp;"/>
|
||||
Version used: &gnat-version;
|
||||
Package size: &gnat-size;
|
||||
Estimated Disk space required: &gnat-buildsize;</screen>
|
||||
|
||||
<para>The gnat package contains a precompiled Ada compiler.
|
||||
This package is used to satisfy the circular
|
||||
dependency when you recompile gcc to include ada.</para>
|
||||
|
||||
<para>You may skip installation of gnat if you do not want to recompile gcc
|
||||
with ada support.</para>
|
||||
|
||||
<screen>gnat depends on:
|
||||
<xref linkend="tcsh"/></screen>
|
||||
|
||||
</sect2>
|
8
general/prog/gcc/gnat.ent
Normal file
8
general/prog/gcc/gnat.ent
Normal file
@ -0,0 +1,8 @@
|
||||
<!ENTITY gnat SYSTEM "../gnat.xml">
|
||||
<!ENTITY gnat-intro SYSTEM "gnat-intro.xml">
|
||||
<!ENTITY gnat-inst SYSTEM "gnat-inst.xml">
|
||||
<!ENTITY gnat-buildsize "40 MB">
|
||||
<!ENTITY gnat-version "3.14p">
|
||||
<!ENTITY gnat-download-http "">
|
||||
<!ENTITY gnat-download-ftp "ftp://cs.nyu.edu/pub/gnat/3.14p/gnat-3.14p-i686-pc-linux-gnu-bin.tar.gz">
|
||||
<!ENTITY gnat-size "10.5 MB">
|
@ -1,11 +0,0 @@
|
||||
<sect1 id="gnat" xreflabel="gnat-&gnat-version;">
|
||||
<?dbhtml filename="gnat.html" dir="general"?>
|
||||
<title>gnat-&gnat-version;</title>
|
||||
|
||||
&gnat-intro;
|
||||
&gnat-inst;
|
||||
&gnat-config;
|
||||
&gnat-desc;
|
||||
|
||||
</sect1>
|
||||
|
@ -7,7 +7,6 @@
|
||||
&librep;
|
||||
&j2sdk;
|
||||
&ruby;
|
||||
&gnat;
|
||||
&gcc;
|
||||
&gcc2;
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||
"/usr/share/docbook/docbookx.dtd" [
|
||||
|
||||
<!ENTITY version "20030402">
|
||||
<!ENTITY releasedate "April 2nd, 2003">
|
||||
<!ENTITY version "20030403">
|
||||
<!ENTITY releasedate "April 3rd, 2003">
|
||||
|
||||
<!ENTITY % book SYSTEM "book/book.ent">
|
||||
<!ENTITY % preface SYSTEM "preface/preface.ent">
|
||||
|
@ -10,6 +10,9 @@ page in Chapter 1 for details on who wrote what.</para>
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>April 3rd, 2003 [tushar]: programming: merged gnat with
|
||||
gcc instructions, made changes to the gcc instructions.</para></listitem>
|
||||
|
||||
<listitem><para>April 2nd, 2003 [larry]: postlfs: sync xfs patch to LFS
|
||||
kernel version.</para></listitem>
|
||||
|
||||
|
@ -80,8 +80,8 @@ xvid and xsane: <emphasis>Alex Kloss</emphasis></para></listitem>
|
||||
|
||||
<listitem><para>AbiWord, at-spi, ATK, audiofile, avifile, bc, bonobo-activation, bug-buddy,
|
||||
cdrdao, cdrtools, cpio, curl, dhcp, enlightenment, eog, esound,
|
||||
fcron, fluxbox, FNLIB, gail, galeon, gcc, gconf-editor, gdbm, gedit,
|
||||
gimp, GLib2, gmp, gnat, gnet, gnome-applets, gnome-desktop,
|
||||
fcron, fluxbox, FNLIB, gail, galeon, gconf-editor, gdbm, gedit,
|
||||
gimp, GLib2, gmp, gnet, gnome-applets, gnome-desktop,
|
||||
gnome-games, gnome-icon-theme, gnome-libs,
|
||||
gnome-media, gnome-mime-data, gnome-panel, gnome-session,
|
||||
gnome-system-monitor, gnome-terminal, gnome-themes, gnome-utils, gnome-vfs,
|
||||
@ -132,7 +132,7 @@ Bauscher</emphasis></para></listitem>
|
||||
<listitem><para>MySQL: <emphasis>Jesse
|
||||
Tie-Ten-Quee</emphasis></para></listitem>
|
||||
|
||||
<listitem><para>gcc2, j2sdk, mozilla, nas, openoffice and STLport: <emphasis>
|
||||
<listitem><para>gcc, gcc2, j2sdk, mozilla, nas, openoffice and STLport: <emphasis>
|
||||
Tushar Teredesai</emphasis></para></listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
Loading…
Reference in New Issue
Block a user