taskcluster/scripts/misc/build-gcc-6-linux.sh
author Gregory Szorc <gps@mozilla.com>
Wed, 09 May 2018 14:36:45 -0700
changeset 818149 2f346200eee8f6576823c84526081c34b2b13be2
parent 620028 7e43e6ed3afc703d76b718b2e128c9b923d13500
child 648492 1c7e9ce8b0e4630105ad74ea287983eaa3469812
child 649190 82727b9f2779b95c2c13a73f7c3bd0abb39e41ea
child 763019 4faffe83f2bcaf153530d374c8938d0ee10bfd43
child 793436 e1c834313a274cf7c6a11e74076a52e509dd798e
child 802612 8244a8a4146410420a2b7b8322acb55bf8ec745d
child 802613 ef102389f1d16849d35d1c3c3db60be4caefeccd
permissions -rwxr-xr-x
Bug 1460650 - Rename sixgill task name so it has "gcc" in it; r=nalexander Mainly so searching "toolchain" + "gcc" yields something useful in the taskgraph. MozReview-Commit-ID: HWiT3AwwYQ2

#!/bin/bash
set -e

# This script is for building GCC 6 for Linux.

WORKSPACE=$HOME/workspace
HOME_DIR=$WORKSPACE/build
UPLOAD_DIR=$HOME/artifacts

root_dir=$HOME_DIR
data_dir=$HOME_DIR/src/build/unix/build-gcc

. $data_dir/build-gcc.sh

gcc_version=6.4.0
gcc_ext=xz
binutils_version=2.25.1
binutils_ext=bz2

# GPG key used to sign GCC
$GPG --import $data_dir/13975A70E63C361C73AE69EF6EEB81F8981C74C7.key
# GPG key used to sign binutils
$GPG --import $data_dir/EAF1C276A747E9ED86210CBAC3126D3B4AE55E93.key
# GPG key used to sign GMP
$GPG --import $data_dir/343C2FF0FBEE5EC2EDBEF399F3599FF828C67298.key
# GPG key used to sign MPFR
$GPG --import $data_dir/07F3DBBECC1A39605078094D980C197698C3739D.key
# GPG key used to sign MPC
$GPG --import $data_dir/AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3.key

cat > $HOME_DIR/checksums <<EOF
b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22  binutils-2.25.1.tar.bz2
850bf21eafdfe5cd5f6827148184c08c4a0852a37ccf36ce69855334d2c914d4  gcc-6.4.0.tar.xz
752079520b4690531171d0f4532e40f08600215feefede70b24fabdc6f1ab160  gmp-5.1.3.tar.bz2
8ceebbf4d9a81afa2b4449113cee4b7cb14a687d7a549a963deb5e2a41458b6b  isl-0.15.tar.bz2
ae79f8d41d8a86456b68607e9ca398d00f8b7342d1d83bcf4428178ac45380c7  mpc-0.8.2.tar.gz
ca498c1c7a74dd37a576f353312d1e68d490978de4395fa28f1cbd46a364e658  mpfr-3.1.5.tar.bz2
EOF

prepare
build_binutils
build_gcc

# Put a tarball in the artifacts dir
mkdir -p $UPLOAD_DIR
cp $HOME_DIR/gcc.tar.* $UPLOAD_DIR