%general-entities; ]> $LastChangedBy$ $Date$ <application><acronym>GCC</acronym></application>-&gcc3-version; GCC-&gcc3-version; Introduction to <application><acronym>GCC</acronym></application>-&gcc3-version; The reason for installing GCC-&gcc3-version; is that some BLFS packages (such as compiled Java and OpenOffice) have not been updated to be compilable by GCC-&gcc-version;. Additionally, some pre-compiled packages may require the GCC-&gcc3-version; libraries. Package information Download (HTTP): Download (FTP): Download MD5 sum: &gcc3-md5sum; Download size: &gcc3-size; Estimated disk space required: &gcc3-buildsize; Estimated build time: &gcc3-time; Additional downloads Required patch: Required patch: <application><acronym>GCC</acronym>-3</application> dependencies Optional (required to run the full test suite) Installation of <application><acronym>GCC</acronym>-3</application> patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch && patch -Np1 -i ../gcc-&gcc3-version;-linkonce-1.patch && mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc3-version;/configure \ --prefix=/opt/gcc-&gcc3-version; \ --enable-shared --enable-languages=c,c++ \ --enable-threads=posix && make bootstrap If desired, run the test suite using the following commands. The test_summary commands create log files which can be compared to known good results located at and . make -k check && ../gcc-3.3.4/contrib/test_summary >test_summary.log 2>&1 && ../gcc-3.3.4/contrib/test_summary | \ grep -A7 Summ >test_summary_short.log 2>&1 Now, as the root user: make install && mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib && ln -sf /usr/lib/libstdc++.so.5.0.6 /opt/gcc-&gcc3-version;/lib && ln -sf libstdc++.so.5.0.6 /opt/gcc-&gcc3-version;/lib/libstdc++.so.5 && chown -R root:root \ /opt/gcc-&gcc3-version;/lib/gcc-lib/i686-pc-linux-gnu/&gcc3-version;/include Command explanations mkdir ../gcc-build; cd ../gcc-build: The GCC development team recommends building in a separate directory. --enable-shared --enable-languages=c,c++ --enable-threads=posix: Configures GCC to build the C and C++ compilers and enable the related C++ options. mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib: Moves the C++ libraries to the standard lib directory to avoid having to add /opt/gcc-&gcc3-version;/lib to /etc/ld.so.conf. Configuring <application><acronym>GCC</acronym></application> Configuration information If you only need the GCC-&gcc3-version; libraries, you may delete /opt/gcc-&gcc3-version;. Whenever you need to use GCC-&gcc3-version; instead of your system installed compiler, add /opt/gcc-&gcc3-version;/bin to the front of your PATH or (preferably) set the CC environment variable before compiling the concerned package. Contents Installed Programs Installed Libraries Installed Directories c++, cpp, g++, gcc, gccbug, gcov and architecture specific names of these programs. libgcc_s.so, libiberty.a, libstdc++.[a,so], libsupc++.a and other support libraries and files. /opt/gcc-&gcc3-version; Short Descriptions The GCC-&gcc3-version; package contains the gcc-&gcc3-version; C and C++ compilers and GCC-&gcc3-version; libstdc++.so that is required by some commercial and pre-compiled packages.