[Clfs-commits] commit: r4529 - in /branches/clfs-embedded/BOOK: ./ cross-tools/ cross-tools/common/ materials/common/

svn at cross-lfs.org svn at cross-lfs.org
Sat Jan 24 10:22:31 PST 2009


Author: jim
Date: Sat Jan 24 18:22:31 2009
New Revision: 4529

Log:
GCC and Binutils Updates to Embedded

Added:
    branches/clfs-embedded/BOOK/cross-tools/common/gmp.xml
    branches/clfs-embedded/BOOK/cross-tools/common/mpfr.xml
Modified:
    branches/clfs-embedded/BOOK/cross-tools/arm-chapter.xml
    branches/clfs-embedded/BOOK/cross-tools/common/binutils.xml
    branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml
    branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml
    branches/clfs-embedded/BOOK/cross-tools/mips-chapter.xml
    branches/clfs-embedded/BOOK/cross-tools/wrt-chapter.xml
    branches/clfs-embedded/BOOK/cross-tools/x86-chapter.xml
    branches/clfs-embedded/BOOK/materials/common/patches.xml
    branches/clfs-embedded/BOOK/packages.ent
    branches/clfs-embedded/BOOK/patches.ent

Modified: branches/clfs-embedded/BOOK/cross-tools/arm-chapter.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/arm-chapter.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/arm-chapter.xml Sat Jan 24 18:22:31 2009
@@ -16,6 +16,8 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/abi.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/variables.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/linux-headers.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/uclibc.xml"/>

Modified: branches/clfs-embedded/BOOK/cross-tools/common/binutils.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/common/binutils.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/common/binutils.xml Sat Jan 24 18:22:31 2009
@@ -31,10 +31,15 @@
     linker and assembler to determine which of their own features to
     enable.</para>
 
-    <para os="p1">To make sure that the proper syntax is used for a couple of
+    <para os="p1">The following patch contains a number of updates to the
+    &binutils-version; branch by the Binutils developers:</para>
+
+<screen os="p2"><userinput>patch -Np1 -i ../&binutils-branch_update-patch;</userinput></screen>
+
+    <para os="p3">To make sure that the proper syntax is used for a couple of
     tools, apply the following patch:</para>
 
-<screen os="p2"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
+<screen os="p4"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
 
     <para os="b">The Binutils documentation recommends building Binutils outside of the
     source directory in a dedicated build directory:</para>

Modified: branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml Sat Jan 24 18:22:31 2009
@@ -32,6 +32,14 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='p3'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='p4'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
     xpointer="xpointer(//*[@os='c'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
@@ -43,10 +51,10 @@
     xpointer="xpointer(//*[@os='e'])"/>
 
 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
-    --target=${CLFS_TARGET} --disable-multilib \
-    --with-sysroot=${CLFS} --disable-nls --enable-shared \
-    --enable-languages=c --enable-__cxa_atexit \
-    --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
+  --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
+  --with-sysroot=${CLFS} --disable-nls --enable-shared \
+  --enable-languages=c --enable-c99 --enable-long-long \
+  --with-mpfr=/cross-tools --with-gmp=/cross-tools</userinput></screen>
 
     <variablelist os="af">
       <title>The meaning of the new configure options:</title>
@@ -54,39 +62,21 @@
       <varlistentry os="af1">
         <term><parameter>--enable-languages=c</parameter></term>
         <listitem>
-          <para>This option ensures that only the C compiler is built. If the C++ compiler is needed, use --enable-languages=c,c++</para>
+          <para>This option ensures that only the C compiler is built.</para>
         </listitem>
       </varlistentry>
 
       <varlistentry os="af2">
-        <term><parameter>--enable-__cxa_atexit</parameter></term>
-        <listitem>
-          <para>This option allows use of __cxa_atexit, rather than atexit,
-          to register C++ destructors for local statics and global objects
-          and is essential for fully standards-compliant handling of destructors.
-          It also affects the C++ ABI and therefore results in C++ shared libraries
-          and C++ programs that are interoperable with other Linux distributions.</para>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry os="af3">
         <term><parameter>--enable-c99</parameter></term>
         <listitem>
           <para>Enable C99 support for C programs.</para>
         </listitem>
       </varlistentry>
 
