Received: from eggs.gnu.org ([2001:4830:134:3::10]:34394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYTq-0004D5-CJ for qemu-devel@nongnu.org; Fri, 07 Oct 2016 12:58:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYTo-0008Gi-4p for qemu-devel@nongnu.org; Fri, 07 Oct 2016 12:58:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYTn-0008Ga-RH for qemu-devel@nongnu.org; Fri, 07 Oct 2016 12:58:40 -0400 From: Paolo Bonzini Date: Fri, 7 Oct 2016 18:57:44 +0200 Message-Id: <1475859483-32234-21-git-send-email-pbonzini@redhat.com> In-Reply-To: <1475859483-32234-1-git-send-email-pbonzini@redhat.com> References: <1475859483-32234-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 20/39] .travis.yml: add gcc sanitizer build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= From: Alex Benn=C3=A9e As it seems easy to break the ThreadSanitizer build we should defend it t= o ensure that fixes get applied when it breaks. We use the Ubuntu GCC PPA to get the latest GCC goodness. As we need to use the -fuse-ld=3Dgold work around we have to disable the linux-user targets as these trip up the linker. The make check run is also disabled for Travis but this can be re-enabled once the check targets have been fixed. Signed-off-by: Alex Benn=C3=A9e Message-Id: <20160930213106.20186-13-alex.bennee@linaro.org> --- .travis.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.travis.yml b/.travis.yml index f30b10e..9916178 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ cache: ccache addons: apt: packages: + # Build dependencies - libaio-dev - libattr1-dev - libbrlapi-dev @@ -89,6 +90,7 @@ matrix: - env: CONFIG=3D"" os: osx compiler: clang + # Plain Trusty Build - env: CONFIG=3D"" sudo: required addons: @@ -99,3 +101,46 @@ matrix: - sudo apt-get build-dep -qq qemu - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule= -git-seed.tar.xz | tar -xvJ - git submodule update --init --recursive + # Using newer GCC with sanitizers + - addons: + apt: + sources: + # PPAs for newer toolchains + - ubuntu-toolchain-r-test + packages: + # Extra toolchains + - gcc-5 + - g++-5 + # Build dependencies + - libaio-dev + - libattr1-dev + - libbrlapi-dev + - libcap-ng-dev + - libgnutls-dev + - libgtk-3-dev + - libiscsi-dev + - liblttng-ust-dev + - libnfs-dev + - libncurses5-dev + - libnss3-dev + - libpixman-1-dev + - libpng12-dev + - librados-dev + - libsdl1.2-dev + - libseccomp-dev + - libspice-protocol-dev + - libspice-server-dev + - libssh2-1-dev + - liburcu-dev + - libusb-1.0-0-dev + - libvte-2.90-dev + - sparse + - uuid-dev + language: generic + compiler: none + env: + - COMPILER_NAME=3Dgcc CXX=3Dg++-5 CC=3Dgcc-5 + - CONFIG=3D"--cc=3Dgcc-5 --cxx=3Dg++-5 --disable-pie --disable-l= inux-user --with-coroutine=3Dgthread" + - TEST_CMD=3D"" + before_script: + - ./configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -fsanitize=3Dt= hread -fuse-ld=3Dgold" || cat config.log --=20 2.7.4