-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build and install gcc 4.9.4 on rhel72
Builds and installs gcc 4.9 which isn't officially supported. The install could take up to 30 mins. Must use the following export PATH=/data/gcc-4.9/bin:$PATH export LDFLAGS="-Wl,-rpath,$(dirname $(/data/gcc-4.9/bin/gcc --print-file-name libgcc_s.so))"
- Loading branch information
Showing
5 changed files
with
318 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
--- | ||
|
||
# | ||
# installs gcc 4.9 @ /data/gcc-4.9 on rhel7.x | ||
# | ||
|
||
- stat: path=/data/gcc-4.9/bin/gcc-4.9 | ||
register: build_gcc_49 | ||
tags: gcc49 | ||
|
||
- name: Clean path | ||
file: | ||
state: absent | ||
path: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create working directory | ||
file: | ||
path: /data/tmp | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: download gmp 6.1.0 | ||
get_url: | ||
url: http://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.xz | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: unarchive gmp 6.1.0 | ||
unarchive: | ||
src: /data/tmp/gmp-6.1.0.tar.xz | ||
remote_src: yes | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create build directory | ||
file: | ||
path: /data/tmp/build | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: configure gmp 6.1.0 | ||
shell: /data/tmp/gmp-6.1.0/configure --prefix=/data/gcc-4.9 | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: build gmp 6.1.0 | ||
shell: make -j{{ ansible_processor_cores }} install | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Clean path | ||
file: | ||
state: absent | ||
path: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create working directory | ||
file: | ||
path: /data/tmp | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: download mprf 3.1.4 | ||
get_url: | ||
url: http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.gz | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: unarchive mprf 3.1.4 | ||
unarchive: | ||
src: /data/tmp/mpfr-3.1.4.tar.gz | ||
remote_src: yes | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create build directory | ||
file: | ||
path: /data/tmp/build | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: build mprf 3.1.4 | ||
shell: /data/tmp/mpfr-3.1.4/configure --with-gmp=/data/gcc-4.9 --prefix=/data/gcc-4.9 | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: build mprf 3.1.4 | ||
shell: make -j{{ ansible_processor_cores }} install | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Clean path | ||
file: | ||
state: absent | ||
path: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create working directory | ||
file: | ||
path: /data/tmp | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: download mpc 1.0.3 | ||
get_url: | ||
url: http://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: unarchive mpc 1.0.3 | ||
unarchive: | ||
src: /data/tmp/mpc-1.0.3.tar.gz | ||
remote_src: yes | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create build directory | ||
file: | ||
path: /data/tmp/build | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: configure mpc 1.0.3 | ||
shell: /data/tmp/mpc-1.0.3/configure --with-mpfr=/data/gcc-4.9 --with-gmp=/data/gcc-4.9 --prefix=/data/gcc-4.9 | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: build mpc 1.0.3 | ||
shell: make -j{{ ansible_processor_cores }} install | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Clean path | ||
file: | ||
state: absent | ||
path: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create working directory | ||
file: | ||
path: /data/tmp | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: download binutils 2.28.1 | ||
get_url: | ||
url: https://ftp.gnu.org/gnu/binutils/binutils-2.28.1.tar.gz | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: unarchive binutils 2.28.1 | ||
unarchive: | ||
src: /data/tmp/binutils-2.28.1.tar.gz | ||
remote_src: yes | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create build directory | ||
file: | ||
path: /data/tmp/build | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: configure binutils 2.28.1 | ||
shell: /data/tmp/binutils-2.28.1/configure --with-mpfr=/data/gcc-4.9 --with-gmp=/data/gcc-4.9 --prefix=/data/gcc-4.9 | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: build binutils 2.28.1 | ||
shell: make -j{{ ansible_processor_cores }} | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: install binutils 2.28.1 | ||
shell: make install | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Clean path | ||
file: | ||
state: absent | ||
path: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create working directory | ||
file: | ||
path: /data/tmp | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: download gcc 4.9.4 | ||
get_url: | ||
url: http://ftp.gnu.org/gnu/gcc/gcc-4.9.4/gcc-4.9.4.tar.gz | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: unarchive gcc 4.9.4 | ||
unarchive: | ||
src: /data/tmp/gcc-4.9.4.tar.gz | ||
remote_src: yes | ||
dest: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Create build directory | ||
file: | ||
path: /data/tmp/build | ||
state: directory | ||
mode: 0755 | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: configure gcc4.9 | ||
shell: /data/tmp/gcc-4.9.4/configure --with-mpfr=/data/gcc-4.9 --with-gmp=/data/gcc-4.9 --prefix=/data/gcc-4.9 --program-suffix=-4.9 --disable-multilib | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: build gcc49 | ||
shell: make -j{{ ansible_processor_cores }} | ||
async: 3600 | ||
poll: 10 | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: install gcc49 | ||
shell: make install | ||
args: | ||
chdir: /data/tmp/build | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 | ||
|
||
- name: Clean path | ||
file: | ||
state: absent | ||
path: /data/tmp/ | ||
when: build_gcc_49.stat.exists == False | ||
tags: gcc49 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
|
||
dependencies: | ||
- { 'role': 'java-base' } | ||
- { 'role': 'gcc', when: os|startswith("rhel7") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters