Ignore:
Timestamp:
05/03/2004 10:59:46 AM (20 years ago)
Author:
Matthew Burgess <matthew@…>
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.0, 6.1, 6.1.1, 6.3, 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, v5_1, v5_1_1, 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:
0c43171, 2ec64b3, a4a675f
Parents:
287ea55
Message:
  • Merged newxml into HEAD

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc-2953.xml

    r287ea55 r673b0d8  
     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]>
    16<sect1 id="ch-system-gcc-2953">
    2 <title>Installing GCC-2.95.3</title>
    3 <?dbhtml filename="gcc-2953.html" dir="chapter06"?>
     7<title>GCC-&gcc-2953-version;</title>
     8<?dbhtml filename="gcc-2953.html"?>
    49
    5 <screen>&buildtime; &gcc-2953-time;
    6 &diskspace; &gcc-2953-compsize;</screen>
     10<indexterm zone="ch-system-gcc-2953"><primary sortas="a-GCC-2953">GCC-2953</primary></indexterm>
    711
    8 <sect2><title></title>
    9 <literallayout>Official download location for GCC-2 (&gcc-2953-version;):
    10 <ulink url="ftp://ftp.gnu.org/pub/gnu/gcc/"/>
    11 And for the GCC-2 Patch:
    12 <ulink url="&patches-root;&gcc-2953-patch;"/>
    13 And for the GCC-2 No-Fixincludes Patch:
    14 <ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>
    15 And for the GCC-2 Return-Type Patch:
    16 <ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/></literallayout>
    17 </sect2>
    18 
    19 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
     12<screen>&buildtime; 1.5 SBU
     13&buildtime; 130 MB</screen>
    2014
    2115<sect2>
     
    2519default optimization flags (including the -march and -mcpu options).
    2620Therefore, if you have defined any environment variables that override
    27 default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
     21default optimizations, such as CFLAGS and CXXFLAGS, we recommend un-setting
    2822or modifying them when building GCC.</para>
    2923
    3024<para>This is an older release of GCC which we are going to install for the
    31 purpose of compiling the Linux kernel in <xref linkend="chapter-mixture"/>. This
    32 version is recommended
    33 by the kernel developers when you need absolute stability. Later versions of
    34 GCC have not received as much testing for Linux kernel compilation. Using a
    35 later version is likely to work, however, we recommend adhering to the kernel
    36 developer's advice and using the version here to compile your kernel.</para>
     25purpose of compiling the Linux kernel in <xref linkend="chapter-bootable"/>.
     26This version is recommended by the kernel developers when you need absolute
     27stability. Later versions of GCC have not received as much testing for Linux
     28kernel compilation. Using a later version is likely to work, however, we
     29recommend adhering to the kernel developer's advice and using the version here
     30to compile your kernel.</para>
    3731
    3832<note><para>We don't install the C++ compiler or libraries here. However, there
     
    4741<para>Apply the patches and make a small adjustment:</para>
    4842
    49 <screen><userinput>patch -Np1 -i ../&gcc-2953-patch;
    50 patch -Np1 -i ../&gcc-2953-no-fixinc-patch;
    51 patch -Np1 -i ../&gcc-2953-returntype-fix-patch;
     43<screen><userinput>patch -Np1 -i ../gcc-&gcc-2953-version;-2.patch
     44patch -Np1 -i ../gcc-&gcc-2953-version;-no-fixinc.patch
     45patch -Np1 -i ../gcc-&gcc-2953-version;-returntype-fix.patch
    5246echo timestamp &gt; gcc/cstamp-h.in</userinput></screen>
    5347
     
    6054<para>Compile and install the compiler:</para>
    6155
    62 <screen><userinput>../&gcc-2953-dir;/configure --prefix=/opt/&gcc-2953-dir; \
    63 &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c \
    64 &nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix
     56<screen><userinput>../gcc-&gcc-2953-version;/configure --prefix=/opt/gcc-&gcc-2953-version; \
     57    --enable-shared --enable-languages=c \
     58    --enable-threads=posix
    6559make bootstrap
    6660make install</userinput></screen>
     
    6963
    7064</sect1>
    71 
Note: See TracChangeset for help on using the changeset viewer.