Changeset 3b15fe6
- Timestamp:
- 10/24/2004 10:47:54 PM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 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/inkscape-core-mods, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- eb3e33b
- Parents:
- 0b99607
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/gcc.xml
r0b99607 r3b15fe6 8 8 <!ENTITY gcc-download-ftp "ftp://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2"> 9 9 <!ENTITY gcc-size "27.2 MB"> 10 <!ENTITY gcc-buildsize "1. 2GB">11 <!ENTITY gcc-time " 36.2SBU">12 13 <!--<!ENTITY gnat-download-http " ">10 <!ENTITY gcc-buildsize "1.53 GB"> 11 <!ENTITY gcc-time "48.94 SBU"> 12 13 <!ENTITY gnat-download-http " "> 14 14 <!ENTITY gnat-download-ftp "ftp://cs.nyu.edu/pub/gnat/3.15p/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.gz"> 15 <!ENTITY gnat-size "13. 2MB">16 <!ENTITY gnat-buildsize "48 .9MB">17 <!ENTITY gnat-time "0.01 SBU"> -->15 <!ENTITY gnat-size "13.5 MB"> 16 <!ENTITY gnat-buildsize "48 MB"> 17 <!ENTITY gnat-time "0.01 SBU"> 18 18 ]> 19 19 … … 29 29 <title>Introduction to <application><acronym>GCC</acronym></application></title> 30 30 31 <para>The <application><acronym>GCC</acronym></application> package 32 contains <acronym>GNU</acronym> compilers. This is useful for 33 <!-- compiling programs written in <application>Ada</application>, --> 34 compiling programs written in 35 <application>C</application>, <application>C++</application>, 36 <application>Fortran</application>, <application>Java</application> and 37 <application>Objective C</application>. The 38 <application><acronym>GCC</acronym></application> package also contains an 39 <application>Ada</application> compiler, however, the installation 40 documentation is flawed and all the <application>Ada</application> tools cannot 41 be built using conventional methods.</para> 31 <para>The <application><acronym>GCC</acronym></application> package contains 32 <acronym>GNU</acronym> compilers. This is useful for compiling programs 33 written in <application>C</application>, <application>C++</application>, 34 <application>Fortran</application>, <application>Java</application>, 35 <application>Objective C</application> and 36 <application>Ada</application>.</para> 42 37 43 38 <sect3><title>Package Information</title> … … 78 73 <title>Installation of <application><acronym>GCC</acronym></application></title> 79 74 80 < !-- <para>If you plan to compile Ada, you will need to install75 <para>If you plan to compile Ada, you will need to install 81 76 <application><acronym>GNAT</acronym></application> temporarily to 82 77 satisfy the circular dependency when you recompile … … 130 125 script.</para> 131 126 127 <para>Prepare to compile <application>GCC</application> by placing the 128 <application>GNAT</application> <command>gcc</command> at the beginning of 129 the <envar>PATH</envar> variable by using the following commands:</para> 130 131 <screen><userinput><command>PATH_HOLD=$PATH && 132 export PATH=/opt/gnat/bin:$PATH</command></userinput></screen> 133 132 134 </sect2> 133 135 … … 135 137 <application><acronym>GCC</acronym></application></title> 136 138 137 <screen><userinput><command>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch && 138 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && 139 PATH_HOLD=$PATH && 140 export PATH=/opt/gnat/bin:$PATH && 141 cd gcc/ada && 142 touch treeprs.ads [es]info.h nmake.ad[bs] && 143 cd ../.. && 144 mkdir ../gcc-build && 145 cd ../gcc-build && 146 CC=/usr/bin/gcc ../gcc-&gcc-version;/configure -prefix=/usr -enable-shared \ 147 ../gcc-&gcc-version;/configure -prefix=/usr -libexecdir=/usr/lib \ 148 -enable-shared -enable-languages=c,c++,objc,f77,java \ 149 -enable-threads=posix -enable-__cxa_atexit -enable-clocale=gnu && 150 make bootstrap && 151 make -C gcc gnatlib_and_tools && 152 make -k check && 153 ../gcc-3.4.1/contrib/test_summary && 154 ../gcc-3.4.1/contrib/test_summary | grep -A7 Summ && 155 make install && 156 ln -sf ../usr/bin/cpp /lib && 157 ln -sf gcc /usr/bin/cc && 158 ln -sf g77 /usr/bin/f77 && 159 chown -R root:root /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include && 160 export PATH=$PATH_HOLD</command></userinput></screen> 161 162 <para>You may remove the <application><acronym>GNAT</acronym></application> 163 installation:</para> 164 <screen><userinput><command>rm -rf /opt/gnat</command></userinput></screen> --> 139 <para>Install <application><acronym>GCC</acronym></application> by running the 140 following commands:</para> 165 141 166 142 <important><para>The installation process may overwrite your existing … … 176 152 with those found at <ulink 177 153 url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an i686 platform 178 test result produced by an <acronym>LFS</acronym> ( SVN-testing-040712) system179 at <ulink url="http://www.linuxfromscratch.org/~randy/gcc -test.txt"/>. You may180 also want to refer to the information found in the154 test result produced by an <acronym>LFS</acronym> (6.0-testing-20041003) system 155 at <ulink url="http://www.linuxfromscratch.org/~randy/gcc341_test.txt"/>. You 156 may also want to refer to the information found in the 181 157 <application><acronym>GCC</acronym></application>-Pass 2 section of Chapter 5 182 158 in the <acronym>LFS</acronym> book.</para></important> … … 193 169 <envar>PATH</envar> variable.</para></note> 194 170 195 <para>Install <application><acronym>GCC</acronym></application> by running the196 following commands:</para>197 198 171 <screen><userinput><command>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch && 199 172 patch -Np1 -i ../gcc-&gcc-version;-linkonce-1.patch && … … 202 175 cd ../gcc-build && 203 176 ../gcc-&gcc-version;/configure --prefix=/usr --libexecdir=/usr/lib \ 204 --enable-shared --enable-languages=c,c++,objc,f77, java \177 --enable-shared --enable-languages=c,c++,objc,f77,ada,java \ 205 178 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu && 206 179 make bootstrap && 180 make -C gcc gnatlib-shared && 181 make -C gcc gnattools && 207 182 make -k check && 208 183 ../gcc-3.4.1/contrib/test_summary && … … 213 188 chown -R root:root /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include</command></userinput></screen> 214 189 190 <para>You may remove the <application><acronym>GNAT</acronym></application> 191 installation and restore your old <envar>PATH</envar>:</para> 192 193 <screen><userinput><command>rm -rf /opt/gnat && 194 export PATH=$PATH_HOLD</command></userinput></screen> 195 215 196 </sect2> 216 197 217 198 <sect2> 218 199 <title>Command explanations</title> 219 220 <!-- <para><command>PATH_HOLD=$PATH</command>: This command221 stores your current path before it's modified so that it can be restored after222 installation.</para>223 224 <para><command>export PATH=/opt/gnat/bin:$PATH</command>: This225 command allows the build to find226 <application><acronym>GNAT</acronym></application>'s227 <application>Ada</application> compiler to build228 <application>Ada</application>.</para>229 230 <para><command>touch treeprs.ads [es]info.h nmake.ad[bs]</command>:231 This command creates necessary files for the232 <application>Ada</application> build. This step233 may be skipped if you don't want to compile the234 <application>Ada</application> front end.</para>235 236 <para><parameter>CC=/usr/bin/gcc</parameter>: This command works around the237 new <envar>PATH</envar> which puts <application><acronym>GNAT</acronym>238 </application>'s <command>gcc</command> as the primary compiler.</para> -->239 200 240 201 <para><command>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</command>: … … 249 210 <para><parameter>--enable-languages=c,c++,objc,f77,ada,java</parameter>: 250 211 This command identifies which languages to build. You may modify this command 251 to remove un wanted languages.</para>212 to remove undesired languages.</para> 252 213 253 214 <para><parameter>--enable-shared --enable-threads=posix … … 257 218 <para><parameter>--enable-clocale=gnu</parameter>: This command is a 258 219 failsafe for incomplete locale data.</para> 220 221 <para><command>make -C gcc gnatlib-shared</command>: This command builds the 222 Ada shared and static libraries. Skip this step if you have not enabled 223 <application>Ada</application> as one of the languages.</para> 224 225 <para><command>make -C gcc gnattools</command>: This command builds the 226 Ada development tools and binaries. Skip this step if you have not enabled 227 <application>Ada</application> as one of the languages.</para> 259 228 260 229 <para><command>make -k check</command>: This command runs the test suite … … 281 250 root:root.</para> 282 251 283 <!-- <para><command>make gnatlib_and tools</command>: This command284 completes the <application>Ada</application> build process. Skip this step if285 you have not enabled <application>Ada</application> as one of the languages.286 </para> -->287 288 252 </sect2> 289 253 … … 292 256 293 257 <para>The <application><acronym>GCC</acronym></application> package contains 294 <command>addr2name.awk</command>, <command>c++</command>, 295 <command>cpp</command>, <command>g++</command>, 296 <command>g77</command>, <command>gcc</command>, 297 <command>gccbug</command>, <command>gcj</command>, 298 <command>gcjh</command>, <command>gcov</command>, 299 <command>gij</command>, <command>grepjar</command>, 300 <command>jar</command>, <command>jcf-dump</command>, 301 <command>jv-convert</command>, <command>jv-scan</command>, 302 <command>rmic</command>, <command>rmiregistry</command> and 303 <!-- <command>gnat</command>, <command>gnatbind</command>, 304 <command>gnatbl</command>, <command>gnatchop</command>, 305 <command>gnatfind</command>, <command>gnatkr</command>, 306 <command>gnatlink</command>, <command>gnatls</command>, 307 <command>gnatmake</command>, <command>gnatprep</command>, 308 <command>gnatpsta</command>, <command>gnatpsys</command>, 309 <command>gnatxref</command> and --> 258 <command>addr2name.awk</command>, 259 <command>c++</command>, 260 <command>cpp</command>, 261 <command>g++</command>, 262 <command>g77</command>, 263 <command>gcc</command>, 264 <command>gccbug</command>, 265 <command>gcj</command>, 266 <command>gcjh</command>, 267 <command>gcov</command>, 268 <command>gij</command>, 269 <command>gnat</command>, 270 <command>gnatbind</command>, 271 <command>gnatbl</command>, 272 <command>gnatchop</command>, 273 <command>gnatclean</command>, 274 <command>gnatfind</command>, 275 <command>gnatkr</command>, 276 <command>gnatlink</command>, 277 <command>gnatls</command>, 278 <command>gnatmake</command>, 279 <command>gnatname</command>, 280 <command>gnatprep</command>, 281 <command>gnatxref</command>, 282 <command>grepjar</command>, 283 <command>jar</command>, 284 <command>jcf-dump</command>, 285 <command>jv-convert</command>, 286 <command>jv-scan</command>, 287 <command>rmic</command>, 288 <command>rmiregistry</command> and 310 289 <application><acronym>GCC</acronym></application> libraries.</para> 311 290 … … 319 298 320 299 <sect3><title>addr2name.awk</title> 321 <para><command>addr2name.awk</command> emulates a little of the functionality300 <para><command>addr2name.awk</command> emulates some of the functionality 322 301 of addr2line.</para></sect3> 323 302 … … 338 317 <application>Java</application> bytecode.</para></sect3> 339 318 319 <sect3><title>gnat</title> 320 <para><command>gnat</command> is the <application>Ada</application> compiler 321 invoked by <command>gcc</command>.</para></sect3> 322 323 <sect3><title>gnatbind</title> 324 <para><command>gnatbind</command> is used to bind compiled 325 objects.</para></sect3> 326 327 <sect3><title>gnatbl</title> 328 <para><command>gnatbl</command> is the <application>Ada</application> 329 linker.</para></sect3> 330 331 <sect3><title>gnatchop</title> 332 <para><command>gnatchop</command> is useful for renaming files to meet the 333 standard <application>Ada</application> default file naming 334 conventions.</para></sect3> 335 336 <sect3><title>gnatclean</title> 337 <para><command>gnatclean</command> is used to remove files associated with a 338 <application><acronym>GNAT</acronym></application> project.</para></sect3> 339 340 <sect3><title>gnatfind</title> 341 <para><command>gnatfind</command> is the 342 <application><acronym>GNAT</acronym></application> definition/use 343 finder.</para></sect3> 344 345 <sect3><title>gnatkr</title> 346 <para><command>gnatkr</command> is used to determine the crunched name for a 347 given file, when crunched to a specified maximum length.</para></sect3> 348 349 <sect3><title>gnatlink</title> 350 <para><command>gnatlink</command> is used to link programs and build an 351 executable file.</para></sect3> 352 353 <sect3><title>gnatls</title> 354 <para><command>gnatls</command> is the compiled unit browser.</para></sect3> 355 356 <sect3><title>gnatmake</title> 357 <para><command>gnatmake</command> is an automatic make facility.</para></sect3> 358 359 <sect3><title>gnatname</title> 360 <para><command>gnatname</command> will list the files associated with a 361 <application><acronym>GNAT</acronym></application> project.</para></sect3> 362 363 <sect3><title>gnatmem</title> 364 <para><command>gnatmem</command> is the 365 <application><acronym>GNAT</acronym></application> utility that monitors 366 dynamic allocation and deallocation activity in a program.</para></sect3> 367 368 <sect3><title>gnatprep</title> 369 <para><command>gnatprep</command> is the 370 <application><acronym>GNAT</acronym></application> external 371 preprocessor.</para></sect3> 372 373 <sect3><title>gnatxref</title> 374 <para><command>gnatxref</command> is the 375 <application><acronym>GNAT</acronym></application> 376 cross-referencer.</para></sect3> 377 340 378 <sect3><title>grepjar</title> 341 379 <para><command>grepjar</command> searches <filename>jar</filename> files for a … … 366 404 current host.</para></sect3> 367 405 368 <!-- <sect3><title>gdb</title>369 <para><command>gdb</command> is the370 <application><acronym>GNAT</acronym></application> debugger.</para></sect3>371 372 <sect3><title>gnatbind</title>373 <para><command>gnatbind</command> is used to bind compiled objects.</para>374 </sect3>375 376 <sect3><title>gnatbl</title>377 <para><command>gnatbl</command> is the <application>Ada</application> linker.378 </para></sect3>379 380 <sect3><title>gnatchop</title>381 <para><command>gnatchop</command> is useful for renaming files to meet the382 standard <application>Ada</application> default file naming conventions.</para></sect3>383 384 <sect3><title>gnatelim</title>385 <para><command>gnatelim</command> is used to detect and eliminate unused386 subprograms in an <application>Ada</application> partition.</para></sect3>387 388 <sect3><title>gnatfind</title>389 <para><command>gnatfind</command> is the <application><acronym>GNAT</acronym>390 </application> definition/use finder.</para></sect3>391 392 <sect3><title>gnatgcc</title>393 <para><command>gnatgcc</command> is the compiler.</para></sect3>394 395 <sect3><title>gnathtml.pl</title>396 <para><command>gnathtml.pl</command> converts397 <application>Ada</application> source files to <acronym>HTML</acronym> for398 viewing in Web browsers.</para></sect3>399 400 <sect3><title>gnatkr</title>401 <para><command>gnatkr</command> is used to determine the crunched name for a402 given file, when crunched to a specified maximum length.</para></sect3>403 404 <sect3><title>gnatlink</title>405 <para><command>gnatlink</command> is used to link programs and build an406 executable file.</para></sect3>407 408 <sect3><title>gnatls</title>409 <para><command>gnatls</command> is the compiled unit browser.</para></sect3>410 411 <sect3><title>gnatemake</title>412 <para><command>gnatmake</command> is an automatic make facility.</para></sect3>413 414 <sect3><title>gnatmem</title>415 <para><command>gnatmem</command> is the <application><acronym>GNAT</acronym>416 </application> utility that monitors dynamic allocation and417 deallocation activity in a program.</para></sect3>418 419 <sect3><title>gnatprep</title>420 <para><command>gnatprep</command> is the421 <application><acronym>GNAT</acronym></application> external preprocessor.</para>422 </sect3>423 424 <sect3><title>gnatpsta</title>425 <para><command>gnatpsta</command> determines the values of all the relevant426 parameters in Standard and outputs to stdout.</para></sect3>427 428 <sect3><title>gnatpsys</title>429 <para><command>gnatpsys</command> determines the values of all the relevant430 parameters in System and outputs to stdout.</para></sect3>431 432 <sect3><title>gnatstub</title>433 <para><command>gnatstub</command> is a generator of body stubs.</para></sect3>434 435 <sect3><title>gnatxref</title>436 <para><command>gnatxref</command> is the <application><acronym>GNAT</acronym></application> cross-referencer.</para></sect3> -->437 438 406 </sect2> 439 407 -
introduction/welcome/changelog.xml
r0b99607 r3b15fe6 27 27 28 28 <listitem><para>October 24th, 2004 [randy]: Updated to 29 CUPS-1.1.21 .</para></listitem>29 CUPS-1.1.21; added Ada back to the GCC instructions.</para></listitem> 30 30 31 31 <listitem><para>October 23rd, 2004 [randy]: Updated to
Note:
See TracChangeset
for help on using the changeset viewer.