From nobody Mon Feb 9 23:40:04 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1576494931; cv=none; d=zohomail.com; s=zohoarc; b=RRw/wxbiewLNzIej09Mib4DmRPmnas0hEbAC7aQuwMikV/yHs0dICETH6a8IBTT/ud7T1ry3F2DKguJ70JyU/N/A/E3moKPZtEGPztnzNFyApjzyGzQ85EbC/v0kPOtJ1p8Iey+HLOCE6q7JsRKXqfeYOl2L3CXJi2rCbx+Knm0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576494931; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9yMCQ/8GCozBRJfUfLYPo4E6o3Yad5CZJ3xtHqZYMRg=; b=TFKBABV53CMPeJ1TxI2ub2uqtlmBLxpevldOVmyxLySuaCpLlPIL3kMvdGhsgpDLiviKyLUTl2TRae5EvNPt2WmanZIZ6Fb8PHyBHZWmjK6KVR2YeeJECDYURbCx3umi9ATMjzcTxpTBntvgLF1KERy46JGTI0NB1gDCAyYQF8g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576494931935802.3251133537483; Mon, 16 Dec 2019 03:15:31 -0800 (PST) Received: from localhost ([::1]:51384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igoLa-0006EG-7s for importer@patchew.org; Mon, 16 Dec 2019 06:15:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50134) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igoEA-0005Qj-SL for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:07:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igoE9-0003n1-83 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:07:50 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:34566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igoE9-0003m7-1A for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:07:49 -0500 Received: by mail-wr1-x443.google.com with SMTP id t2so6741600wrr.1 for ; Mon, 16 Dec 2019 03:07:48 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id d16sm22944754wrg.27.2019.12.16.03.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 03:07:43 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1614D1FF9A; Mon, 16 Dec 2019 11:07:33 +0000 (GMT) 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=9yMCQ/8GCozBRJfUfLYPo4E6o3Yad5CZJ3xtHqZYMRg=; b=ekLCrxVw2ZL0Z00BFCl/S/barCPVFwo/gRcMTLjmoOoSin5hljJTBRcc3IUzTTojyD DKfq/q4RPKrGkWFWK/hj+m9YykFRwG2NVn8qBe6UA/ZOdRhFhBPMwlJf4wHWG338IX96 4cBsozV01XzF2RJLwAAfJ84qdr38qQHD8/CXMlPDPHk8TpDxU4qFFbu/kjWLQbXo6YO2 NDDbmVta5FKYbxqnYIAQ2qvUee+Mo6v0y2TrUkYfTATWEzhaGkrz8trG48/d7XoLydE7 Crltj5kZf7EQTjvMj0BBn4HR1p9eMrdsg/9Rad7SzCtEbECQKwd4qOgbpn5B9XKbpGBn 036A== 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=9yMCQ/8GCozBRJfUfLYPo4E6o3Yad5CZJ3xtHqZYMRg=; b=ICVo5CHTCeAj3McZAkHhrz17o5P+KKzIda7HuuQlxz1RFwZnYoat2TNol8XcZNHb3F leUuMCyQ2uPPw8+cFUcl+7NN0Xq8QEuYKaD7Sq5DVPbocRfAOdq3cm4gFOl/phx7PEmK O1zlmXmwp9TTNvMFSNcV4JmBUddVajNHXRTaeBRPeLoopibM0QoyHscWjx+RCrEQ82dJ Q9iVR3Ld8kNZ6zc6lqsyv6NiRcmCDEIMAkqfo2EKXjI/9BxgDOb1pO86QrxzCh7kejXY QiC8/Y1QnZqqEsznEDYF3ahSttNy/V0+YisgOAVJwUq/WkttDUY+PG9xzIeW0hYSHHu4 F1wg== X-Gm-Message-State: APjAAAVMZWlbN3nhIDK3pFxcM+utQqW2QzWCIiKWDRyjWAMsnnPe80h8 C37uELyJzp0QP0w9G/gui5hRvQ== X-Google-Smtp-Source: APXvYqxmaZ4l1kUpefojAOOGr+bl5Yys1JmAmrhtQtFTExkNxlBl/IpYbEt9TzloussICgkULgwMFw== X-Received: by 2002:a5d:620b:: with SMTP id y11mr28840557wru.230.1576494467912; Mon, 16 Dec 2019 03:07:47 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 10/16] ci: build out-of-tree Date: Mon, 16 Dec 2019 11:07:26 +0000 Message-Id: <20191216110732.24027-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191216110732.24027-1-alex.bennee@linaro.org> References: <20191216110732.24027-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 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@euphon.net, Thomas Huth , berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Ed Maste , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, Li-Wen Hsu , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Paolo Bonzini Most developers are using out-of-tree builds and it was discussed in the pa= st 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=C3=A9 Lureau. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Benn=C3=A9e Message-Id: <1576074829-56711-1-git-send-email-pbonzini@redhat.com> Reviewed-by: Li-Wen Hsu --- configure | 1 + .cirrus.yml | 8 ++++++-- .gitlab-ci.yml | 28 +++++++++++++++++++++------- .shippable.yml | 4 +++- .travis.yml | 13 ++++++++----- 5 files changed, 39 insertions(+), 15 deletions(-) diff --git a/configure b/configure index 419e1554978..49dd65611db 100755 --- a/configure +++ b/configure @@ -6427,6 +6427,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=3D/usr/local/bin/python3 || { cat config.log; e= xit 1; } + - mkdir build + - cd build + - ../configure --python=3D/usr/local/bin/python3 || { cat config.log; = exit 1; } - gmake -j$(sysctl -n hw.ncpu) - gmake check -j$(sysctl -n hw.ncpu) =20 @@ -33,6 +35,8 @@ macos_xcode_task: install_script: - brew install pkg-config gnu-sed glib pixman make sdl2 script: - - ./configure --cc=3Dclang || { cat config.log; exit 1; } + - mkdir build + - cd build + - ../configure --cc=3Dclang || { 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 62a96097983..9707902e12a 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 libvdepl= ug-dev - - ./configure --enable-werror --target-list=3D"aarch64-softmmu alpha-soft= mmu + - mkdir build + - cd build + - ../configure --enable-werror --target-list=3D"aarch64-softmmu alpha-sof= tmmu cris-softmmu hppa-softmmu lm32-softmmu moxie-softmmu microblazeel-so= ftmmu mips64el-softmmu m68k-softmmu ppc-softmmu riscv64-softmmu sparc-soft= mmu" - make -j2 @@ -16,7 +18,9 @@ build-system2: script: - apt-get install -y -qq libsdl2-dev libgcrypt-dev libbrlapi-dev libaio-d= ev libfdt-dev liblzo2-dev librdmacm-dev libibverbs-dev libibumad-dev - - ./configure --enable-werror --target-list=3D"tricore-softmmu unicore32-= softmmu + - mkdir build + - cd build + - ../configure --enable-werror --target-list=3D"tricore-softmmu unicore32= -softmmu microblaze-softmmu mips-softmmu riscv32-softmmu s390x-softmmu sh4-so= ftmmu sparc64-softmmu x86_64-softmmu xtensa-softmmu nios2-softmmu or1k-sof= tmmu" - make -j2 @@ -24,7 +28,9 @@ build-system2: =20 build-disabled: script: - - ./configure --enable-werror --disable-rdma --disable-slirp --disable-cu= rl + - mkdir build + - cd build + - ../configure --enable-werror --disable-rdma --disable-slirp --disable-c= url --disable-capstone --disable-live-block-migration --disable-glusterfs --disable-replication --disable-coroutine-pool --disable-smartcard --disable-guest-agent --disable-curses --disable-libxml2 --disable-t= pm @@ -37,7 +43,9 @@ build-disabled: build-tcg-disabled: script: - apt-get install -y -qq clang libgtk-3-dev libbluetooth-dev libusb-dev - - ./configure --cc=3Dclang --enable-werror --disable-tcg --audio-drv-list= =3D"" + - mkdir build + - cd build + - ../configure --cc=3Dclang --enable-werror --disable-tcg --audio-drv-lis= t=3D"" - make -j2 - make check-unit - make check-qapi-schema @@ -52,7 +60,9 @@ build-tcg-disabled: =20 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=3Dclang --cxx=3Dclang++ --enable-werror + - mkdir build + - cd build + - ../configure --cc=3Dclang --cxx=3Dclang++ --enable-werror --target-list=3D"alpha-softmmu arm-softmmu m68k-softmmu mips64-softm= mu ppc-softmmu s390x-softmmu x86_64-softmmu arm-linux-us= er" - make -j2 @@ -70,7 +82,9 @@ build-clang: build-tci: script: - TARGETS=3D"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=3D"$(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=3D/root" ci: - unset CC - - ./configure ${QEMU_CONFIGURE_OPTS} --target-list=3D${TARGET_LIST} + - mkdir build + - cd build + - ../configure ${QEMU_CONFIGURE_OPTS} --target-list=3D${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: =20 env: global: - - SRC_DIR=3D"." - - BUILD_DIR=3D"." + - SRC_DIR=3D".." + - BUILD_DIR=3D"build" - BASE_CONFIG=3D"--disable-docs --disable-tools" - TEST_CMD=3D"make check V=3D1" # This is broadly a list of "mainline" softmmu targets which have supp= ort across the major distros @@ -191,7 +191,8 @@ matrix: - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-clang-sanitize" compiler: clang before_script: - - ./configure ${CONFIG} --extra-cflags=3D"-fsanitize=3Dundefined -= Werror" || { cat config.log && exit 1; } + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} + - ${SRC_DIR}/configure ${CONFIG} --extra-cflags=3D"-fsanitize=3Dun= defined -Werror" || { cat config.log && exit 1; } =20 =20 - env: @@ -323,7 +324,8 @@ matrix: - CONFIG=3D"--cc=3Dgcc-9 --cxx=3Dg++-9 --disable-pie --disable-lin= ux-user" - TEST_CMD=3D"" before_script: - - ./configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -Wno-error=3Dstr= ingop-truncation -fsanitize=3Dthread -fuse-ld=3Dgold" || { cat config.log &= & exit 1; } + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} + - ${SRC_DIR}/configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -Wno-er= ror=3Dstringop-truncation -fsanitize=3Dthread -fuse-ld=3Dgold" || { cat con= fig.log && exit 1; } =20 =20 # 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-${QEM= U_VERSION} - - ./configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit= 1; } + - mkdir -p release-build && cd release-build + - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exi= t 1; } - make install --=20 2.20.1