From patchwork Fri Sep 30 21:31:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 77189 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp517788qgf; Fri, 30 Sep 2016 14:46:50 -0700 (PDT) X-Received: by 10.237.44.68 with SMTP id f62mr9144945qtd.154.1475272010755; Fri, 30 Sep 2016 14:46:50 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q188si6997518qkf.70.2016.09.30.14.46.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 30 Sep 2016 14:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bq5dq-0003Kq-83 for patch@linaro.org; Fri, 30 Sep 2016 17:46:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bq5Oz-0006VZ-7m for qemu-devel@nongnu.org; Fri, 30 Sep 2016 17:31:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bq5Oy-0006Zz-0L for qemu-devel@nongnu.org; Fri, 30 Sep 2016 17:31:29 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:34834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bq5Ox-0006Zj-Me for qemu-devel@nongnu.org; Fri, 30 Sep 2016 17:31:27 -0400 Received: by mail-wm0-x232.google.com with SMTP id f193so7521693wmg.0 for ; Fri, 30 Sep 2016 14:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PGC3Pbj/RT+KS+kSzkZEEEU7LiRa0dBt2UJmnFokSLY=; b=AGg3mCNI3EnaSM1j12ItsYyq85Gx7qUao1bAAeSa2BwJTe3mIKMlVByMkXJz8A22+b wATjDpsbdvon2+Hq2wEGZmsIWot9QLCAAjHpvGpSilBDXTiaK/gn7/SsmjpVDCjlvaGE 7ILzsqMImyuoBIjEpQM+BLUqRAEtiFFuAdUOM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PGC3Pbj/RT+KS+kSzkZEEEU7LiRa0dBt2UJmnFokSLY=; b=e2df++fwIAVjlgmpB0uOuBkG51d7SseqGmmFgIYhKPJYb8bpB8mIcedXhEvqOsyad9 DdX7mqDBeh4RhiGlxPFBMMpbA0jwtz1DuX52u7SOpMeyjSSBNm1JnCp0E+5Xk9cpiUVm mRG/FWUDZ3dYSBN9otsaxCDZ2rp6IkAnuNo09D07Udlaz3BJPWe/szX0waMngRerV8sQ YIYU/pqV6+Z9e+ATEsJJAXmylT8uPm1R44PG12TDVTf5dHxLtJpqji0FmNgV15RklI3a m1NXqjuREMrATRG1CAJLtNxZ3mlEBeXgnYYEeUeHMXGkRQ78kd9E+LeZPMBeU9zhZlOP brWw== X-Gm-Message-State: AA6/9Rlh63DKzLe+yxqUc50Jc58J3YjfCxfQdXudSuIhmjouyXeaiGBBFbFX4RtbL6w3mFHu X-Received: by 10.28.232.196 with SMTP id f65mr5500634wmi.2.1475271087034; Fri, 30 Sep 2016 14:31:27 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t65sm6029024wmt.15.2016.09.30.14.31.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Sep 2016 14:31:23 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5168C3E051E; Fri, 30 Sep 2016 22:31:18 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org, pbonzini@redhat.com Date: Fri, 30 Sep 2016 22:31:03 +0100 Message-Id: <20160930213106.20186-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160930213106.20186-1-alex.bennee@linaro.org> References: <20160930213106.20186-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::232 Subject: [Qemu-devel] [PATCH v3 12/15] .travis.yml: add gcc sanitizer build X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mttcg@listserver.greensocs.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, nikunj@linux.vnet.ibm.com, jan.kiszka@siemens.com, mark.burton@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, serge.fdrv@gmail.com, bobby.prani@gmail.com, rth@twiddle.net, =?UTF-8?q?Alex=20Benn=C3=A9e?= , fred.konrad@greensocs.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As it seems easy to break the ThreadSanitizer build we should defend it to 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=gold 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ée --- v2 - move to container instead of using Trusty - work around link problem with -fuse-ld=gold - disable linux-user builds - drop blacklist (gcc doesn't support it) - dump config.log if configure step fails - disable make check - ensure we use gthread coroutines --- .travis.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) -- 2.9.3 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="" os: osx compiler: clang + # Plain Trusty Build - env: CONFIG="" 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=gcc CXX=g++-5 CC=gcc-5 + - CONFIG="--cc=gcc-5 --cxx=g++-5 --disable-pie --disable-linux-user --with-coroutine=gthread" + - TEST_CMD="" + before_script: + - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || cat config.log