Changeset 5512e64 for general/prog/gcc.xml
- Timestamp:
- 02/18/2010 03:34:02 PM (14 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 65bc0795
- Parents:
- 6d1bf0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/gcc.xml
r6d1bf0e r5512e64 7 7 <!ENTITY gcc-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2"> 8 8 <!ENTITY gcc-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2"> 9 <!ENTITY gcc-md5sum " a4a3eb15c96030906d8494959eeda23c">10 <!ENTITY gcc-size " 39.7MB">11 <!ENTITY gcc-buildsize " 1.9 GB">12 <!ENTITY gcc-time " 77SBU (build, test and install all compilers)">13 14 <!ENTITY gnat-download-http "https://libre.adacore.com/ dynamic/download_page">15 <!ENTITY gnat-md5sum " 659b7f57e00b73ecaa4863dabea5e0e2">16 <!ENTITY gnat-size " 44.6MB">9 <!ENTITY gcc-md5sum "927eaac3d44b22f31f9c83df82f26436"> 10 <!ENTITY gcc-size "62.8 MB"> 11 <!ENTITY gcc-buildsize "~3.7 GB (build, test and install all compilers)"> 12 <!ENTITY gcc-time "119 SBU (build, test and install all compilers)"> 13 14 <!ENTITY gnat-download-http "https://libre.adacore.com/libre/download/"> 15 <!ENTITY gnat-md5sum "88d82a34ab0b67d2c03cef93527ca863"> 16 <!ENTITY gnat-size "104 MB"> 17 17 ]> 18 18 … … 36 36 <para>The <application>GCC</application> package contains GNU compilers. 37 37 This package is useful for compiling programs written in C, C++, Fortran, 38 Java, Objective C and Ada. Also included is GNU Treelang. Treelang is a 39 sample language, useful only to help people understand how to implement a 40 new language front end to GCC. It is not a useful language in itself other 41 than as an example or basis for building a new language. Therefore only 42 language developers are likely to have an interest in it.</para> 43 44 <note> 38 Java, Objective C, Objective C++, and Ada. You should ensure you actually 39 need one of these additional compilers (C and C++ are installed in LFS) 40 before you install them. Additionally, there are instructions in the BLFS 41 book to install the Sun Java Development Kit (<xref linkend="jdk"/>), 42 which can be used instead of the Java provided by the 43 <application>GCC</application> package. Many consider the Sun JDK to be a 44 more robust Java environment than the one provided by 45 <application>GCC</application>.</para> 46 47 &lfs65_checked; 48 49 <!-- <note> 45 50 <para>The Fortran compiler included with the 46 51 <application>GCC</application>-4.x package now aims to be conformant … … 64 69 <ulink url="&blfs-wiki;/gcc3">BLFS 65 70 Wiki</ulink>.</para> 66 </note> 71 </note> --> 67 72 68 73 <bridgehead renderas="sect3">Package Information</bridgehead> … … 92 97 <bridgehead renderas="sect4">Recommended</bridgehead> 93 98 <para role="recommended"><xref linkend="dejagnu"/></para> 94 95 <!-- This is now installed in LFS96 <bridgehead renderas="sect4">Optional (Required to Build the Fortran97 Compiler)</bridgehead>98 <para role="optional">99 <ulink url="http://www.mpfr.org/">MPFR</ulink></para>100 -->101 99 102 100 <note> … … 108 106 package. Nothing is required other than a valid email address.</para> 109 107 110 <para> <emphasis role='strong'>Ensure you download the 2005 version of the111 GNAT compiler. The 2006 version will not work. The file name you need is:112 <filename>gnat-gpl-200 5-i686-gnu-linux-gnu-libc2.3-bin.tar.gz</filename>.</emphasis>108 <para>At the AdaCore download page, choose your platform and 2009. Then 109 scroll down and click on <quote>Files</quote>. Download the file named 110 <filename>gnat-gpl-2009-1-i686-gnu-linux-libc2.3-bin.tar.gz</filename>. 113 111 </para> 114 112 </note> 115 113 116 <bridgehead renderas="sect3">GNAT GPL 200 5Package Information</bridgehead>114 <bridgehead renderas="sect3">GNAT GPL 2009 Package Information</bridgehead> 117 115 <itemizedlist spacing="compact"> 118 116 <listitem> … … 135 133 <title>Installation of GNAT</title> 136 134 137 <para>Install <application>GNAT</application> by running the following 138 command as the <systemitem class="username">root</systemitem> user:</para> 139 140 <screen role="root"><userinput>make ins-all prefix=/opt/gnat</userinput></screen> 135 <para>Before unpacking and changing into the GCC build directory, first 136 unpack the <application>GNAT</application> tarball and change into the 137 newly created directory and install <application>GNAT</application> by 138 running the following command:</para> 139 140 <screen><userinput>make ins-all prefix=<replaceable><Your build directory></replaceable>/gnat</userinput></screen> 141 141 142 142 <para>The <application>GNAT</application> compiler can be 143 143 invoked by executing the <command>gcc</command> binary installed 144 in <filename class='directory'>/opt/gnat/bin</filename>.</para> 144 in <filename 145 class='directory'><replaceable><Your build directory></replaceable>/gnat/bin</filename>.</para> 145 146 146 147 <para>You may now remove the <application>GNAT</application> … … 148 149 149 150 <screen><userinput>cd .. && 150 rm -rf gnat- gpl-2005-i686-gnu-linux-gnu-libc2.3-bin</userinput></screen>151 rm -rf gnat-2009-i686-gnu-linux-libc2.3-bin</userinput></screen> 151 152 152 153 <para>Prepare to compile <application>GCC</application> by placing the … … 156 157 157 158 <screen><userinput>PATH_HOLD=$PATH && 158 export PATH= /opt/gnat/bin:$PATH_HOLD</userinput></screen>159 export PATH=<replaceable><Your build directory></replaceable>/gnat/bin:$PATH_HOLD</userinput></screen> 159 160 160 161 </sect2> … … 179 180 test results with those found at 180 181 <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an 181 i686 platform test result produced by an LFS-SVN-20070304system at182 <ulink url="&files-anduin;/gcc4 12_test.txt"/>. You182 i686 32-bit platform test result produced by an LFS-6.5 system at 183 <ulink url="&files-anduin;/gcc441_test.txt"/>. You 183 184 may also want to refer to the information found in the 184 185 <application>GCC</application> section of Chapter 6 in the LFS … … 199 200 <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && 200 201 sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in && 201 sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in && 202 202 203 mkdir ../gcc-build && 203 cd ../gcc-build && 204 cd ../gcc-build && 205 204 206 ../gcc-&gcc-version;/configure \ 205 207 --prefix=/usr \ … … 208 210 --enable-threads=posix \ 209 211 --enable-__cxa_atexit \ 212 --disable-multilib \ 213 --enable-bootstrap \ 210 214 --enable-clocale=gnu \ 211 --enable-languages=c,c++,ada,fortran,java,objc,treelang && 215 --enable-languages=c,c++,ada,fortran,java,objc,obj-c++ && 216 212 217 make bootstrap && 213 make -k check && 218 make -k check && 219 214 220 ../gcc-&gcc-version;/contrib/test_summary</userinput></screen> 215 221 … … 217 223 218 224 <screen role="root"><userinput>make install && 225 219 226 ln -v -sf ../usr/bin/cpp /lib && 220 227 ln -v -sf gcc /usr/bin/cc && 228 221 229 chown -v -R root:root \ 222 /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include && 223 chown -v -R root:root \ 230 /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include \ 224 231 /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/ada{lib,include}</userinput></screen> 225 232 … … 232 239 <screen role="root"><userinput>ln -v -sf `find /usr/lib/gcc -name ffitarget.h` /usr/include</userinput></screen> 233 240 234 <para>As the <systemitem class="username">root</systemitem> user, remove the 235 <application>GNAT</application> installation:</para> 236 237 <screen role="root"><userinput>rm -rf /opt/gnat</userinput></screen> 238 239 <para>Now, as the unprivileged user, restore your old 240 <envar>PATH</envar>:</para> 241 <para>You should now become the unprivileged user and remove the 242 <application>GNAT</application> installation and perform other 243 cleanups:</para> 244 245 <screen><userinput>rm -rf <replaceable><Your build directory></replaceable>/gnat</userinput></screen> 241 246 242 247 <screen><userinput>export PATH=$PATH_HOLD && … … 248 253 <title>Command Explanations</title> 249 254 250 <para>The three <command>sed</command> commands are the same ones used 251 during the build of LFS. A fourth one in LFS is omitted intentionally, 252 due to the bootstrap build.</para> 255 <para>The two <command>sed</command> commands are the same ones used 256 during the build of LFS.</para> 253 257 254 258 <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The … … 260 264 the <application>C++</application> libraries to published standards.</para> 261 265 262 <para><parameter>--enable-clocale=gnu</parameter>: This command is a 266 <para><parameter>--disable-multilib</parameter>: This parameter ensures 267 that files are created for the specific arch of your computer.</para> 268 269 <para><parameter>--enable-bootstrap</parameter>: This parameter is used 270 so that a bootstrap installation is performed.</para> 271 272 <para><parameter>--enable-clocale=gnu</parameter>: This parameter is a 263 273 failsafe for incomplete locale data.</para> 264 274 265 275 <para> 266 <parameter>--enable-languages=c,c++,ada,fortran,java,objc, treelang</parameter>:276 <parameter>--enable-languages=c,c++,ada,fortran,java,objc,obj-c++</parameter>: 267 277 This command identifies which languages to build. You may modify this command 268 278 to remove undesired languages.</para>
Note:
See TracChangeset
for help on using the changeset viewer.