ReferencePlatforms/Linux: Difference between revisions
Jump to navigation
Jump to search
Line 49: | Line 49: | ||
== Make GCC 4.1 (redhat branch) == | == Make GCC 4.1 (redhat branch) == | ||
mkdir /builds/gcc-redhat | |||
cd /builds/gcc-redhat | |||
mkdir /builds/gcc- | curl http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/source/SRPMS/gcc-4.1.1-30.src.rpm > gcc-4.1.1-30.src.rpm | ||
cd /builds/gcc- | rpm2cpio gcc-4.1.1-30.src.rpm | cpio -i gcc-4.1.1-20061011.tar.bz2 | ||
tar -xjf gcc-4.1.1-20061011.tar.bz2 | |||
tar -xjf gcc- | |||
mkdir obj-release | mkdir obj-release | ||
cd obj-release | cd obj-release | ||
../gcc/configure --prefix=/builds/gcc- | ../gcc-4.1.1-20061011/configure --prefix=/builds/gcc-redhat/installed-release --enable-__cxa_atexit --enable-languages=c,c++ --with-system-zlib | ||
make | make | ||
make install | make install |
Revision as of 15:29, 21 December 2006
This is a procedure I'm using to create a potential VM for producing Linux nightlies for Gecko 1.9.
Install CentOS4.3 from CDs
For the moment, I'm using "bsmedberg" as the regular user. If we are going to provide a public download of the VM, we probably shouldn't use the standard cltbld account/password. I'm not sure how that should work security-wise.
Choose the development workstation installation set.
Fix some permissions, create /builds directory
Save the following file as ~/.bash_profile
# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin
export PATH export CVS_RSH=ssh export JAVA_HOME=/builds/jdk1.5.0_08
Fix some permissions, and create a /builds directory.
su - chmod a+x /etc/bashrc groupadd builders usermod -a -G builders bsmedberg mkdir /builds chgrp builders /builds
Logout/login to pick up new group setting
Install Sun Java JDK
Note: we should archive this binary somewhere
- Go to http://java.sun.com/javase/downloads/
- Click through to JDK 5.0 Update 8
- Download the "Linux self-extracting file"... not the RPM
- Save to /builds
cd /builds ./jdk-1_5_0_08-linux-i586.bin # type 'yes' to accept the license
Make GCC 4.1 (redhat branch)
mkdir /builds/gcc-redhat cd /builds/gcc-redhat curl http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/source/SRPMS/gcc-4.1.1-30.src.rpm > gcc-4.1.1-30.src.rpm rpm2cpio gcc-4.1.1-30.src.rpm | cpio -i gcc-4.1.1-20061011.tar.bz2 tar -xjf gcc-4.1.1-20061011.tar.bz2 mkdir obj-release cd obj-release ../gcc-4.1.1-20061011/configure --prefix=/builds/gcc-redhat/installed-release --enable-__cxa_atexit --enable-languages=c,c++ --with-system-zlib make make install
To build mozilla
The mozconfig for building mozilla should contain the following settings:
CC=/builds/gcc-trunk/installed-release/bin/gcc CXX=/builds/gcc-trunk/installed-release/bin/g++