Ignore:
Timestamp:
01/17/2006 07:39:16 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
23102484
Parents:
8fee5c5
Message:

Ported r7279 from trunk to alphabetical.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/alphabetical/BOOK@7280 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/binutils-pass1.xml

    r8fee5c5 r5aa74f2  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-tools-binutils-pass1" role="wrap">
    7 <title>Binutils-&binutils-version; - Pass 1</title>
    8 <?dbhtml filename="binutils-pass1.html"?>
     9  <?dbhtml filename="binutils-pass1.html"?>
    910
    10 <indexterm zone="ch-tools-binutils-pass1">
    11 <primary sortas="a-Binutils">Binutils</primary>
    12 <secondary>tools, pass 1</secondary></indexterm>
     11  <title>Binutils-&binutils-version; - Fase 1</title>
    1312
    14 <sect2 role="package"><title/>
    15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/binutils.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
     13  <indexterm zone="ch-tools-binutils-pass1">
     14    <primary sortas="a-Binutils">Binutils</primary>
     15    <secondary>herramientas, fase 1</secondary>
     16  </indexterm>
    1617
    17 <segmentedlist>
    18 <segtitle>&buildtime;</segtitle>
    19 <segtitle>&diskspace;</segtitle>
    20 <seglistitem><seg>1.0 SBU</seg><seg>170 MB</seg></seglistitem>
    21 </segmentedlist>
     18  <sect2 role="package">
     19    <title/>
    2220
    23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/binutils.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
     21    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     22    href="../chapter06/binutils.xml"
     23    xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
    2424
    25 </sect2>
     25    <segmentedlist>
     26      <segtitle>&buildtime;</segtitle>
     27      <segtitle>&diskspace;</segtitle>
    2628
    27 <sect2 role="installation">
    28 <title>Installation of Binutils</title>
     29      <seglistitem>
     30        <seg>1.0 SBU</seg>
     31        <seg>170 MB</seg>
     32      </seglistitem>
     33    </segmentedlist>
    2934
    30 <para>It is important that Binutils be the first package compiled
    31 because both Glibc and GCC perform various tests on the available
    32 linker and assembler to determine which of their own features to
    33 enable.</para>
     35    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     36    href="../chapter06/binutils.xml"
     37    xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
    3438
    35 <para>The Binutils documentation recommends building Binutils outside of the
    36 source directory in a dedicated build directory:</para>
     39  </sect2>
     40
     41  <sect2 role="installation">
     42    <title>Instalación de Binutils</title>
     43
     44    <para>Es importante que Binutils sea el primer paquete que compiles, pues
     45    tanto Glibc como GCC llevan a cabo varias comprobaciones sobre el enlazador y
     46    el ensamblador disponibles para determinar qué características activar.</para>
     47
     48    <para>La documentación de Binutils recomienda construirlo en un directorio
     49    dedicado, fuera del árbol de las fuentes:</para>
    3750
    3851<screen><userinput>mkdir -v ../binutils-build
    3952cd ../binutils-build</userinput></screen>
    4053
    41 <note><para>In order for the SBU values listed in the rest of the book
    42 to be of any use, measure the time it takes to build this package from
    43 the configuration, up to and including the first install. To achieve
    44 this easily, wrap the three commands in a <command>time</command>
    45 command like this: <userinput>time { ./configure ... &amp;&amp; make
    46 &amp;&amp; make install; }</userinput>.</para></note>
     54    <note>
     55      <para>Si quieres que los valores de los SBUs mostrados en el resto del
     56      libro sean de utilidad, mide el tiempo que se tarda en construir este
     57      paquete desde la compilación hasta la primera instalación. Para ello,
     58      envuelve los comandos dentro de un comando <command>time</command> de
     59      esta forma: <userinput>time { ./configure ... &amp;&amp; make &amp;&amp;
     60      make install; }</userinput>.</para>
     61    </note>
    4762
    48 <para>Now prepare Binutils for compilation:</para>
     63    <para>Prepara Binutils para su compilación:</para>
    4964
    5065<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools --disable-nls</userinput></screen>
    5166
    52 <para>The meaning of the configure options:</para>
     67    <variablelist>
     68      <title>Significado de las opciones de configure:</title>
    5369
    54 <variablelist>
    55 <varlistentry>
    56 <term><parameter>--prefix=/tools</parameter></term>
    57 <listitem><para>This tells the configure script to prepare to install the Binutils
    58 programs in the <filename class="directory">/tools</filename> directory.</para></listitem>
    59 </varlistentry>
     70      <varlistentry>
     71        <term><parameter>--prefix=/tools</parameter></term>
     72        <listitem>
     73          <para>Esto le indica al guión configure que los programas de
     74          Binutils se instalarán en el directorio <filename
     75          class="directory">/tools</filename>.</para>
     76        </listitem>
     77      </varlistentry>
    6078
    61 <varlistentry>
    62 <term><parameter>--disable-nls</parameter></term>
    63 <listitem><para>This disables internationalization as i18n is not needed for the
    64 temporary tools.</para></listitem>
    65 </varlistentry>
    66 </variablelist>
     79      <varlistentry>
     80        <term><parameter>--disable-nls</parameter></term>
     81        <listitem>
     82          <para>Esta opción desactiva la internacionalización, pues i18n no es
     83          necesario en las herramientas temporales.</para>
     84        </listitem>
     85      </varlistentry>
    6786
    68 <para>Continue with compiling the package:</para>
     87    </variablelist>
     88
     89    <para>Compila el paquete:</para>
    6990
    7091<screen><userinput>make</userinput></screen>
    7192
    72 <para>Compilation is now complete. Ordinarily we would now run the
    73 test suite, but at this early stage the test suite framework (Tcl,
    74 Expect, and DejaGNU) is not yet in place. The benefits of running the
    75 tests at this point are minimal since the programs from this
    76 first pass will soon be replaced by those from the second.</para>
     93    <para>La compilación se ha completado. Normalmente deberíamos ejecutar
     94    ahora el banco de pruebas, pero en esta temprana fase el entorno de
     95    trabajo para los bancos de pruebas (Tcl, Expect y DejaGnu) todavía no
     96    está en su sitio. Los beneficios de ejecutar las pruebas ahora son mínimos,
     97    pues los programas de esta primera fase pronto serán sustituidos por los
     98    de la segunda.</para>
    7799
    78 <para>Install the package:</para>
     100    <para>Instala el paquete:</para>
    79101
    80102<screen><userinput>make install</userinput></screen>
    81103
    82 <para>Next, prepare the linker for the <quote>Adjusting</quote> phase
    83 later on:</para>
     104    <para>Prepara el enlazador para la posterior fase de
     105    <quote>ajuste</quote>:</para>
    84106
    85107<screen><userinput>make -C ld clean
    86108make -C ld LIB_PATH=/tools/lib</userinput></screen>
    87109
    88 <para>The meaning of the make parameters:</para>
     110    <variablelist>
     111      <title>Significado de los parámetros de make:</title>
    89112
    90 <variablelist>
    91 <varlistentry>
    92 <term><parameter>-C ld clean</parameter></term>
    93 <listitem><para>This tells the make program to remove all compiled
    94 files in the <filename class="directory">ld</filename>
    95 subdirectory.</para></listitem>
    96 </varlistentry>
     113      <varlistentry>
     114        <term><parameter>-C ld clean</parameter></term>
     115        <listitem>
     116          <para>Esto le indica al programa make que elimine todos los ficheros
     117          compilados que haya en el subdirectorio
     118          <filename class="directory">ld</filename>.</para>
     119        </listitem>
     120      </varlistentry>
    97121
    98 <varlistentry>
    99 <term><parameter>-C ld LIB_PATH=/tools/lib</parameter></term>
    100 <listitem><para>This option rebuilds everything in the
    101 <filename class="directory">ld</filename> subdirectory. Specifying
    102 the <envar>LIB_PATH</envar> Makefile variable on the command
    103 line allows us to override the default value
    104 and point it to the temporary tools location. The value of this variable
    105 specifies the linker's default library search path. This preparation
    106 is used later in the chapter.</para></listitem>
    107 </varlistentry>
    108 </variablelist>
     122      <varlistentry>
     123        <term><parameter>-C ld LIB_PATH=/tools/lib</parameter></term>
     124        <listitem>
     125          <para>Esta opción vuelve a construir todo dentro del subdirectorio
     126          <filename class="directory">ld</filename>. Especificar la variable
     127          <envar>LIB_PATH</envar> del Makefile en la línea de comandos nos
     128          permite obviar su valor por defecto y apuntar a nuestro directorio
     129          de herramientas temporales. El valor de esta variable especifica
     130          la ruta de búsqueda de librerías por defecto del enlazador. Estos
     131          preparativos se utilizan más tarde en este capítulo.</para>
     132        </listitem>
     133      </varlistentry>
    109134
    110 <warning><para><emphasis>Do not</emphasis> remove the Binutils
    111 build and source directories yet. These will be needed again in their
    112 current state later in this chapter.</para></warning>
     135    </variablelist>
    113136
    114 </sect2>
     137    <warning>
     138      <para><emphasis>No borres</emphasis> los directorios de fuentes y de
     139      construcción de Binutils. Los necesitarás un poco más adelante en este
     140      capítulo en el estado en que se encuentran ahora.</para>
     141    </warning>
    115142
    116 <sect2 role="content"><title/>
    117 <para>Details on this package are located in <xref
    118 linkend="contents-binutils" role="."/></para>
    119 </sect2>
     143  </sect2>
     144
     145  <sect2 role="content">
     146    <title/>
     147
     148    <para>Los detalles sobre este paquete se encuentran en la
     149    <xref linkend="contents-binutils"/>.</para>
     150
     151  </sect2>
    120152
    121153</sect1>
    122 
Note: See TracChangeset for help on using the changeset viewer.