-      <varlistentry os="af4">
+      <varlistentry os="af3">
         <term><parameter>--enable-long-long</parameter></term>
         <listitem>
           <para>Enables long long support in the compiler.</para>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry os="af5">
-        <term><parameter>--enable-threads=posix</parameter></term>
-        <listitem>
-          <para>This enables C++ exception handling for multi-threaded code.</para>
         </listitem>
       </varlistentry>
 
@@ -114,10 +104,9 @@
       <segtitle>Installed libraries</segtitle>
 
       <seglistitem>
-        <seg>c++, cc (link to gcc), cpp, g++, gcc, gccbug, and gcov</seg>
+        <seg>cc (link to gcc), gcc, gccbug, and gcov</seg>
         <seg>libgcc.a, libgcc_eh.a, libgcc_s.so, libmudflap.[a,so],
-        libmudflapth.[a,so], libstdc++.[a,so], and
-        libsupc++.a</seg>
+        and libmudflapth.[a,so]</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -132,37 +121,6 @@
           <para>The C compiler</para>
           <indexterm zone="ch-cross-tools-gcc-final cc">
             <primary sortas="b-cc">cc</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry id="cpp">
-        <term><command>cpp</command></term>
-        <listitem>
-          <para>The C preprocessor; it is used by the compiler to expand the
-          #include, #define, and similar statements in the source files</para>
-          <indexterm zone="ch-cross-tools-gcc-final cpp">
-            <primary sortas="b-cpp">cpp</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry id="c">
-        <term><command>c++</command></term>
-        <listitem>
-          <para>The C++ compiler</para>
-          <indexterm zone="ch-cross-tools-gcc-final c">
-            <primary sortas="b-c++">c++</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry id="g">
-        <term><command>g++</command></term>
-        <listitem>
-          <para>The C++ compiler</para>
-          <indexterm zone="ch-cross-tools-gcc-final g">
-            <primary sortas="b-g++">g++</primary>
           </indexterm>
         </listitem>
       </varlistentry>
@@ -219,27 +177,6 @@
         </listitem>
       </varlistentry>
 
-      <varlistentry id="libstdc">
-        <term><filename class="libraryfile">libstdc++</filename></term>
-        <listitem>
-          <para>The standard C++ library</para>
-          <indexterm zone="ch-cross-tools-gcc-final libstdc">
-            <primary sortas="c-libstdc++">libstdc++</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry id="libsupc">
-        <term><filename class="libraryfile">libsupc++</filename></term>
-        <listitem>
-          <para>Provides supporting routines for the C++ programming
-          language</para>
-          <indexterm zone="ch-cross-tools-gcc-final libsupc">
-            <primary sortas="c-libsupc++">libsupc++</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
     </variablelist>
 
   </sect2>

Modified: branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml Sat Jan 24 18:22:31 2009
@@ -27,10 +27,15 @@
     <title>Installation of Cross GCC Compiler with Static libgcc
     and no Threads</title>
 
-    <para os="p1">To make sure that a couple of tools use the proper syntax,
+    <para os="p1">The following patch contains a number of updates to the
+    &gcc-version; branch by the GCC developers:</para>
+
+<screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen>
+
+    <para os="p3">To make sure that a couple of tools use the proper syntax,
     apply the following patch:</para>
 
-<screen os="p2"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
+<screen os="p4"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
 
     <para os="c">The GCC documentation recommends building GCC outside of the source
     directory in a dedicated build directory:</para>
@@ -40,12 +45,14 @@
 
     <para os="e">Prepare GCC for compilation:</para>
 
-<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
-    --target=${CLFS_TARGET} --disable-multilib \
-    --with-sysroot=${CLFS} --disable-nls --disable-shared \
-    --without-headers --with-newlib --disable-decimal-float \
-    --disable-libgomp --disable-libmudflap --disable-libssp \
-    --disable-threads --enable-languages=c</userinput></screen>
+<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
+  ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
+  --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
+  --with-sysroot=${CLFS} --disable-nls  --disable-shared \
+  --with-mpfr=/cross-tools --with-gmp=/cross-tools \
+  --without-headers --with-newlib --disable-decimal-float \
+  --disable-libgomp --disable-libmudflap --disable-libssp \
+  --disable-threads --enable-languages=c</userinput></screen>
 
     <variablelist os="af">
       <title>The meaning of the configure options:</title>

