| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-tools-gcc-pass2" role="wrap"><title>GCC-&gcc-version; - Pass 2</title><?dbhtml filename="gcc-pass2.html"?><sect2 role="package"><title/><segmentedlist><segtitle>&buildtime;</segtitle><segtitle>&diskspace;</segtitle><seglistitem><seg>11.0 SBU</seg><seg>274 MB</seg></seglistitem></segmentedlist></sect2><sect2 role="installation"><title>Re-installation of GCC</title><para>Check if there is PTYs for the test suites:</para><screen><userinput>expect -c "spawn ls"</userinput></screen><para>Apply two patches:</para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patchpatch -Np1 -i ../gcc-&gcc-version;-specs-2.patch</userinput></screen><para>Create a separate build directory again:</para><screen><userinput>mkdir ../gcc-buildcd ../gcc-build</userinput></screen><para>Now prepare GCC for compilation:</para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \    --libexecdir=/tools/lib --with-local-prefix=/tools \    --enable-clocale=gnu --enable-shared --enable-threads=posix \    --enable-__cxa_atexit --enable-languages=c,c++ \    --disable-libstdcxx-pch</userinput></screen><para>Compile the package:</para><screen><userinput>make</userinput></screen><para>Test the results</para><screen><userinput>make -k check</userinput></screen><para>To get a summary of the test suite results, run this:</para> <screen><userinput>../gcc-&gcc-version;/contrib/test_summary</userinput></screen><para>For only the summaries, pipe the output through<userinput>grep -A7 Summ</userinput></para><para>Results can be compared to those posted to the gcc-testresultsmailing list to see similar configurations to the one being built. For an example of howcurrent GCC-&gcc-version; should look on i686-pc-linux-gnu, see<ulink url="http://gcc.gnu.org/ml/gcc-testresults/2004-11/msg00569.html"/>.</para><para>And finally install the package:</para><screen><userinput>make install</userinput></screen><note><para>At this point it is strongly recommended to repeat the sanity checkwe performed earlier in this chapter. Refer back to<xref linkend="ch-tools-adjusting"/> and repeat the little test compilation. Ifthe result is wrong, then most likely you forgot to apply the above mentionedGCC Specs patch.</para></note></sect2></sect1>
 |