Bug 1560667 - Switch hazard analysis over to gcc 8.3.0 r=jonco
authorSteve Fink <sfink@mozilla.com>
Wed, 02 Oct 2019 03:19:06 +0000
changeset 495917 5a8a7c48c850766084ca90175b9641e34e2fdc6b
parent 495916 dfecb23de876e3aa1dfa4907af1859cf3fd023e8
child 495918 49ef9afb62bb909389b105a1751e9b46e6f1688d
push id114140
push userdvarga@mozilla.com
push dateWed, 02 Oct 2019 18:04:51 +0000
treeherdermozilla-inbound@32eb0ea893f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1560667
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1560667 - Switch hazard analysis over to gcc 8.3.0 r=jonco Differential Revision: https://phabricator.services.mozilla.com/D46682
taskcluster/ci/hazard/kind.yml
taskcluster/ci/toolchain/gcc.yml
taskcluster/scripts/builder/hazard-analysis.sh
taskcluster/scripts/builder/hazard-browser.sh
taskcluster/scripts/builder/hazard-shell.sh
taskcluster/scripts/misc/build-gcc-sixgill-plugin-linux.sh
--- a/taskcluster/ci/hazard/kind.yml
+++ b/taskcluster/ci/hazard/kind.yml
@@ -40,17 +40,17 @@ jobs:
                 && ./build-haz-linux.sh --project shell $HOME/workspace
         when:
             files-changed:
                 - js/public/**
                 - js/src/**
         fetches:
             toolchain:
                 - linux64-clang
-                - linux64-gcc-6
+                - linux64-gcc-8
                 - linux64-gcc-sixgill
                 - linux64-rust
                 - linux64-cbindgen
                 - linux64-node
 
     linux64-haz/debug:
         description: "Browser Hazard Analysis Linux"
         index:
@@ -62,14 +62,14 @@ jobs:
         run:
             using: hazard
             command: >
                 cd /builds/worker/checkouts/gecko/taskcluster/scripts/builder
                 && ./build-haz-linux.sh --project browser $HOME/workspace
         fetches:
             toolchain:
                 - linux64-clang
-                - linux64-gcc-6
+                - linux64-gcc-8
                 - linux64-gcc-sixgill
                 - linux64-rust
                 - linux64-cbindgen
                 - linux64-nasm
                 - linux64-node
--- a/taskcluster/ci/toolchain/gcc.yml
+++ b/taskcluster/ci/toolchain/gcc.yml
@@ -79,15 +79,15 @@ linux64-gcc-sixgill:
     run:
         script: build-gcc-sixgill-plugin-linux.sh
         resources:
             - 'taskcluster/scripts/misc/build-gcc-sixgill-plugin-linux.sh'
         toolchain-artifact: public/build/sixgill.tar.xz
     fetches:
         fetch:
             - binutils-2.31.1
-            - isl-0.15
-            - gcc-6.4.0
-            - gmp-5.1.3
-            - mpc-0.8.2
-            - mpfr-3.1.5
+            - gcc-8.3.0
+            - gmp-6.1.0
+            - isl-0.16.1
+            - mpc-1.0.3
+            - mpfr-3.1.4
         toolchain:
-            - linux64-gcc-6
+            - linux64-gcc-8
--- a/taskcluster/scripts/builder/hazard-analysis.sh
+++ b/taskcluster/scripts/builder/hazard-analysis.sh
@@ -12,16 +12,19 @@ GCCDIR="$MOZ_FETCHES_DIR/gcc"
 
 export CC="$GCCDIR/bin/gcc"
 export CXX="$GCCDIR/bin/g++"
 export PATH="$GCCDIR/bin:$MOZ_FETCHES_DIR/clang/bin:$PATH"
 export LD_LIBRARY_PATH="$GCCDIR/lib64"
 export RUSTC="$MOZ_FETCHES_DIR/rustc/bin/rustc"
 export CARGO="$MOZ_FETCHES_DIR/rustc/bin/cargo"
 
+export CFLAGS="$CFLAGS -Wno-attributes -Wno-ignored-attributes"
+export CPPFLAGS="$CPPFLAGS -Wno-attributes -Wno-ignored-attributes"
+
 PYTHON=python3
 
 function check_commit_msg () {
     ( set +e;
     if [[ -n "$AUTOMATION" ]]; then
         hg --cwd "$GECKO_PATH" log -r. --template '{desc}\n' | grep -F -q -- "$1"
     else
         echo -- "$SCRIPT_FLAGS" | grep -F -q -- "$1"
--- a/taskcluster/scripts/builder/hazard-browser.sh
+++ b/taskcluster/scripts/builder/hazard-browser.sh
@@ -1,10 +1,13 @@
 #!/bin/bash -e
 
+export CFLAGS="$CFLAGS -Wno-attributes -Wno-ignored-attributes"
+export CXXFLAGS="$CXXFLAGS -Wno-attributes -Wno-ignored-attributes"
+
 cd $SOURCE
 TOP=$(cd ..; pwd)
 export MOZBUILD_STATE_PATH=$TOP/mozbuild-state
 [ -d $MOZBUILD_STATE_PATH ] || mkdir $MOZBUILD_STATE_PATH
 
 export MOZCONFIG=$SOURCE/js/src/devtools/rootAnalysis/mozconfig.haz
 
 exec ./mach build -v -j8
--- a/taskcluster/scripts/builder/hazard-shell.sh
+++ b/taskcluster/scripts/builder/hazard-shell.sh
@@ -1,6 +1,9 @@
 #!/bin/bash -ex
 
+export CFLAGS="$CFLAGS -Wno-attributes -Wno-ignored-attributes"
+export CXXFLAGS="$CXXFLAGS -Wno-attributes -Wno-ignored-attributes"
+
 mkdir -p "$ANALYZED_OBJDIR"
 cd "$ANALYZED_OBJDIR"
 $SOURCE/js/src/configure --enable-debug --enable-optimize --enable-ctypes --enable-nspr-build
 make -j8 -s
--- a/taskcluster/scripts/misc/build-gcc-sixgill-plugin-linux.sh
+++ b/taskcluster/scripts/misc/build-gcc-sixgill-plugin-linux.sh
@@ -6,21 +6,22 @@ set -x
 # This script is for building the sixgill GCC plugin for Linux. It relies on
 # the gcc checkout because it needs to recompile gmp and the gcc build script
 # determines the version of gmp to download.
 
 root_dir=$MOZ_FETCHES_DIR
 build_dir=$GECKO_PATH/build
 data_dir=$GECKO_PATH/build/unix/build-gcc
 
-sixgill_rev=bc0ef9258470
+sixgill_rev=d73ae051e97c
 sixgill_repo=https://hg.mozilla.org/users/sfink_mozilla.com/sixgill
 
 . $data_dir/build-gcc.sh
 
+mkdir $root_dir/gcc-source || true
 pushd $root_dir/gcc-source
 ln -sf ../binutils-source binutils
 ln -sf ../gmp-source gmp
 ln -sf ../isl-source isl
 ln -sf ../mpc-source mpc
 ln -sf ../mpfr-source mpfr
 popd