1
0

gcc-pass2.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-gcc-pass2" role="wrap">
  7. <title>GCC-&gcc-version; - Pass 2</title>
  8. <?dbhtml filename="gcc-pass2.html"?>
  9. <sect2 role="package"><title/>
  10. <segmentedlist>
  11. <segtitle>&buildtime;</segtitle>
  12. <segtitle>&diskspace;</segtitle>
  13. <seglistitem><seg>11.0 SBU</seg><seg>274 MB</seg></seglistitem>
  14. </segmentedlist>
  15. </sect2>
  16. <sect2 role="installation">
  17. <title>Re-installation of GCC</title>
  18. <para>Check if there is PTYs for the test suites:</para>
  19. <screen><userinput>expect -c "spawn ls"</userinput></screen>
  20. <para>Apply two patches:</para>
  21. <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch
  22. patch -Np1 -i ../gcc-&gcc-version;-specs-2.patch</userinput></screen>
  23. <para>Create a separate build directory again:</para>
  24. <screen><userinput>mkdir ../gcc-build
  25. cd ../gcc-build</userinput></screen>
  26. <para>Now prepare GCC for compilation:</para>
  27. <screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
  28. --libexecdir=/tools/lib --with-local-prefix=/tools \
  29. --enable-clocale=gnu --enable-shared --enable-threads=posix \
  30. --enable-__cxa_atexit --enable-languages=c,c++ \
  31. --disable-libstdcxx-pch</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>Test the results</para>
  35. <screen><userinput>make -k check</userinput></screen>
  36. <para>To get a summary of the test suite results, run this:</para>
  37. <screen><userinput>../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
  38. <para>For only the summaries, pipe the output through
  39. <userinput>grep -A7 Summ</userinput></para>
  40. <para>Results can be compared to those posted to the gcc-testresults
  41. mailing list to see similar configurations to the one being built. For an example of how
  42. current GCC-&gcc-version; should look on i686-pc-linux-gnu, see
  43. <ulink url="http://gcc.gnu.org/ml/gcc-testresults/2004-11/msg00569.html"/>.</para>
  44. <para>And finally install the package:</para>
  45. <screen><userinput>make install</userinput></screen>
  46. <note><para>At this point it is strongly recommended to repeat the sanity check
  47. we performed earlier in this chapter. Refer back to
  48. <xref linkend="ch-tools-adjusting"/> and repeat the little test compilation. If
  49. the result is wrong, then most likely you forgot to apply the above mentioned
  50. GCC Specs patch.</para></note>
  51. </sect2>
  52. </sect1>