Author: matthew Date: 2005-08-30 15:29:22 -0600 (Tue, 30 Aug 2005) New Revision: 6778
Modified: branches/gcc4/BOOK/chapter01/changelog.xml branches/gcc4/BOOK/chapter06/util-linux.xml Log: Compile util-linux with -O instead of -O2 optimizations to prevent cfdisk from segfaulting Modified: branches/gcc4/BOOK/chapter01/changelog.xml =================================================================== --- branches/gcc4/BOOK/chapter01/changelog.xml 2005-08-30 20:56:11 UTC (rev 6777) +++ branches/gcc4/BOOK/chapter01/changelog.xml 2005-08-30 21:29:22 UTC (rev 6778) @@ -119,6 +119,10 @@ </itemizedlist> </listitem> +<listitem><para>August 30th, 2005 [matt]: Work around a segfault in cfdisk by +compiling with -O instead of the default -O2 optimization setting (fixes bug +1604).</para></listitem> + <listitem><para>August 30th, 2005 [matt]: Update the inetutils patch to use the upstream fix for GCC-4.x compilation problems (fixes bug 1602).</para></listitem> Modified: branches/gcc4/BOOK/chapter06/util-linux.xml =================================================================== --- branches/gcc4/BOOK/chapter06/util-linux.xml 2005-08-30 20:56:11 UTC (rev 6777) +++ branches/gcc4/BOOK/chapter06/util-linux.xml 2005-08-30 21:29:22 UTC (rev 6778) @@ -53,6 +53,13 @@ <screen><userinput>patch -Np1 -i ../&util-linux-cramfs-patch;</userinput></screen> +<para>A bug in <command>cfdisk</command> causes it to segfault when compiled +with GCC's <option>-O2</option> optimization setting. The following +<command>sed</command> works around the problem by using the less aggressive +<option>-O</option> optimization level instead:</para> + +<screen><userinput>sed -i 's/-O2/-O/' MCONFIG</userinput></screen> + <para>Prepare Util-linux for compilation:</para> <screen><userinput>./configure</userinput></screen> -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
