Versions Compared

Key

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

...

http://gcc.gnu.org/

Usage

No Format
 module load compilers/gcc-4.6.2gcc/9.2.0
For gcc 8: source /opt/rh/devtoolset-8/enable

Installation

8.1.0

No Format
module purge
module load compilers/gcc-4.5.1
No Format
library/mpc/1.1.0
module load compilerslibrary/mpfr/gcc-4.2.4
No Format
0.1
module load compilers/gcc-3.3

Installation

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.
>>>>>>>>>>>>

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


6.3.0

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

5.4.0

No Format
mkdir /sw/gcc/src/gcc-7.1.0/_5_4_0_build
cd /sw/gcc/src/gcc-7.1.0/_5_4_0_build
../gcc-5.4.0/configure --help 2>&1 | tee configureHelp.txt
The#The above command would list the configure options available
../gcc-5.4.0/configure --prefix=/sw/gcc/75.14.0 2>&1 | tee configureLog.txt
make 2>&1 | tee makemakeLog.txt
make install 2>&1 | tee makeInstall.txt

...


Version 4.6.3

Reference: http://dipak-dudhabhate.blogspot.com.au/

...