new gcc

hello -

now that the high-stakes drama of node.js vs io.js has been resolved (like a soap opera) i tried to build my own node.js from scratch. unfortunately, my gcc is too old, and yum wont give me a new(er) one.

so, until i get off my lazy a-- and migrate to the latest interserver slice, i decided to look into building the latest gcc. surprisingly enough, its not nearly as difficult as i thought, although the task itself is time consuming.

below is my WORK-IN-PROGRESS script - improvements are coming.

note: i am testing all this on a virtualbox.org centOS7 nice fresh environment.

also, please note that i have yet to find a valid test for gcc other than just start using it. if anybody knows a way to test, please let me know. "make check" and "make check-cc" didn't work.

## build a gcc 2015-12-08

yum --assumeyes update ;

## lzip needed for gmp
cd ~; mkdir ~/lzip; cd ~/lzip;
wget http://download.savannah.gnu.org/releases-redirect/lzip/lzip-1.17.tar.gz ;
gzip -d *; tar -xf *; cd *;
./configure && make && make check && make install ;

## GNU Multiple Precision Arithmetic Library
cd ~ ; mkdir ~/gmp; cd ~/gmp;
curl https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz > gmp-6.1.0.tar.lz;
lzip -d gmp-6.1.0.tar.lz;
tar -xf *; cd *;
./configure && make && make check && make install ;

## Multiple Precision Floating-Point Reliable Library
cd ~; mkdir ~/mpfr; cd ~/mpfr;
curl http://www.mpfr.org/mpfr-current/mpfr-3.1.3.tar.gz > mpfr-3.1.3.tar.gz;
gzip -d *; tar -xf *; cd mp*;
./configure && make && make check && make install;

## multiprecision-c
cd ~; mkdir ~/mpc ; cd ~/mpc;
curl ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz > ./mpc-1.0.3.tar.gz ;
gzip -d *; tar -xf *; cd *;
./configure && make && make check & make install;

## gcc
cd ~; mkdir ~/gcc ; cd ~/gcc;
curl http://www.netgull.com/gcc/releases/gcc-5.3.0/gcc-5.3.0.tar.gz > gcc-5.3.0.tar.gz;
gzip -d *; tar -xf *; cd * ;
./configure --disable-multilib --enable-languages=c,c++ ;
make ;
make install ;
which gcc;
gcc --version ;
 
Last edited:
Top