Closed
Bug 570994
Opened 15 years ago
Closed 15 years ago
Install gcc 4.5 and YASM on SeaMonkey Linux build machines
Categories
(SeaMonkey :: Release Engineering, defect)
SeaMonkey
Release Engineering
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kairo, Assigned: kairo)
References
Details
bug 559964 has been installing gcc 4.5 on Firefox build machines, among other things to enable PGO, but it probably will be good for other things, so we should install it on the SeaMonkey slaves as well.
Assignee | ||
Comment 1•15 years ago
|
||
While there, we should also install YASM to speed up WebM code generated.
Depends on: 568377
Assignee | ||
Comment 2•15 years ago
|
||
I analyzed attachment 449710 [details] and put together the commands below to install gcc 4.5 on our Linux machines:
-------------------------------------------------------------------------------
cd /tools/dist/
wget http://ftp.gnu.org/gnu/gcc/gcc-4.5.0/gcc-4.5.0.tar.bz2
tar -jvxf gcc-4.5.0.tar.bz2
wget http://www.mpfr.org/mpfr-current/mpfr-2.4.2.tar.bz2
tar -jvxf mpfr-2.4.2.tar.bz2
wget http://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.bz2
tar -jvxf gmp-5.0.1.tar.bz2
wget http://www.multiprecision.org/mpc/download/mpc-0.8.1.tar.gz
tar -zvxf mpc-0.8.1.tar.gz
cd gmp-5.0.1
./configure --prefix=/tools/gcc-4.5
make
make install
#fix la
sed -i "s,libdir='/tools/gcc-4.5.0/lib',libdir='/tools/gcc-4.5/lib',g" \
/tools/gcc-4.5/lib/libgmp.la
cd ../mpfr-2.4.2
./configure --prefix=/tools/gcc-4.5 --with-gmp=/tools/gcc-4.5
make
make install
cd ../mpc-0.8.1
./configure --prefix=/tools/gcc-4.5 --with-gmp=/tools/gcc-4.5 --with-mpfr=/tools/gcc-4.5
make
make install
cd ../gcc-4.5.0
export LDFLAGS="-L/tools/gcc-4.5/lib -Wl,-rpath,/tools/gcc-4.5/lib"
export BOOT_LDFLAGS="$LDFLAGS"
export CXXFLAGS="-fPIC"
./configure --prefix=/tools/gcc-4.5 \
--enable-__cxa_atexit \
--enable-languages=c,c++ \
--with-gmp=/tools/gcc-4.5 \
--with-mpfr=/tools/gcc-4.5 \
--with-mpc=/tools/gcc-4.5
make BOOT_LDFLAGS="$BOOT_LDFLAGS" LDFLAGS="$LDFLAGS" bootstrap
make install
-------------------------------------------------------------------------------
For YASM, this is the lines I came up for 64bit:
-------------------------------------------------------------------------------
wget https://bugzilla.mozilla.org/attachment.cgi?id=446751
rpm -ihv yasm-1.0.1-1.x86_64.rpm
-------------------------------------------------------------------------------
And for 32bit:
-------------------------------------------------------------------------------
wget https://bugzilla.mozilla.org/attachment.cgi?id=446743
rpm -ihv yasm-1.0.1-1.i386.rpm
-------------------------------------------------------------------------------
Comment 3•15 years ago
|
||
Just a note, YASM is not yet ready to be installed for win machines.
Assignee | ||
Comment 4•15 years ago
|
||
(In reply to comment #3)
> Just a note, YASM is not yet ready to be installed for win machines.
This bug is about Linux machines only ;-)
We temporarily have the rpm package used via puppet for Firefox machines available. With that, we can shorten the installing gcc 4.5 on 32bit machines to:
-------------------------------------------------------------------------------
scp -i /home/seabld/.ssh/seabld_dsa seabld@stage-old.mozilla.org:/tmp/gcc45-4.5.0-0moz1.i686.rpm /tools/dist/
rpm -ihv /tools/dist/gcc45-4.5.0-0moz1.i686.rpm
-------------------------------------------------------------------------------
Assignee | ||
Comment 5•15 years ago
|
||
Installation of both gcc 4.5 and YASM should be complete on all 32bit Linux machines.
Assignee | ||
Comment 6•15 years ago
|
||
As that's so much nicer, I've stopped the compile process on the 64bit slave and am doing it this way instead:
-------------------------------------------------------------------------------
scp -i /home/seabld/.ssh/seabld_dsa
seabld@stage-old.mozilla.org:/tmp/gcc45-4.5.0-0moz1.x86_64.rpm /tools/dist/
rpm -ihv /tools/dist/gcc45-4.5.0-0moz1.x86_64.rpm
-------------------------------------------------------------------------------
Assignee | ||
Comment 7•15 years ago
|
||
Installation of both gcc 4.5 and YASM is complete on the 64bit machine now as well.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•