gcc-pass2.xml 2.6 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. <indexterm zone="ch-tools-gcc-pass2">
  10. <primary sortas="a-GCC">GCC</primary>
  11. <secondary>tools, pass 2</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>11.0 SBU</seg><seg>274 MB</seg></seglistitem>
  17. </segmentedlist>
  18. </sect2>
  19. <sect2 role="installation">
  20. <title>Re-installation of GCC</title>
  21. <para>Check if there is PTYs for the test suites:</para>
  22. <screen><userinput>expect -c "spawn ls"</userinput></screen>
  23. <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch
  24. patch -Np1 -i ../gcc-&gcc-version;-specs-2.patch</userinput></screen>
  25. <para>Create a separate build directory again:</para>
  26. <screen><userinput>mkdir ../gcc-build
  27. cd ../gcc-build</userinput></screen>
  28. <para>Now prepare GCC for compilation:</para>
  29. <screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
  30. --libexecdir=/tools/lib --with-local-prefix=/tools \
  31. --enable-clocale=gnu --enable-shared --enable-threads=posix \
  32. --enable-__cxa_atexit --enable-languages=c,c++ \
  33. --disable-libstdcxx-pch</userinput></screen>
  34. <para>Compile the package:</para>
  35. <screen><userinput>make</userinput></screen>
  36. <screen><userinput>make -k check</userinput></screen>
  37. <para>To get a summary of the test suite results, run this:</para>
  38. <screen><userinput>../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
  39. <para>For only the summaries, pipe the output through
  40. <userinput>grep -A7 Summ</userinput></para>
  41. <para>Results can be compared to those posted to the gcc-testresults
  42. mailing list to see similar configurations to the one being built. For an example of how
  43. current GCC-&gcc-version; should look on i686-pc-linux-gnu, see
  44. <ulink url="http://gcc.gnu.org/ml/gcc-testresults/2004-11/msg00569.html"/>.</para>
  45. <para>And finally install the package:</para>
  46. <screen><userinput>make install</userinput></screen>
  47. <note><para>At this point it is strongly recommended to repeat the sanity check
  48. we performed earlier in this chapter. Refer back to
  49. <xref linkend="ch-tools-adjusting"/> and repeat the little test compilation. If
  50. the result is wrong, then most likely you forgot to apply the above mentioned
  51. GCC Specs patch.</para></note>
  52. </sect2>
  53. </sect1>