Changeset 0445a3d for chapter06/gcc.xml
- Timestamp:
- 09/18/2007 09:11:00 PM (17 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- e1ad8a8
- Parents:
- a7a0238
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc.xml
ra7a0238 r0445a3d 47 47 Binutils will be used instead:</para> 48 48 49 <screen><userinput >sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>49 <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen> 50 50 51 51 <para>The bootstrap build performed in <xref linkend="ch-tools-gcc-pass1"/> … … 55 55 builds:</para> 56 56 57 <screen><userinput >sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in</userinput></screen>57 <screen><userinput remap="pre">sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in</userinput></screen> 58 58 59 59 <para>The <command>fixincludes</command> script is known to occasionally … … 63 63 <command>fixincludes</command> script from running:</para> 64 64 65 <screen><userinput >sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in</userinput></screen>65 <screen><userinput remap="pre">sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in</userinput></screen> 66 66 67 67 <para>GCC provides a <command>gccbug</command> script which detects at … … 71 71 will simulate its presence:</para> 72 72 73 <screen><userinput >sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in</userinput></screen>73 <screen><userinput remap="pre">sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in</userinput></screen> 74 74 75 75 <para>The GCC documentation recommends building GCC outside of the source 76 76 directory in a dedicated build directory:</para> 77 77 78 <screen><userinput >mkdir -v ../gcc-build78 <screen><userinput remap="pre">mkdir -v ../gcc-build 79 79 cd ../gcc-build</userinput></screen> 80 80 81 81 <para>Prepare GCC for compilation:</para> 82 82 83 <screen><userinput >../gcc-&gcc-version;/configure --prefix=/usr \83 <screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/usr \ 84 84 --libexecdir=/usr/lib --enable-shared \ 85 85 --enable-threads=posix --enable-__cxa_atexit \ … … 89 89 <para>Compile the package:</para> 90 90 91 <screen><userinput >make</userinput></screen>91 <screen><userinput remap="make">make</userinput></screen> 92 92 93 93 <important> … … 98 98 <para>Test the results, but do not stop at errors:</para> 99 99 100 <screen><userinput >make -k check</userinput></screen>100 <screen><userinput remap="test">make -k check</userinput></screen> 101 101 102 102 <para>To receive a summary of the test suite results, run:</para> 103 103 104 <screen><userinput >../gcc-&gcc-version;/contrib/test_summary</userinput></screen>104 <screen><userinput remap="test">../gcc-&gcc-version;/contrib/test_summary</userinput></screen> 105 105 106 106 <para>For only the summaries, pipe the output through … … 120 120 <para>Install the package:</para> 121 121 122 <screen><userinput >make install</userinput></screen>122 <screen><userinput remap="install">make install</userinput></screen> 123 123 124 124 <para>Some packages expect the C preprocessor to be installed in the … … 126 126 To support those packages, create this symlink:</para> 127 127 128 <screen><userinput >ln -sv ../usr/bin/cpp /lib</userinput></screen>128 <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen> 129 129 130 130 <para>Many packages use the name <command>cc</command> to call the C 131 131 compiler. To satisfy those packages, create a symlink:</para> 132 132 133 <screen><userinput >ln -sv gcc /usr/bin/cc</userinput></screen>133 <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen> 134 134 135 135 <para>Now that our final toolchain is in place, it is important to again ensure
Note:
See TracChangeset
for help on using the changeset viewer.