r5156 - in branches/cross-lfs/BOOK: . cross-tools final-system introduction materials

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 1 19:36:02 PDT 2005


Author: jhuntwork
Date: 2005-05-01 20:36:01 -0600 (Sun, 01 May 2005)
New Revision: 5156

Modified:
   branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml
   branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml
   branches/cross-lfs/BOOK/final-system/glibc.xml
   branches/cross-lfs/BOOK/general.ent
   branches/cross-lfs/BOOK/introduction/changelog.xml
   branches/cross-lfs/BOOK/materials/patches.xml
Log:
Added fix_test patch to final glibc build.
Added sed to shared gcc to fix libgcc_s.so search path (thanks Eric-Jan).
Removed stale reference to libidn in glibc-headers section


Modified: branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml	2005-04-30 18:27:02 UTC (rev 5155)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml	2005-05-02 02:36:01 UTC (rev 5156)
@@ -54,11 +54,16 @@
 <screen><userinput>sed -i '/^SHLIB_LC = /s at -lc@@' gcc/config/t-slibgcc-elf-ver \
    gcc/config/t-libunwind</userinput></screen>
 
-<para>No disable -B in Makefile.in, so it doesn't pick up the host's header
+<para>Now disable -B in Makefile.in, so it doesn't pick up the host's header
 files:</para>
 
 <screen><userinput>sed -i '/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g' configure configure.in</userinput></screen>
 
+<para>Finally, we change the hard-coded "/usr/lib" found in gcc/gcc.c to "/tools/lib",
+ensuring that gcc doesn't find and use a libgcc_s.so that may exist on the host machine:</para>
+
+<screen <userinput>sed -i "/standard_exec_prefix_/s@/usr@/tools at g" gcc/gcc.c</screen></userinput>
+
 <important><para>The above patches and sed's are critical in ensuring a
 successful overall build. Do not forget to apply them.</para></important>
 

Modified: branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml	2005-04-30 18:27:02 UTC (rev 5155)
+++ branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml	2005-05-02 02:36:01 UTC (rev 5156)
@@ -33,9 +33,6 @@
 <para arch="raq2">Unpack the glibc-linuxthreads-&glibc-version; <emphasis>and</emphasis> the
 glibc-libidn-&glibc-version; tarball -- they will unfold into the same directory.</para>
 
-<para arch="alpha;ppc;x86;">Unpack the glibc-libidn-&glibc-version; tarball -- it
-will unfold into the same directory.</para>
-
 <para arch="raq2">NPTL is not supported under this architecture, so we are going to
 remove the nptl directory from the Glibc source:</para>
 

Modified: branches/cross-lfs/BOOK/final-system/glibc.xml
===================================================================
--- branches/cross-lfs/BOOK/final-system/glibc.xml	2005-04-30 18:27:02 UTC (rev 5155)
+++ branches/cross-lfs/BOOK/final-system/glibc.xml	2005-05-02 02:36:01 UTC (rev 5156)
@@ -59,6 +59,12 @@
 
 <screen arch="raq2"><userinput>rm -rf nptl*</userinput></screen>
 
+<para> Glibc has two tests which fail when the running kernel is 2.6.11.x
+The problem has been determined to be with the tests themselves, not with the libc nor the kernel. 
+This patch fixes the problem:</para>
+
+<screen><userinput>patch -Np1 -i ../glibc-&glibc-version;-fix_test-1.patch</userinput></screen>
+
 <para>The Glibc documentation recommends building Glibc outside of the source
 directory in a dedicated build directory:</para>
 

Modified: branches/cross-lfs/BOOK/general.ent
===================================================================
--- branches/cross-lfs/BOOK/general.ent	2005-04-30 18:27:02 UTC (rev 5155)
+++ branches/cross-lfs/BOOK/general.ent	2005-05-02 02:36:01 UTC (rev 5156)
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "7.0-cross-lfs-20050430">
+<!ENTITY version "7.0-cross-lfs-20050501">
 <!ENTITY version-x86 "&version;-x86">
 <!ENTITY version-alpha "&version;-alpha">
 <!ENTITY version-ppc "&version;-PowerPC">
 <!ENTITY version-raq2 "&version;-RaQ2">
-<!ENTITY releasedate "April 28, 2005">
+<!ENTITY releasedate "May 1, 2005">
 <!ENTITY milestone "7.0">
 
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/">

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-04-30 18:27:02 UTC (rev 5155)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-02 02:36:01 UTC (rev 5156)
@@ -94,13 +94,11 @@
 -->
 
 <itemizedlist>
-<listitem><para>April 29, 2005 [jim]</para>
+<listitem><para>May 1, 2005 [jhuntwork]</para>
 <itemizedlist>
-<listitem><para>Updated gcc builds in cross-tools, to match cross-lfs scripts.</para></listitem>
-<listitem><para>Removed libidn from glibc builds in cross-tools.</para></listitem>
-<listitem><para>Removed --host --build from temp-system.</para></listitem>
-<listitem><para>Removed the /tools/lib/lfstarget file.</para></listitem>
-<listitem><para>Updates from Ryan's updated scripts.</para></listitem>
+<listitem><para>Added fix_test patch to final glibc build.</para></listitem>
+<listitem><para>Added sed to shared gcc to fix libgcc_s.so search path (thanks Eric-Jan).</para></listitem>
+<listitem><para>Removed stale reference to libidn in glibc-headers section.</para></listitem>
 </itemizedlist>
 </listitem>
 </itemizedlist>
@@ -117,6 +115,17 @@
 </itemizedlist>
 
 <itemizedlist>
+<listitem><para>April 29, 2005 [jim]</para>
+<itemizedlist>
+<listitem><para>Updated gcc builds in cross-tools, to match cross-lfs scripts.</para></listitem>
+<listitem><para>Removed libidn from glibc builds in cross-tools.</para></listitem>
+<listitem><para>Removed --host --build from temp-system.</para></listitem>
+<listitem><para>Removed the /tools/lib/lfstarget file.</para></listitem>
+<listitem><para>Updates from Ryan's updated scripts.</para></listitem>
+</itemizedlist>
+</listitem>
+</itemizedlist>
+
 <listitem><para>April 29, 2005 [jhuntwork]</para>
 <itemizedlist>
 <listitem><para>Swapped --host and --build for glibc in cross-tools, minor changes to gcc.</para></listitem>

Modified: branches/cross-lfs/BOOK/materials/patches.xml
===================================================================
--- branches/cross-lfs/BOOK/materials/patches.xml	2005-04-30 18:27:02 UTC (rev 5155)
+++ branches/cross-lfs/BOOK/materials/patches.xml	2005-05-02 02:36:01 UTC (rev 5156)
@@ -92,6 +92,13 @@
 </listitem>
 </varlistentry>
 
+<varlistentry>
+<term>GLIBC Test Patch - 11 KB:</term>
+<listitem>
+<para><ulink url="&patches-root;glibc/glibc-&glibc-version;-fix_test-1.patch"/></para>
+</listitem>
+</varlistentry>
+
 <varlistentry arch="raq2">
 <term>Grep RaQ2 Config Update Patch - 48 KB:</term>
 <listitem>




More information about the lfs-book mailing list