Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
module load gcc/8.1.0
OR
module load gcc/7.1.0
OR
module load gcc/6.3.0
OR
module load gcc/5.4.0 

module load compilers/gcc-4.6.2

...

No Format
module load compilers/gcc-3.3

Installation

8.1.0

No Format
module purge
module load library/mpc/1.1.0
module load library/mpfr/4.0.1
module load library/gmp/6.1.2
mkdir -p /sw/gcc/8.1.0/src/gcc-8.1.0/build2
cd /sw/gcc/8.1.0/src/gcc-8.1.0/build2
../configure --prefix=/sw/gcc/8.1.0 --disable-multilib --enable-languages=c,c++  --enable-shared  2>&1 | tee configureLog.txt

make -j 2>&1 | tee makejLog.txt &
make install 2>&1 | tee makeInstallLog.txt

 

7.1.0

No Format
svn ls svn://gcc.gnu.org/svn/gcc/tags | grep gcc | grep release
>>>>>>>>>>>>>>>>>>>>>>>>>>
...
gcc_4_9_3_release/
gcc_4_9_4_release/
gcc_5_1_0_release/
gcc_5_2_0_release/
gcc_5_3_0_release/
gcc_5_4_0_release/
gcc_6_1_0_release/
>>>>>>>>>>>>>>>>>>>>>>>>>>>

svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_7_1_0_release/

cd /sw/gcc/src/gcc-7.1.0
./contrib/download_prerequisites
---   Run from /sw/gcc/src/gcc-7.1.0
---   Do not cd to the contrib directory
>>>>>>>>>>>>
All prerequisites downloaded successfully.
>>>>>>>>>>>>

mkdir /sw/gcc/src/gcc_7_1_0_build
cd /sw/gcc/src/gcc_7_1_0_build
../gcc-7.1.0/configure --help 2>&1 | tee configureHelp.txt
The above command would list the configure options available
../gcc-7.1.0/configure --prefix=/sw/gcc/7.1.0 2>&1 | tee configureLog.txt
make 2>&1 | tee makeLog.txt
make install 2>&1 | tee makeInstall.txt

...