Changeset e1b2402 in clfs-embedded


Ignore:
Timestamp:
Jan 24, 2009, 10:22:31 AM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
4b05af9
Parents:
ae582f6
Message:

GCC and Binutils Updates to Embedded

Location:
BOOK
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/arm-chapter.xml

    rae582f6 re1b2402  
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/variables.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/linux-headers.xml"/>
     19  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
     20  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
    1921  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
    2022  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
  • BOOK/cross-tools/common/binutils.xml

    rae582f6 re1b2402  
    3232    enable.</para>
    3333
    34     <para os="p1">To make sure that the proper syntax is used for a couple of
     34    <para os="p1">The following patch contains a number of updates to the
     35    &binutils-version; branch by the Binutils developers:</para>
     36
     37<screen os="p2"><userinput>patch -Np1 -i ../&binutils-branch_update-patch;</userinput></screen>
     38
     39    <para os="p3">To make sure that the proper syntax is used for a couple of
    3540    tools, apply the following patch:</para>
    3641
    37 <screen os="p2"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
     42<screen os="p4"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
    3843
    3944    <para os="b">The Binutils documentation recommends building Binutils outside of the
  • BOOK/cross-tools/common/gcc-final.xml

    rae582f6 re1b2402  
    3333    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    3434    href="gcc-static.xml"
     35    xpointer="xpointer(//*[@os='p3'])"/>
     36
     37    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     38    href="gcc-static.xml"
     39    xpointer="xpointer(//*[@os='p4'])"/>
     40
     41    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     42    href="gcc-static.xml"
    3543    xpointer="xpointer(//*[@os='c'])"/>
    3644
     
    4452
    4553<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
    46     --target=${CLFS_TARGET} --disable-multilib \
    47     --with-sysroot=${CLFS} --disable-nls --enable-shared \
    48     --enable-languages=c --enable-__cxa_atexit \
    49     --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
     54  --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
     55  --with-sysroot=${CLFS} --disable-nls --enable-shared \
     56  --enable-languages=c --enable-c99 --enable-long-long \
     57  --with-mpfr=/cross-tools --with-gmp=/cross-tools</userinput></screen>
    5058
    5159    <variablelist os="af">
     
    5563        <term><parameter>--enable-languages=c</parameter></term>
    5664        <listitem>
    57           <para>This option ensures that only the C compiler is built. If the C++ compiler is needed, use --enable-languages=c,c++</para>
     65          <para>This option ensures that only the C compiler is built.</para>
    5866        </listitem>
    5967      </varlistentry>
    6068
    6169      <varlistentry os="af2">
    62         <term><parameter>--enable-__cxa_atexit</parameter></term>
    63         <listitem>
    64           <para>This option allows use of __cxa_atexit, rather than atexit,
    65           to register C++ destructors for local statics and global objects
    66           and is essential for fully standards-compliant handling of destructors.
    67           It also affects the C++ ABI and therefore results in C++ shared libraries
    68           and C++ programs that are interoperable with other Linux distributions.</para>
    69         </listitem>
    70       </varlistentry>
    71 
    72       <varlistentry os="af3">
    7370        <term><parameter>--enable-c99</parameter></term>
    7471        <listitem>
     
    7774      </varlistentry>
    7875
    79       <varlistentry os="af4">
     76      <varlistentry os="af3">
    8077        <term><parameter>--enable-long-long</parameter></term>
    8178        <listitem>
    8279          <para>Enables long long support in the compiler.</para>
    83         </listitem>
    84       </varlistentry>
    85 
    86       <varlistentry os="af5">
    87         <term><parameter>--enable-threads=posix</parameter></term>
    88         <listitem>
    89           <para>This enables C++ exception handling for multi-threaded code.</para>
    9080        </listitem>
    9181      </varlistentry>
     
    115105
    116106      <seglistitem>
    117         <seg>c++, cc (link to gcc), cpp, g++, gcc, gccbug, and gcov</seg>
     107        <seg>cc (link to gcc), gcc, gccbug, and gcov</seg>
    118108        <seg>libgcc.a, libgcc_eh.a, libgcc_s.so, libmudflap.[a,so],
    119         libmudflapth.[a,so], libstdc++.[a,so], and
    120         libsupc++.a</seg>
     109        and libmudflapth.[a,so]</seg>
    121110      </seglistitem>
    122111    </segmentedlist>
     
    133122          <indexterm zone="ch-cross-tools-gcc-final cc">
    134123            <primary sortas="b-cc">cc</primary>
    135           </indexterm>
    136         </listitem>
    137       </varlistentry>
    138 
    139       <varlistentry id="cpp">
    140         <term><command>cpp</command></term>
    141         <listitem>
    142           <para>The C preprocessor; it is used by the compiler to expand the
    143           #include, #define, and similar statements in the source files</para>
    144           <indexterm zone="ch-cross-tools-gcc-final cpp">
    145             <primary sortas="b-cpp">cpp</primary>
    146           </indexterm>
    147         </listitem>
    148       </varlistentry>
    149 
    150       <varlistentry id="c">
    151         <term><command>c++</command></term>
    152         <listitem>
    153           <para>The C++ compiler</para>
    154           <indexterm zone="ch-cross-tools-gcc-final c">
    155             <primary sortas="b-c++">c++</primary>
    156           </indexterm>
    157         </listitem>
    158       </varlistentry>
    159 
    160       <varlistentry id="g">
    161         <term><command>g++</command></term>
    162         <listitem>
    163           <para>The C++ compiler</para>
    164           <indexterm zone="ch-cross-tools-gcc-final g">
    165             <primary sortas="b-g++">g++</primary>
    166124          </indexterm>
    167125        </listitem>
     
    220178      </varlistentry>
    221179
    222       <varlistentry id="libstdc">
    223         <term><filename class="libraryfile">libstdc++</filename></term>
    224         <listitem>
    225           <para>The standard C++ library</para>
    226           <indexterm zone="ch-cross-tools-gcc-final libstdc">
    227             <primary sortas="c-libstdc++">libstdc++</primary>
    228           </indexterm>
    229         </listitem>
    230       </varlistentry>
    231 
    232       <varlistentry id="libsupc">
    233         <term><filename class="libraryfile">libsupc++</filename></term>
    234         <listitem>
    235           <para>Provides supporting routines for the C++ programming
    236           language</para>
    237           <indexterm zone="ch-cross-tools-gcc-final libsupc">
    238             <primary sortas="c-libsupc++">libsupc++</primary>
    239           </indexterm>
    240         </listitem>
    241       </varlistentry>
    242 
    243180    </variablelist>
    244181
  • BOOK/cross-tools/common/gcc-static.xml

    rae582f6 re1b2402  
    2828    and no Threads</title>
    2929
    30     <para os="p1">To make sure that a couple of tools use the proper syntax,
     30    <para os="p1">The following patch contains a number of updates to the
     31    &gcc-version; branch by the GCC developers:</para>
     32
     33<screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen>
     34
     35    <para os="p3">To make sure that a couple of tools use the proper syntax,
    3136    apply the following patch:</para>
    3237
    33 <screen os="p2"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
     38<screen os="p4"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
    3439
    3540    <para os="c">The GCC documentation recommends building GCC outside of the source
     
    4146    <para os="e">Prepare GCC for compilation:</para>
    4247
    43 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
    44     --target=${CLFS_TARGET} --disable-multilib \
    45     --with-sysroot=${CLFS} --disable-nls --disable-shared \
    46     --without-headers --with-newlib --disable-decimal-float \
    47     --disable-libgomp --disable-libmudflap --disable-libssp \
    48     --disable-threads --enable-languages=c</userinput></screen>
     48<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
     49  ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
     50  --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
     51  --with-sysroot=${CLFS} --disable-nls  --disable-shared \
     52  --with-mpfr=/cross-tools --with-gmp=/cross-tools \
     53  --without-headers --with-newlib --disable-decimal-float \
     54  --disable-libgomp --disable-libmudflap --disable-libssp \
     55  --disable-threads --enable-languages=c</userinput></screen>
    4956
    5057    <variablelist os="af">
  • BOOK/cross-tools/mips-chapter.xml

    rae582f6 re1b2402  
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/linux-headers.xml"/>
     19  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
     20  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
    1921  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
    2022  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
  • BOOK/cross-tools/wrt-chapter.xml

    rae582f6 re1b2402  
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/linux-headers.xml"/>
     19  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
     20  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
    1921  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
    2022  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
  • BOOK/cross-tools/x86-chapter.xml

    rae582f6 re1b2402  
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/variables.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/linux-headers.xml"/>
     19  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
     20  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
    1921  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
    2022  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
  • BOOK/materials/common/patches.xml

    rae582f6 re1b2402  
    1818
    1919  <variablelist role="materials">
     20
     21    <varlistentry>
     22      <term>Binutils Branch Update Patch - <token>&binutils-branch_update-patch-size;</token>:</term>
     23      <listitem>
     24        <para>Download: <ulink
     25        url="&patches-root;&binutils-branch_update-patch;"/></para>
     26        <para>MD5 sum: <literal>&binutils-branch_update-patch-md5;</literal></para>
     27      </listitem>
     28    </varlistentry>
    2029
    2130    <varlistentry>
     
    4756
    4857    <varlistentry>
     58      <term>GCC Branch Update Patch - <token>&gcc-branch_update-patch-size;</token>:</term>
     59      <listitem>
     60        <para>Download: <ulink
     61        url="&patches-root;&gcc-branch_update-patch;"/></para>
     62        <para>MD5 sum: <literal>&gcc-branch_update-patch-md5;</literal></para>
     63      </listitem>
     64    </varlistentry>
     65
     66    <varlistentry>
    4967      <term>GCC Posix Patch - <token>&gcc-posix-patch-size;</token>:</term>
    5068      <listitem>
     
    5270        url="&patches-root;&gcc-posix-patch;"/></para>
    5371        <para>MD5 sum: <literal>&gcc-posix-patch-md5;</literal></para>
     72      </listitem>
     73    </varlistentry>
     74
     75    <varlistentry>
     76      <term>GMP Branch Update Patch - <token>&gmp-branch_update-patch-size;</token>:</term>
     77      <listitem>
     78        <para>Download: <ulink
     79        url="&patches-root;&gmp-branch_update-patch;"/></para>
     80        <para>MD5 sum: <literal>&gmp-branch_update-patch-md5;</literal></para>
     81      </listitem>
     82    </varlistentry>
     83
     84    <varlistentry>
     85      <term>MPFR Branch Update Patch - <token>&mpfr-branch_update-patch-size;</token>:</term>
     86      <listitem>
     87        <para>Download: <ulink
     88        url="&patches-root;&mpfr-branch_update-patch;"/></para>
     89        <para>MD5 sum: <literal>&mpfr-branch_update-patch-md5;</literal></para>
    5490      </listitem>
    5591    </varlistentry>
  • BOOK/packages.ent

    rae582f6 re1b2402  
    99<!ENTITY binutils-url "&gnu;binutils/binutils-&binutils-version;.tar.bz2">
    1010<!ENTITY binutils-md5 "17a52219dee5a76c1a9d9b0bfd337d66">
    11 <!ENTITY binutils-home "http://sources.redhat.com/binutils/">
     11<!ENTITY binutils-home "http://sources.redhat.com/binutils">
    1212
    1313<!ENTITY busybox-version "1.12.1">
     
    3030
    3131<!ENTITY gcc-version "4.3.2">
    32 <!ENTITY gcc-size "57,616 KB">
     32<!ENTITY gcc-size "57,648 KB">
    3333<!ENTITY gcc-url "&gnu;gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
    3434<!ENTITY gcc-md5 "5dfac5da961ecd5f227c3175859a486d">
    3535<!ENTITY gcc-home "http://gcc.gnu.org">
     36
     37<!ENTITY gmp-version "4.2.4">
     38<!ENTITY gmp-size "1,676 KB">
     39<!ENTITY gmp-url "&gnu;gmp/gmp-&gmp-version;.tar.bz2">
     40<!ENTITY gmp-md5 "fc1e3b3a2a5038d4d74138d0b9cf8dbe">
     41<!ENTITY gmp-home "http://gmplib.org/">
    3642
    3743<!ENTITY iana-etc-version "2.20">
     
    5460<!ENTITY linux-headers-md5 "91871367451dfe36926f860887657db9">
    5561<!ENTITY linux-headers-home "http://headers.cross-lfs.org">
     62
     63<!ENTITY mpfr-version "2.3.2">
     64<!ENTITY mpfr-size "968 KB">
     65<!ENTITY mpfr-url "http://www.mpfr.org/mpfr-current/mpfr-&mpfr-version;.tar.bz2">
     66<!ENTITY mpfr-md5 "527147c097874340cb9cee0579dacf3b">
     67<!ENTITY mpfr-home "http://www.mpfr.org/">
    5668
    5769<!ENTITY uclibc-version "0.9.30-rc3">
  • BOOK/patches.ent

    rae582f6 re1b2402  
    44
    55<!-- Start of Common Patches -->
     6
     7<!ENTITY binutils-branch_update-patch "binutils-&binutils-version;-branch_update-4.patch">
     8<!ENTITY binutils-branch_update-patch-md5 "4f587bb8161b08e60b7e7bc98c56ff7d">
     9<!ENTITY binutils-branch_update-patch-size "120 KB">
    610
    711<!ENTITY binutils-posix-patch "binutils-&binutils-version;-posix-1.patch">
     
    1721<!ENTITY busybox-iptunnel_headers-patch-size "4 KB">
    1822
     23<!ENTITY gcc-branch_update-patch "gcc-&gcc-version;-branch_update-2.patch">
     24<!ENTITY gcc-branch_update-patch-md5 "07a92e6f10d82ae3ae634a993d6bde82">
     25<!ENTITY gcc-branch_update-patch-size "864 KB">
     26
    1927<!ENTITY gcc-posix-patch "gcc-&gcc-version;-posix-1.patch">
    2028<!ENTITY gcc-posix-patch-md5 "ed26ea522e014b2e39adf066bd44053b">
    21 <!ENTITY gcc-posix-patch-size "12 KB">
     29<!ENTITY gcc-posix-patch-size "16 KB">
     30
     31<!ENTITY gmp-branch_update-patch "gmp-&gmp-version;-branch_update-1.patch">
     32<!ENTITY gmp-branch_update-patch-md5 "31606a19116f646a2d891d639fbfc339">
     33<!ENTITY gmp-branch_update-patch-size "12 KB">
     34
     35<!ENTITY mpfr-branch_update-patch "mpfr-&mpfr-version;-branch_update-1.patch">
     36<!ENTITY mpfr-branch_update-patch-md5 "799177f97cae779baad90156bbd3192a">
     37<!ENTITY mpfr-branch_update-patch-size "20 KB">
    2238
    2339<!ENTITY uclibc-flock_fixes-patch "uClibc-&uclibc-version;-flock_fixes-1.patch">
Note: See TracChangeset for help on using the changeset viewer.