patch 应用
时间:2010-07-05 来源:ygl23
Introduction to GCC-3.3.6
There are several reasons why you may wish to install GCC-3.3.6. Some packages have not been updated so they can be successfully compiled by GCC-4.4.1 as version 4.x.x of GCC is much stricter in enforcing coding standards. Additionally, some pre-compiled packages may require the GCC-3.3.6 libraries at run-time. Another reason you may need to install GCC-3.3.6 is to use the g77 Fortran 77 compiler provided by pre-4.x.x versions of GCC. GCC-4.x.x only includes gfortran, a Fortran 95 compatible compiler that is not yet ready to be used in a production environment.
If all you need is a working {f,g}77 Fortran 77 compiler, you may wish to use the one provided by GCC-3.4.x. This is what the GCC developers recommend. Instructions for building the GCC-3.4.x Fortran compiler can be found on the BLFS Wiki.
Package Information
-
Download (HTTP): http://ftp.gnu.org/gnu/gcc/gcc-3.3.6/gcc-3.3.6.tar.bz2
-
Download (FTP): ftp://ftp.gnu.org/gnu/gcc/gcc-3.3.6/gcc-3.3.6.tar.bz2
-
Download MD5 sum: 6936616a967da5a0b46f1e7424a06414
-
Download size: 24 MB
-
Estimated disk space required: 433 MB (includes running the test suite)
-
Estimated build time: 5.2 SBU (additional 11.2 SBU to run the test suite)
Additional Downloads
-
Required patch: http://www.linuxfromscratch.org/patches/blfs/svn/gcc-3.3.6-no_fixincludes-1.patch
-
Required patch: http://www.linuxfromscratch.org/patches/blfs/svn/gcc-3.3.6-linkonce-1.patch
GCC-3.3.6 Dependencies
Optional
DejaGnu-1.4.4 (required to run the full test suite)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gcc3
Installation of GCC-3.3.6
Install GCC-3.3.6 by running the following commands:
patch -Np1 -i ../gcc-3.3.6-no_fixincludes-1.patch && patch -Np1 -i ../gcc-3.3.6-linkonce-1.patch && mkdir ../gcc-build && cd ../gcc-build && ../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 \ --enable-shared --enable-languages=c,c++ --enable-threads=posix --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
make;make install
http://www.linuxfromscratch.org/blfs/view/cvs/general/gcc3.html