From patchwork Mon Feb 15 09:42:31 2021 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: 382889 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp933988jao; Mon, 15 Feb 2021 01:43:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJybZ33ecDZ6BaKOmiXRbg7NvBROp15q3yQIX3dLFv93yfKaRLvmybYbKeOf3ndoHOiDaKlO X-Received: by 2002:a05:6902:6af:: with SMTP id j15mr22690939ybt.229.1613382214112; Mon, 15 Feb 2021 01:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613382214; cv=none; d=google.com; s=arc-20160816; b=Fy8wGGnTWeuk7UzEb4akcaVVUL6rCufYF4xjvLV4TBxpQgeWxBidTdXY58yKVhNZC6 lTWvvsduEiamBxd/CtgquJwHGLTFwdQ7P2WJTT19/vwH05Ael/VE4yQGBSLC3/KKizhT TVylWyK/HIgm2BwgJ27gCe2GLUWDbX06U08ju7B9lv1SXurv4Tzsal+R/TIgwS0XIbOu D9X4I/9mplEK2y7RFIl0PxpabwsKPTeuQG9HwskTCFyjm1t/D9mzpFRmiRTSolnjhc+N 5aWsn3/19xT0wpmsB/a39XT3/bIiuwz7dvtVuIMI8X9IaVS0JFnqdIElMbIT49QwMiI/ vBAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=xcJX71cSYzlYbLeL0G+5Qp0GwFi/0FYEyERRdFlx7is=; b=vHrTrrjLMvqTm709iRaP+XCjMcyk+Fn24q+EgmFiDpRYpofOD8t1V8OuInDJIGoufx cuWx5Ws6dcNi57UtxoJNS6f0yRLvcb/ljU13tHHxzlVdTAlRzkAhZzrqJ8PYXthDIZw1 mR4VJWBaYqegoo8QfzX5YwnlFuWKViq5vw4GwvLJ6ogX+DVodyLEPhVgLlXG8QNadi86 1WNxiK95j6TdBe1/VpsdVHOP+GrpLPiRhg0jg3jUY4+UdyBQf/JwpArzH9vnLwbwNg0B Henc8O4AVYUoer73GncgP9kArHYhuHEnckGX5e8Dq8+U4onmN4z3r7MEg3AmtyWVM7NH 7fjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cYTunfgY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w1si17017022ybp.206.2021.02.15.01.43.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Feb 2021 01:43:34 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cYTunfgY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBaPl-0008SX-CT for patch@linaro.org; Mon, 15 Feb 2021 04:43:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBaP8-0008P1-KJ for qemu-devel@nongnu.org; Mon, 15 Feb 2021 04:42:54 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:40447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBaP5-0004LW-2d for qemu-devel@nongnu.org; Mon, 15 Feb 2021 04:42:54 -0500 Received: by mail-wr1-x42c.google.com with SMTP id v14so8063257wro.7 for ; Mon, 15 Feb 2021 01:42:50 -0800 (PST) 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=xcJX71cSYzlYbLeL0G+5Qp0GwFi/0FYEyERRdFlx7is=; b=cYTunfgYodr8o0V84ylgh0efmmiEjBNJCEUcdiOdozZw16Up6GWJcbeIkKTtpmo5Qy PA1VTp+50UFdoLd6tRTwQAWTBHaTIgxDsTVhAKFRveUfZ8XhrRmVm0DPsUWEG7bhuzGt C5iSPv4Kf7aI6nLUgP01trXATw4TbCagwjoAwY9dHrMZvh+L3/59mjuPzJAIQS99MEBX qFgptEjs/ACrCCzlbhJ5JsKGnkZr9dww/8TKBrvVb2Vt8QH4WZsWx7xSngXe7nxnjiou ZsubXFOqjj0BQSe7I/pIN0G5RbSoBRegVQNTL90L/BfULaGPZ+gfoExiYg8RVJMN0USl QPcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xcJX71cSYzlYbLeL0G+5Qp0GwFi/0FYEyERRdFlx7is=; b=DKv6NbuzRRzJBpssj67hIlvQ5DCS4iQwWUEZTpK12AB7yp6WbGLrpchoWYoEJ47iYn lt+kpPZrk52NZhlW57cwWhtow5Z8bW+S5ZcCClJqG0F/ANk2jbwX2c19QHpGaMlgZAiN B4d43pRQ4KCfkHBN/nsBTmovvQGYhYBhrhIRVFF0mxQ0rioUkfUJbWomOfG+hw03iaFP VotGw0hmmUc3EVqbJY77XKkqgIiIFGPaA81RTsogGAOGrkNE5h/+MlpsPgh/SK4edBEr X10hsK4r29WTAXv2wJdnKdzukftlflgso4Eev0TRhr9C54p47tOqd7fn/5X5cQ/Fwzu/ 3ZeQ== X-Gm-Message-State: AOAM530JmDz05SJht9DFxGCaq4v/985aQZN0waDn7ll65qTGgOMTBPsA iUkPOavEgfsuKiuBYB6730l8ng== X-Received: by 2002:a05:6000:1141:: with SMTP id d1mr17717514wrx.47.1613382169731; Mon, 15 Feb 2021 01:42:49 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id k11sm22415450wrv.51.2021.02.15.01.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 01:42:45 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 26CDD1FF8C; Mon, 15 Feb 2021 09:42:45 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 02/15] travis.yml: Move the -fsanitize=undefined test to the gitlab-CI Date: Mon, 15 Feb 2021 09:42:31 +0000 Message-Id: <20210215094244.12716-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210215094244.12716-1-alex.bennee@linaro.org> References: <20210215094244.12716-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe?= =?utf-8?q?_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth Add it to the existing Clang job and also add a job that covers the linux-user code with this compiler flag. To make sure that the detected problems are not simply ignored, let's also use "-fno-sanitize-recover=..." now instead. Signed-off-by: Thomas Huth Signed-off-by: Alex Bennée Message-Id: <20210211045455.456371-3-thuth@redhat.com> Message-Id: <20210211122750.22645-3-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 222858b553..5f3d42221a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -432,14 +432,24 @@ build-some-softmmu-plugins: TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu MAKE_CHECK_ARGS: check-tcg -build-clang: +clang-system: <<: *native_build_job_definition variables: IMAGE: fedora CONFIGURE_ARGS: --cc=clang --cxx=clang++ + --extra-cflags=-fsanitize=undefined --extra-cflags=-fno-sanitize-recover=undefined TARGETS: alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu - ppc-softmmu s390x-softmmu arm-linux-user - MAKE_CHECK_ARGS: check + ppc-softmmu s390x-softmmu + MAKE_CHECK_ARGS: check-qtest check-tcg + +clang-user: + <<: *native_build_job_definition + variables: + IMAGE: debian-all-test-cross + CONFIGURE_ARGS: --cc=clang --cxx=clang++ --disable-system + --target-list-exclude=microblazeel-linux-user,aarch64_be-linux-user,i386-linux-user,m68k-linux-user,mipsn32el-linux-user,xtensaeb-linux-user + --extra-cflags=-fsanitize=undefined --extra-cflags=-fno-sanitize-recover=undefined + MAKE_CHECK_ARGS: check-unit check-tcg # These targets are on the way out build-deprecated: diff --git a/.travis.yml b/.travis.yml index 05fa1ca905..533a60c130 100644 --- a/.travis.yml +++ b/.travis.yml @@ -138,33 +138,6 @@ jobs: - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" - # Test with Clang for compile portability (Travis uses clang-5.0) - - name: "Clang (user)" - env: - - CONFIG="--disable-system --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - - - name: "Clang (main-softmmu)" - env: - - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} - --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" - compiler: clang - before_script: - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log meson-logs/meson-log.txt && exit 1; } - - - - name: "Clang (other-softmmu)" - env: - - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} - --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - # Using newer GCC with sanitizers - name: "GCC9 with sanitizers (softmmu)" dist: bionic