Modified: branches/clfs-embedded/BOOK/cross-tools/mips-chapter.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/mips-chapter.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/mips-chapter.xml Sat Jan 24 18:22:31 2009
@@ -16,6 +16,8 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/abi.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/linux-headers.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/uclibc.xml"/>

Modified: branches/clfs-embedded/BOOK/cross-tools/wrt-chapter.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/wrt-chapter.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/wrt-chapter.xml Sat Jan 24 18:22:31 2009
@@ -16,6 +16,8 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/abi.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/linux-headers.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/uclibc.xml"/>

Modified: branches/clfs-embedded/BOOK/cross-tools/x86-chapter.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/x86-chapter.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/x86-chapter.xml Sat Jan 24 18:22:31 2009
@@ -16,6 +16,8 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/abi.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/variables.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/linux-headers.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gmp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpfr.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/uclibc.xml"/>

Modified: branches/clfs-embedded/BOOK/materials/common/patches.xml
==============================================================================
--- branches/clfs-embedded/BOOK/materials/common/patches.xml (original)
+++ branches/clfs-embedded/BOOK/materials/common/patches.xml Sat Jan 24 18:22:31 2009
@@ -17,6 +17,15 @@
   needed to build a CLFS system:</para>
 
   <variablelist role="materials">
+
+    <varlistentry>
+      <term>Binutils Branch Update Patch - <token>&binutils-branch_update-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;&binutils-branch_update-patch;"/></para>
+        <para>MD5 sum: <literal>&binutils-branch_update-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
 
     <varlistentry>
       <term>Binutils Posix Patch - <token>&binutils-posix-patch-size;</token>:</term>
@@ -46,11 +55,38 @@
     </varlistentry>
 
     <varlistentry>
+      <term>GCC Branch Update Patch - <token>&gcc-branch_update-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;&gcc-branch_update-patch;"/></para>
+        <para>MD5 sum: <literal>&gcc-branch_update-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>GCC Posix Patch - <token>&gcc-posix-patch-size;</token>:</term>
       <listitem>
         <para>Download: <ulink
         url="&patches-root;&gcc-posix-patch;"/></para>
         <para>MD5 sum: <literal>&gcc-posix-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
+      <term>GMP Branch Update Patch - <token>&gmp-branch_update-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;&gmp-branch_update-patch;"/></para>
+        <para>MD5 sum: <literal>&gmp-branch_update-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
+      <term>MPFR Branch Update Patch - <token>&mpfr-branch_update-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;&mpfr-branch_update-patch;"/></para>
+        <para>MD5 sum: <literal>&mpfr-branch_update-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 

Modified: branches/clfs-embedded/BOOK/packages.ent
==============================================================================
--- branches/clfs-embedded/BOOK/packages.ent (original)
+++ branches/clfs-embedded/BOOK/packages.ent Sat Jan 24 18:22:31 2009
@@ -8,7 +8,7 @@
 <!ENTITY binutils-size "15,860 KB">
 <!ENTITY binutils-url "&gnu;binutils/binutils-&binutils-version;.tar.bz2">
 <!ENTITY binutils-md5 "17a52219dee5a76c1a9d9b0bfd337d66">
-<!ENTITY binutils-home "http://sources.redhat.com/binutils/">
+<!ENTITY binutils-home "http://sources.redhat.com/binutils">
 
 <!ENTITY busybox-version "1.12.1">
 <!ENTITY busybox-size "1,980 KB">
@@ -29,10 +29,16 @@
 <!ENTITY e2fsprogs-home "http://e2fsprogs.sourceforge.net">
 
 <!ENTITY gcc-version "4.3.2">
-<!ENTITY gcc-size "57,616 KB">
+<!ENTITY gcc-size "57,648 KB">
 <!ENTITY gcc-url "&gnu;gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
 <!ENTITY gcc-md5 "5dfac5da961ecd5f227c3175859a486d">
 <!ENTITY gcc-home "http://gcc.gnu.org">
