ReferencePlatforms/Linux: Difference between revisions

Use GCC 4.1 from Fedora Core 6
(Use GCC 4.1 from Fedora Core 6)
Line 47: Line 47:
  # type 'yes' to accept the license
  # type 'yes' to accept the license


== Get GCC trunk builds ==
== Make GCC 4.1 (redhat branch) ==


This will change when GCC 4.2 is actually released.
On a separate machine, use the following procedure to create a GCC 4.1.1 (RedHat branch) source tarball:


  mkdir /builds/gcc-trunk
  mkdir /builds/gcc-4_1-branch-117631
  cd /builds/gcc-trunk
  cd /builds/gcc-4_1-branch-117631
  curl ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20061014/gcc-4.2-20061014.tar.bz2 > gcc-4.2-20061014.tar.bz2
  svn co -r117631 svn://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch gcc
  tar -xjf gcc-4.2-20061014.tar.bz2
# This is the source tarball used for Fedora Core 6
   
cd /builds
  mkdir /builds/gcc-trunk/obj-release
tar -cjf gcc-4_1-branch-117631.tar.bz2 gcc-4_1-branch-117631
  cd /builds/gcc-trunk/obj-release
 
  ../gcc-4.2-20061014/configure --prefix=/builds/gcc-trunk/installed-release --enable-__cxa_atexit --enable-languages=c,c++ --with-system-zlib
Eventually this tarball should be committed to CVS.
 
On the build machine:
 
# Get the tarball from above and copy it to /builds (using SSH or curl or whatever)
  tar -xjf gcc-4_1-branch-117631.tar.bz2
  cd gcc-4_1-branch-117631
  mkdir obj-release
  cd obj-release
 
  ../gcc/configure --prefix=/builds/gcc-4_1-branch-117631/installed-release --enable-__cxa_atexit --enable-languages=c,c++ --with-system-zlib
  make
  make
  make install
  make install
Confirmed users, Bureaucrats and Sysops emeriti
1,217

edits