From patchwork Thu Dec 19 10:49:19 2019 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: 182079 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp311451iln; Thu, 19 Dec 2019 02:52:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwVdib8qVUkRflRBKkYEfYzkz6wgI52oW84SupLRjvjY8r3nowC8Zf98rxB7XHKa2+OMuc3 X-Received: by 2002:a05:6830:1755:: with SMTP id 21mr6095104otz.323.1576752751944; Thu, 19 Dec 2019 02:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576752751; cv=none; d=google.com; s=arc-20160816; b=ONNbMqR5oM2PifON1NKpSY6EOEtEYX9U1VV/3lPzhUFxfXBq/D3QgFMDVKrKkQuhRD +hrWiahZqDNXuKN7Em4CpebBfU5siVPUQzdAyzPdJf0vDAG9qgmxFYYwJMNbix+V1lPU EIfhkRmgcDf5Gau1KJghH0hTnB8Mw8D/0nIDLX4udyBKAsBUl3+NprA0fdWmyqcfQIjO deXDldu45sYFrWjoOiha6Jxu1A8aQXMCJVOmFoj9lkgetAk16syprS/2jJiJAahcCBWX vfBh5ovobzvCLkWd5hG3rWRTWgXydngtju/rEkbUVGYCvJh0gBeuiXaMiM4LHZoaTu/+ 0WQg== 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=tQ2NW34S5Zq+7PW6zNueCL2QW+1AX6K9G7g3BN8KIko=; b=o0VGWRo+Yb4Xq3o3eXpxecXLobqL4ewfl6rS8X1H5cPkp8DN+KOtuMa3BuRtfvya5A KctFVZYm0Hq9wqBNJCV0hS7xFy+XR2mx5/kHD5pe1z9zIYpG8iCAjLuuJRQxYACxOY6e 40nCJRfHC8Jviy7YYrgfbS3XTVV9YeIdnR6+gfxzaijDL+e4QZ6Y/sVexhCv0aI1Dwni +vnq7Fe7b/tokSEwVdpMJycgrAkExZ2wn5aAaXO/enSqPPH94kdGaZEfQ6iQGM2jubzg LmJMa29eh4xNd5yVAJX/YRzPMhxK8tThm7aBCTCjQunYL5jEzR7tud+MKt/KOq7AHSFQ 3ASA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="xZ/Zw7yO"; 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 w26si2755938otl.213.2019.12.19.02.52.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Dec 2019 02:52:31 -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="xZ/Zw7yO"; 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]:38764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihtPy-0002SL-NU for patch@linaro.org; Thu, 19 Dec 2019 05:52:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39800) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihtNP-0006ne-TV for qemu-devel@nongnu.org; Thu, 19 Dec 2019 05:49:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihtNO-0000W6-5I for qemu-devel@nongnu.org; Thu, 19 Dec 2019 05:49:51 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:35197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihtNN-0000Qq-Pl for qemu-devel@nongnu.org; Thu, 19 Dec 2019 05:49:49 -0500 Received: by mail-wm1-x341.google.com with SMTP id p17so5127532wmb.0 for ; Thu, 19 Dec 2019 02:49:49 -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=tQ2NW34S5Zq+7PW6zNueCL2QW+1AX6K9G7g3BN8KIko=; b=xZ/Zw7yO4Lp0lVJbtqEmg3+n5I4PSUdQn7YPjnTPCLRG139mI5qH2ya6oRi1kVzozA Tvxq+aqu5H30z37nmYv8TNlgml7eRLTA+i7T6v5iVLQ2Ko8Mm1mnctrvOZ5doIC8J6jT vXL6OJeB3tN01G9uHW5hHrFn/Wn7izQJK++2QoV5dvmbZ0zjEgX9RaCMOAYWn/zztjuq jwQln6XqmIYE1+tnbRVXvBpy9nDJeV64qx9I/hJaSQ396XY6m8NdACNJzkam/fRnsDW9 6uhfWkHkjKEC+Fal5deegWM3rgqENxUVjdVr/0wxSdWKOl7N/+1gQOdjR/wiAjDAXu/9 5CTw== 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=tQ2NW34S5Zq+7PW6zNueCL2QW+1AX6K9G7g3BN8KIko=; b=iOGZJfy87v+x73ef5IlsM6O+c8SX/qx0JR8J92U5EuZD4ElcJtVjSdwZTDZOVbbGBu BEf4p+5h9qxTUgTQIw05VLVx8Md9z6QSHgVeOxjDDSExQAv0rRXti6DMXnfYCAdqoMEz /66dfAS9exLRD3grqnchfbVsc26xpjnzT4cOl9RozGHgpMRKcN+RIYf34s6hQPPr1cGj h49OOLTlSI6eZ6dnPFbB33Z2LuBtYs2hSXL7q0upn24D0/pB+aiOwe/NuLpoVISvComU jndBGudY56S/Y+KZvpenSEVrBpveJEeh0Kh3cHBpSPd9fWvjCtznGj0zUky2nlIqTEUC ZxSg== X-Gm-Message-State: APjAAAVGiElXBDDntPvnpmurUbU0FkLyrskORXWIq+JMusvdv0Gwf8mV HXNJfGcxax8z0snqyD10GwNX2Q== X-Received: by 2002:a1c:7d93:: with SMTP id y141mr9586505wmc.111.1576752588622; Thu, 19 Dec 2019 02:49:48 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x11sm5790844wmg.46.2019.12.19.02.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:49:42 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5F6BF1FF9A; Thu, 19 Dec 2019 10:49:35 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 10/25] ci: build out-of-tree Date: Thu, 19 Dec 2019 10:49:19 +0000 Message-Id: <20191219104934.866-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219104934.866-1-alex.bennee@linaro.org> References: <20191219104934.866-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 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 , Ed Maste , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Li-Wen Hsu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Most developers are using out-of-tree builds and it was discussed in the past to only allow those. To prepare for the transition, use out-of-tree builds in all continuous integration jobs. Based on a patch by Marc-André Lureau. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Li-Wen Hsu Message-Id: <1576074829-56711-1-git-send-email-pbonzini@redhat.com> -- 2.20.1 diff --git a/configure b/configure index e0c66ee9b68..93625811a05 100755 --- a/configure +++ b/configure @@ -6401,6 +6401,7 @@ else echo "local state directory queried at runtime" echo "Windows SDK $win_sdk" fi +echo "Build directory $(pwd)" echo "Source path $source_path" echo "GIT binary $git" echo "GIT submodules $git_submodules" diff --git a/.cirrus.yml b/.cirrus.yml index 27efc48619b..90645fede6b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -22,7 +22,9 @@ macos_task: install_script: - brew install pkg-config python gnu-sed glib pixman make sdl2 script: - - ./configure --python=/usr/local/bin/python3 || { cat config.log; exit 1; } + - mkdir build + - cd build + - ../configure --python=/usr/local/bin/python3 || { cat config.log; exit 1; } - gmake -j$(sysctl -n hw.ncpu) - gmake check -j$(sysctl -n hw.ncpu) @@ -33,6 +35,8 @@ macos_xcode_task: install_script: - brew install pkg-config gnu-sed glib pixman make sdl2 script: - - ./configure --cc=clang || { cat config.log; exit 1; } + - mkdir build + - cd build + - ../configure --cc=clang || { cat config.log; exit 1; } - gmake -j$(sysctl -n hw.ncpu) - gmake check -j$(sysctl -n hw.ncpu) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e3db1b847cc..ebcef0ebe9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,9 @@ build-system1: script: - apt-get install -y -qq libgtk-3-dev libvte-dev nettle-dev libcacard-dev libusb-dev libvde-dev libspice-protocol-dev libgl1-mesa-dev libvdeplug-dev - - ./configure --enable-werror --target-list="aarch64-softmmu alpha-softmmu + - mkdir build + - cd build + - ../configure --enable-werror --target-list="aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu lm32-softmmu moxie-softmmu microblazeel-softmmu mips64el-softmmu m68k-softmmu ppc-softmmu riscv64-softmmu sparc-softmmu" - make -j2 @@ -16,7 +18,9 @@ build-system2: script: - apt-get install -y -qq libsdl2-dev libgcrypt-dev libbrlapi-dev libaio-dev libfdt-dev liblzo2-dev librdmacm-dev libibverbs-dev libibumad-dev - - ./configure --enable-werror --target-list="tricore-softmmu unicore32-softmmu + - mkdir build + - cd build + - ../configure --enable-werror --target-list="tricore-softmmu unicore32-softmmu microblaze-softmmu mips-softmmu riscv32-softmmu s390x-softmmu sh4-softmmu sparc64-softmmu x86_64-softmmu xtensa-softmmu nios2-softmmu or1k-softmmu" - make -j2 @@ -24,7 +28,9 @@ build-system2: build-disabled: script: - - ./configure --enable-werror --disable-rdma --disable-slirp --disable-curl + - mkdir build + - cd build + - ../configure --enable-werror --disable-rdma --disable-slirp --disable-curl --disable-capstone --disable-live-block-migration --disable-glusterfs --disable-replication --disable-coroutine-pool --disable-smartcard --disable-guest-agent --disable-curses --disable-libxml2 --disable-tpm @@ -37,7 +43,9 @@ build-disabled: build-tcg-disabled: script: - apt-get install -y -qq clang libgtk-3-dev libusb-dev - - ./configure --cc=clang --enable-werror --disable-tcg --audio-drv-list="" + - mkdir build + - cd build + - ../configure --cc=clang --enable-werror --disable-tcg --audio-drv-list="" - make -j2 - make check-unit - make check-qapi-schema @@ -52,7 +60,9 @@ build-tcg-disabled: build-user: script: - - ./configure --enable-werror --disable-system --disable-guest-agent + - mkdir build + - cd build + - ../configure --enable-werror --disable-system --disable-guest-agent --disable-capstone --disable-slirp --disable-fdt - make -j2 - make run-tcg-tests-i386-linux-user run-tcg-tests-x86_64-linux-user @@ -61,7 +71,9 @@ build-clang: script: - apt-get install -y -qq clang libsdl2-dev libattr1-dev libcap-ng-dev xfslibs-dev libiscsi-dev libnfs-dev libseccomp-dev gnutls-dev librbd-dev - - ./configure --cc=clang --cxx=clang++ --enable-werror + - mkdir build + - cd build + - ../configure --cc=clang --cxx=clang++ --enable-werror --target-list="alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu ppc-softmmu s390x-softmmu x86_64-softmmu arm-linux-user" - make -j2 @@ -70,7 +82,9 @@ build-clang: build-tci: script: - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64" - - ./configure --enable-tcg-interpreter + - mkdir build + - cd build + - ../configure --enable-tcg-interpreter --target-list="$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '; done)" - make -j2 - make tests/boot-serial-test tests/cdrom-test tests/pxe-test diff --git a/.shippable.yml b/.shippable.yml index f74a3de3ffd..83aae08bb4c 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -35,5 +35,7 @@ build: options: "-e HOME=/root" ci: - unset CC - - ./configure ${QEMU_CONFIGURE_OPTS} --target-list=${TARGET_LIST} + - mkdir build + - cd build + - ../configure ${QEMU_CONFIGURE_OPTS} --target-list=${TARGET_LIST} - make -j$(($(getconf _NPROCESSORS_ONLN) + 1)) diff --git a/.travis.yml b/.travis.yml index b68566b1fe9..d673ee219e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,8 +73,8 @@ notifications: env: global: - - SRC_DIR="." - - BUILD_DIR="." + - SRC_DIR=".." + - BUILD_DIR="build" - BASE_CONFIG="--disable-docs --disable-tools" - TEST_CMD="make check V=1" # This is broadly a list of "mainline" softmmu targets which have support across the major distros @@ -191,7 +191,8 @@ matrix: - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" compiler: clang before_script: - - ./configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; } + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} + - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; } - env: @@ -323,7 +324,8 @@ matrix: - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user" - TEST_CMD="" before_script: - - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; } + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} + - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; } # Run check-tcg against linux-user @@ -460,5 +462,6 @@ matrix: - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION} - - ./configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } + - mkdir -p release-build && cd release-build + - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } - make install