+
+<!ENTITY gmp-version "4.2.4">
+<!ENTITY gmp-size "1,676 KB">
+<!ENTITY gmp-url "&gnu;gmp/gmp-&gmp-version;.tar.bz2">
+<!ENTITY gmp-md5 "fc1e3b3a2a5038d4d74138d0b9cf8dbe">
+<!ENTITY gmp-home "http://gmplib.org/">
 
 <!ENTITY iana-etc-version "2.20">
 <!ENTITY iana-etc-size "192 KB">
@@ -53,6 +59,12 @@
 <!ENTITY linux-headers-url "&packages-root;linux-headers-&linux-headers-version;.tar.bz2">
 <!ENTITY linux-headers-md5 "91871367451dfe36926f860887657db9">
 <!ENTITY linux-headers-home "http://headers.cross-lfs.org">
+
+<!ENTITY mpfr-version "2.3.2">
+<!ENTITY mpfr-size "968 KB">
+<!ENTITY mpfr-url "http://www.mpfr.org/mpfr-current/mpfr-&mpfr-version;.tar.bz2">
+<!ENTITY mpfr-md5 "527147c097874340cb9cee0579dacf3b">
+<!ENTITY mpfr-home "http://www.mpfr.org/">
 
 <!ENTITY uclibc-version "0.9.30-rc3">
 <!ENTITY uclibc-size "2,248 KB">

Modified: branches/clfs-embedded/BOOK/patches.ent
==============================================================================
--- branches/clfs-embedded/BOOK/patches.ent (original)
+++ branches/clfs-embedded/BOOK/patches.ent Sat Jan 24 18:22:31 2009
@@ -3,6 +3,10 @@
 <!ENTITY patches-root "http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-embedded/patches/">
 
 <!-- Start of Common Patches -->
+
+<!ENTITY binutils-branch_update-patch "binutils-&binutils-version;-branch_update-4.patch">
+<!ENTITY binutils-branch_update-patch-md5 "4f587bb8161b08e60b7e7bc98c56ff7d">
+<!ENTITY binutils-branch_update-patch-size "120 KB">
 
 <!ENTITY binutils-posix-patch "binutils-&binutils-version;-posix-1.patch">
 <!ENTITY binutils-posix-patch-md5 "f2020cb369c2facbfd8987fa2263f31f">
@@ -16,9 +20,21 @@
 <!ENTITY busybox-iptunnel_headers-patch-md5 "f0771cde6810a68c5459683b8c5e69b31">
 <!ENTITY busybox-iptunnel_headers-patch-size "4 KB">
 
+<!ENTITY gcc-branch_update-patch "gcc-&gcc-version;-branch_update-2.patch">
+<!ENTITY gcc-branch_update-patch-md5 "07a92e6f10d82ae3ae634a993d6bde82">
+<!ENTITY gcc-branch_update-patch-size "864 KB">
+
 <!ENTITY gcc-posix-patch "gcc-&gcc-version;-posix-1.patch">
 <!ENTITY gcc-posix-patch-md5 "ed26ea522e014b2e39adf066bd44053b">
-<!ENTITY gcc-posix-patch-size "12 KB">
+<!ENTITY gcc-posix-patch-size "16 KB">
+
+<!ENTITY gmp-branch_update-patch "gmp-&gmp-version;-branch_update-1.patch">
+<!ENTITY gmp-branch_update-patch-md5 "31606a19116f646a2d891d639fbfc339">
+<!ENTITY gmp-branch_update-patch-size "12 KB">
+
+<!ENTITY mpfr-branch_update-patch "mpfr-&mpfr-version;-branch_update-1.patch">
+<!ENTITY mpfr-branch_update-patch-md5 "799177f97cae779baad90156bbd3192a">
+<!ENTITY mpfr-branch_update-patch-size "20 KB">
 
 <!ENTITY uclibc-flock_fixes-patch "uClibc-&uclibc-version;-flock_fixes-1.patch">
 <!ENTITY uclibc-flock_fixes-patch-md5 "aaff25f9503fe380f82be79f82aa04e9">




More information about the Clfs-commits mailing list