Changeset 8ca386d
- Timestamp:
- 08/29/2004 06:19:42 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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/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:
- 754181c
- Parents:
- d7b8efd2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
general.ent
rd7b8efd2 r8ca386d 1 <!ENTITY day "2 8">1 <!ENTITY day "29"> 2 2 <!ENTITY month "08"> 3 3 <!ENTITY year "2004"> … … 129 129 <!ENTITY ruby-version "1.8.1"> 130 130 <!ENTITY expect-version "5.42.1"> 131 <!ENTITY gcc-version "3. 3.3">131 <!ENTITY gcc-version "3.4.1"> 132 132 <!ENTITY tcl-version "8.4.6"> 133 133 <!ENTITY tk-version "8.4.6"> -
general/prog/gcc.xml
rd7b8efd2 r8ca386d 7 7 <!ENTITY gcc-download-http "http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2"> 8 8 <!ENTITY gcc-download-ftp "ftp://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2"> 9 <!ENTITY gcc-size "2 3MB">10 <!ENTITY gcc-buildsize " 889 MB">11 <!ENTITY gcc-time " 29.3SBU">12 13 <!ENTITY gnat-download-http " ">9 <!ENTITY gcc-size "27.2 MB"> 10 <!ENTITY gcc-buildsize "1.2 GB"> 11 <!ENTITY gcc-time "36.2 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 15 <!ENTITY gnat-size "13.2 MB"> 16 16 <!ENTITY gnat-buildsize "48.9 MB"> 17 <!ENTITY gnat-time "0.01 SBU"> 17 <!ENTITY gnat-time "0.01 SBU"> --> 18 18 ]> 19 19 … … 28 28 <sect2> 29 29 <title>Introduction to <application><acronym>GCC</acronym></application></title> 30 31 <para>The 30 31 <para>The <application><acronym>GCC</acronym></application> package 32 32 contains <acronym>GNU</acronym> compilers. This is useful for 33 compiling programs written in <application>Ada</application>, 33 <!-- compiling programs written in <application>Ada</application>, --> 34 compiling programs written in 34 35 <application>C</application>, <application>C++</application>, 35 36 <application>Fortran</application>, <application>Java</application> and 36 <application>Objective C</application>.</para> 37 38 <sect3><title>Package information</title> 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> 42 43 <sect3><title>Package Information</title> 39 44 <itemizedlist spacing='compact'> 40 45 <listitem><para>Download (HTTP): <ulink … … 48 53 &gcc-time;</para></listitem></itemizedlist> 49 54 </sect3> 55 50 56 <sect3><title>Additional Downloads</title> 51 57 <itemizedlist spacing='compact'> 52 58 <listitem><para>Required Patch: <ulink 53 59 url="&patch-root;/gcc-&gcc-version;-no_fixincludes-1.patch"/></para></listitem> 60 <listitem><para>Test Suite: <ulink 61 url="http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-testsuite-&gcc-version;.tar.bz2"/></para> 62 </listitem> 54 63 </itemizedlist></sect3> 55 64 65 <sect3><title><application><acronym>GCC</acronym></application> 66 Dependencies</title> 67 <sect4><title>Recommended</title> 68 <itemizedlist spacing='compact'> 69 <listitem><para><xref linkend="expect"/> and 70 <ulink url="http://freshmeat.net/projects/dejagnu/">DejaGnu</ulink></para> 71 </listitem></itemizedlist> 72 </sect4></sect3> 73 56 74 </sect2> 57 75 58 76 <sect2> 59 77 <title>Installation of <application><acronym>GCC</acronym></application></title> 60 61 < para>If you plan to compile Ada, you will need to install78 79 <!-- <para>If you plan to compile Ada, you will need to install 62 80 <application><acronym>GNAT</acronym></application> temporarily to 63 81 satisfy the circular dependency when you recompile 64 <application><acronym> 65 GCC</acronym></application> to include 82 <application><acronym>GCC</acronym></application> to include 66 83 <application>Ada</application>.</para> 67 84 … … 79 96 </sect3> 80 97 81 <sect3><title><application><acronym>GNAT</acronym></application> dependencies</title> 98 <sect3><title><application><acronym>GNAT</acronym></application> 99 dependencies</title> 82 100 <sect4><title>Required</title> 83 101 <para><xref linkend="tcsh"/></para></sect4> … … 85 103 86 104 </sect2> 87 105 88 106 <sect2> 89 <title>Installation of <application><acronym>GNAT</acronym></application></title> 107 <title>Installation of <application><acronym>GNAT</acronym></application> 108 </title> 90 109 91 110 <para>Install <application><acronym>GNAT</acronym></application> by running the … … 99 118 directory, that can later be removed from the system.</para> 100 119 101 <para>In response to the questions asked by the 102 <command>doconfig</command> script, enter 103 <userinput>3</userinput> in response to the first question 104 and <userinput>/opt/gnat</userinput> in response to the 105 second question.</para> 120 <para>In response to the questions asked by the <command>doconfig</command> 121 script, enter <userinput>3</userinput> in response to the first question 122 and <userinput>/opt/gnat</userinput> in response to the second question.</para> 106 123 107 124 <para>To finish the install, run:</para> … … 114 131 </sect2> 115 132 116 117 <sect2><title>Return to Installation of <application><acronym>GCC</acronym></application></title> 118 119 <para>Patch the source files with the following command:</para> 133 <sect2><title>Return to Installation of 134 <application><acronym>GCC</acronym></application></title> 135 120 136 <screen><userinput><command>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch && 121 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</command></userinput></screen> 122 123 <para>Install <application><acronym>GCC</acronym></application> by running the 124 following commands:</para> 125 126 <screen><userinput><command>PATH_HOLD=$PATH && 137 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && 138 PATH_HOLD=$PATH && 127 139 export PATH=/opt/gnat/bin:$PATH && 128 140 cd gcc/ada && … … 131 143 mkdir ../gcc-build && 132 144 cd ../gcc-build && 133 CC=/usr/bin/gcc ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ 134 --enable-languages=c,c++,objc,f77,ada,java --enable-threads=posix \ 135 --enable-__cxa_atexit --enable-clocale=gnu && 145 CC=/usr/bin/gcc ../gcc-&gcc-version;/configure -prefix=/usr -enable-shared \ 146 ../gcc-&gcc-version;/configure -prefix=/usr -libexecdir=/usr/lib \ 147 -enable-shared -enable-languages=c,c++,objc,f77,java \ 148 -enable-threads=posix -enable-__cxa_atexit -enable-clocale=gnu && 136 149 make bootstrap && 137 150 make -C gcc gnatlib_and_tools && 138 151 make -k check && 152 ../gcc-3.4.1/contrib/test_summary && 153 ../gcc-3.4.1/contrib/test_summary | grep -A7 Summ && 139 154 make install && 140 155 ln -sf ../usr/bin/cpp /lib && 141 156 ln -sf gcc /usr/bin/cc && 142 157 ln -sf g77 /usr/bin/f77 && 158 chown -R root:root /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include && 143 159 export PATH=$PATH_HOLD</command></userinput></screen> 144 160 145 161 <para>You may remove the <application><acronym>GNAT</acronym></application> 146 162 installation:</para> 147 <screen><userinput><command>rm -rf /opt/gnat</command></userinput></screen> 148 163 <screen><userinput><command>rm -rf /opt/gnat</command></userinput></screen> --> 164 165 <important><para>The installation process may overwrite your existing 166 <application><acronym>GCC</acronym></application> compiler and libraries. It 167 is strongly recommended that you install the <application>Expect</application> 168 and <application>DejaGnu</application> packages as well as unpacking the 169 <application><acronym>GCC</acronym></application> testsuite tarball before 170 beginning the build.</para> 171 172 <para>Do not continue with the <command>make install</command> command until 173 you're confident the build was successful. You can compare your test results 174 with those found at <ulink 175 url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an i686 platform 176 test result produced by an <acronym>LFS</acronym> (SVN-testing-040712) system 177 at <ulink url="http://www.linuxfromscratch.org/~randy/gcc-test.txt"/>. You may 178 also want to refer to the information found in the 179 <application><acronym>GCC</acronym></application>-Pass 2 section of Chapter 5 180 in the <acronym>LFS</acronym> book.</para></important> 181 182 <note><para>Some of the <application>Java</application> programs installed by 183 the <application><acronym>GCC</acronym></application> package conflict (have 184 the same names) with programs from the <xref linkend="j2sdk"/> package. If 185 you're installing the <application>Java</application> language from the 186 <application><acronym>GCC</acronym></application> package but you wish to 187 use the programs from the <application>JDK</application> as the defaults, 188 ensure 189 <filename class='directory'><replaceable>[JDKpath]</replaceable>/bin</filename> 190 is listed before <filename class='directory'>/usr/bin</filename> in your 191 <envar>PATH</envar> variable.</para></note> 192 193 <para>Install <application><acronym>GCC</acronym></application> by running the 194 following commands:</para> 195 196 <screen><userinput><command>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch && 197 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && 198 mkdir ../gcc-build && 199 cd ../gcc-build && 200 ../gcc-&gcc-version;/configure --prefix=/usr --libexecdir=/usr/lib \ 201 --enable-shared --enable-languages=c,c++,objc,f77,java \ 202 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu && 203 make bootstrap && 204 make -k check && 205 ../gcc-3.4.1/contrib/test_summary && 206 make install && 207 ln -sf ../usr/bin/cpp /lib && 208 ln -sf gcc /usr/bin/cc && 209 ln -sf g77 /usr/bin/f77 && 210 chown -R root:root /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include</command></userinput></screen> 211 149 212 </sect2> 150 213 151 214 <sect2> 152 215 <title>Command explanations</title> 153 154 < para><command>PATH_HOLD=$PATH</command>: This command216 217 <!-- <para><command>PATH_HOLD=$PATH</command>: This command 155 218 stores your current path before it's modified so that it can be restored after 156 219 installation.</para> 157 220 158 221 <para><command>export PATH=/opt/gnat/bin:$PATH</command>: This 159 222 command allows the build to find … … 161 224 <application>Ada</application> compiler to build 162 225 <application>Ada</application>.</para> 163 226 164 227 <para><command>touch treeprs.ads [es]info.h nmake.ad[bs]</command>: 165 228 This command creates necessary files for the … … 167 230 may be skipped if you don't want to compile the 168 231 <application>Ada</application> front end.</para> 169 232 170 233 <para><parameter>CC=/usr/bin/gcc</parameter>: This command works around the 171 234 new <envar>PATH</envar> which puts <application><acronym>GNAT</acronym> 172 </application>'s <command>gcc</command> as the primary compiler.</para> 173 174 <para><parameter>--enable-languages=c,c++,objc,f77,ada,java</parameter>: This command builds all available languages in the 175 <application><acronym>GCC</acronym></application> package. 176 You may modify this command to remove unwanted languages.</para> 177 235 </application>'s <command>gcc</command> as the primary compiler.</para> --> 236 237 <para><command>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</command>: 238 This command suppresses the installation of 239 <filename class='libraryfile'>libiberty.a</filename> as the version provided 240 by <application>Binutils</application> is used instead.</para> 241 242 <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The 243 <application><acronym>GCC</acronym></application> documentation recommends 244 building the package in a dedicated build directory.</para> 245 246 <para><parameter>--enable-languages=c,c++,objc,f77,ada,java</parameter>: 247 This command identifies which languages to build. You may modify this command 248 to remove unwanted languages.</para> 249 178 250 <para><parameter>--enable-shared --enable-threads=posix 179 251 --enable-__cxa_atexit</parameter>: These commands are required to build 180 252 the <application>C++</application> libraries to published standards.</para> 181 253 182 254 <para><parameter>--enable-clocale=gnu</parameter>: This command is a 183 255 failsafe for incomplete locale data.</para> 184 185 <para><command>make gnatlib_and tools</command>: This command 256 257 <para><command>make -k check</command>: This command runs the test suite 258 without stopping should any errors be encountered.</para> 259 260 <para><command>../gcc-3.4.1/contrib/test_summary</command>: This command will 261 produce a summary of the test suite results. You can append 262 <command>| grep -A7 Summ</command> to the command to produce an even more 263 condensed version of the summary. You may also wish to redirect the output to 264 a file for review and comparison later on.</para> 265 266 <para><command>ln -sf ../usr/bin/cpp /lib</command>: This command creates a 267 link to the C PreProcessor as some packages expect it to be installed in the 268 <filename class='directory'>/lib</filename> directory.</para> 269 270 <para><command>ln -sf gcc /usr/bin/cc; ln -sf g77 /usr/bin/f77</command>: 271 These links are created as some packages refer to the C and Fortran compilers 272 using an alternate name.</para> 273 274 <!-- <para><command>make gnatlib_and tools</command>: This command 186 275 completes the <application>Ada</application> build process. Skip this step if 187 276 you have not enabled <application>Ada</application> as one of the languages. 188 </para> 189 277 </para> --> 278 190 279 </sect2> 191 280 192 281 <sect2> 193 282 <title>Contents</title> 194 195 <para>The <application><acronym>GCC</acronym></application> package contains 196 <command>c++</command>, 197 <command>c++filt</command>, <command>cpp</command>, 198 <command>g++</command>, <command>g77</command>, 199 <command>gcc</command>, <command>gccbug</command>, 200 <command>gcov</command>, <command>glob</command>, 201 <command>gnat</command>, <command>gnatbind</command>, 283 284 <para>The <application><acronym>GCC</acronym></application> package contains 285 <command>addr2name.awk</command>, <command>c++</command>, 286 <command>cpp</command>, <command>g++</command>, 287 <command>g77</command>, <command>gcc</command>, 288 <command>gccbug</command>, <command>gcj</command>, 289 <command>gcjh</command>, <command>gcov</command>, 290 <command>gij</command>, <command>grepjar</command>, 291 <command>jar</command>, <command>jcf-dump</command>, 292 <command>jv-convert</command>, <command>jv-scan</command>, 293 <command>rmic</command>, <command>rmiregistry</command> and 294 <!-- <command>gnat</command>, <command>gnatbind</command>, 202 295 <command>gnatbl</command>, <command>gnatchop</command>, 203 296 <command>gnatfind</command>, <command>gnatkr</command>, … … 205 298 <command>gnatmake</command>, <command>gnatprep</command>, 206 299 <command>gnatpsta</command>, <command>gnatpsys</command>, 207 <command>gnatxref</command> and 300 <command>gnatxref</command> and --> 208 301 <application><acronym>GCC</acronym></application> libraries.</para> 209 210 </sect2> 211 302 303 </sect2> 304 212 305 <sect2><title>Description</title> 213 306 214 307 <para>The programs and libraries whose descriptions are missing here 215 308 have been described in the <acronym>LFS</acronym> 216 309 <acronym>GCC</acronym>-&gcc-version; page.</para> 217 310 311 <sect3><title>addr2name.awk</title> 312 <para><command>addr2name.awk</command> emulates a little of the functionality 313 of addr2line.</para></sect3> 314 218 315 <sect3><title>g77</title> 219 <para><command>g77</command> is the <application>Fortran</application> compiler 316 <para><command>g77</command> is the <application>Fortran</application> compiler 220 317 invoked by <command>gcc</command>.</para></sect3> 221 222 <sect3><title>add2line</title> 223 <para><command>add2line</command> converts the <acronym>ASCII</acronym> form of 224 the 2-line orbital elements in a file to binary form and appends them to the 225 orbdata files. </para></sect3> 226 227 <sect3><title>gcov</title> 228 <para><command>gcov</command> is a test coverage program.</para></sect3> 229 230 <sect3><title>gdb</title> 318 319 <sect3><title>gcj</title> 320 <para><command>gcj</command> is an ahead-of-time compiler for the 321 <application>Java</application> language.</para></sect3> 322 323 <sect3><title>gcjh</title> 324 <para><command>gcjh</command> generates header files from 325 <application>Java</application> class files.</para></sect3> 326 327 <sect3><title>gij</title> 328 <para><command>gij</command> is the <acronym>GNU</acronym> interpreter for 329 <application>Java</application> bytecode.</para></sect3> 330 331 <sect3><title>grepjar</title> 332 <para><command>grepjar</command> searches <filename>jar</filename> files for a 333 pattern.</para></sect3> 334 335 <sect3><title>jar</title> 336 <para><command>jar</command> is an archive tool for 337 <application>Java</application> archives.</para></sect3> 338 339 <sect3><title>jcf-dump</title> 340 <para><command>jcf-dump</command> prints information about 341 <application>Java</application> class files.</para></sect3> 342 343 <sect3><title>jv-convert</title> 344 <para><command>jv-convert</command> converts files from one encoding to 345 another.</para></sect3> 346 347 <sect3><title>jv-scan</title> 348 <para><command>jv-scan</command> prints information about 349 <application>Java</application> source files.</para></sect3> 350 351 <sect3><title>rmic</title> 352 <para><command>rmic</command> generates stubs for Remote Method 353 Invocation.</para></sect3> 354 355 <sect3><title>rmiregistry</title> 356 <para><command>rmiregistry</command> starts a remote object registry on the 357 current host.</para></sect3> 358 359 <!-- <sect3><title>gdb</title> 231 360 <para><command>gdb</command> is the 232 361 <application><acronym>GNAT</acronym></application> debugger.</para></sect3> 233 362 234 363 <sect3><title>gnatbind</title> 235 364 <para><command>gnatbind</command> is used to bind compiled objects.</para> 236 365 </sect3> 237 366 238 367 <sect3><title>gnatbl</title> 239 368 <para><command>gnatbl</command> is the <application>Ada</application> linker. 240 369 </para></sect3> 241 370 242 371 <sect3><title>gnatchop</title> 243 372 <para><command>gnatchop</command> is useful for renaming files to meet the 244 373 standard <application>Ada</application> default file naming conventions.</para></sect3> 245 374 246 375 <sect3><title>gnatelim</title> 247 376 <para><command>gnatelim</command> is used to detect and eliminate unused 248 377 subprograms in an <application>Ada</application> partition.</para></sect3> 249 378 250 379 <sect3><title>gnatfind</title> 251 380 <para><command>gnatfind</command> is the <application><acronym>GNAT</acronym> 252 381 </application> definition/use finder.</para></sect3> 253 382 254 383 <sect3><title>gnatgcc</title> 255 384 <para><command>gnatgcc</command> is the compiler.</para></sect3> 256 385 257 386 <sect3><title>gnathtml.pl</title> 258 387 <para><command>gnathtml.pl</command> converts 259 388 <application>Ada</application> source files to <acronym>HTML</acronym> for 260 389 viewing in Web browsers.</para></sect3> 261 390 262 391 <sect3><title>gnatkr</title> 263 392 <para><command>gnatkr</command> is used to determine the crunched name for a 264 393 given file, when crunched to a specified maximum length.</para></sect3> 265 394 266 395 <sect3><title>gnatlink</title> 267 396 <para><command>gnatlink</command> is used to link programs and build an 268 397 executable file.</para></sect3> 269 398 270 399 <sect3><title>gnatls</title> 271 400 <para><command>gnatls</command> is the compiled unit browser.</para></sect3> 272 401 273 402 <sect3><title>gnatemake</title> 274 <para><command>gnatmake</command> is an automatic make facility.</para></sect3> 403 <para><command>gnatmake</command> is an automatic make facility.</para></sect3> 404 275 405 <sect3><title>gnatmem</title> 276 406 <para><command>gnatmem</command> is the <application><acronym>GNAT</acronym> 277 407 </application> utility that monitors dynamic allocation and 278 408 deallocation activity in a program.</para></sect3> 279 409 280 410 <sect3><title>gnatprep</title> 281 411 <para><command>gnatprep</command> is the 282 412 <application><acronym>GNAT</acronym></application> external preprocessor.</para> 283 413 </sect3> 284 414 285 415 <sect3><title>gnatpsta</title> 286 416 <para><command>gnatpsta</command> determines the values of all the relevant 287 417 parameters in Standard and outputs to stdout.</para></sect3> 288 418 289 419 <sect3><title>gnatpsys</title> 290 420 <para><command>gnatpsys</command> determines the values of all the relevant … … 293 423 <sect3><title>gnatstub</title> 294 424 <para><command>gnatstub</command> is a generator of body stubs.</para></sect3> 295 425 296 426 <sect3><title>gnatxref</title> 297 <para><command>gnatxref</command> is the <application><acronym>GNAT</acronym></application> cross-referencer.</para></sect3> 298 299 <sect3><title>gvd</title> 300 <para><command>gvd</command> is the <acronym>GNU</acronym> Visual Debugger. 301 </para></sect3> 302 427 <para><command>gnatxref</command> is the <application><acronym>GNAT</acronym></application> cross-referencer.</para></sect3> --> 428 303 429 </sect2> 304 430 -
introduction/welcome/changelog.xml
rd7b8efd2 r8ca386d 23 23 <itemizedlist> 24 24 25 <listitem><para>August 29th, 2004 [randy]: Updated to 26 GCC-3.4.1.</para></listitem> 27 25 28 <listitem><para>August 28th, 2004 [randy]: Removed kernel_2.6 patch from 26 29 cdrtools; removed build_fix patch from iptables.</para></listitem>
Note:
See TracChangeset
for help on using the changeset viewer.