From nobody Wed May 1 11:27:47 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576075173; cv=none; d=zohomail.com; s=zohoarc; b=WXhgjeaumkBRw5U2CXtB5TV3tnaeamr95mhMSsIyY5ENbKaIMVOPaxjPGRALtuUT10s1jDeg/L/9WsQ2Y1k5ErI9EXMqzNjdL33yCKr7hK8kBowoc9soMBIYMKEmZOYnL3n/lrosjTwq2X4Fm9nLwN8+A2HnVS2SYCcCx2QpgCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576075173; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=sOXmfdkp6uqWjdrg0TuZzWd3wRDxzC7eIg66A07rdZg=; b=ZK9rt2OjDWxxc1ujjkxuoSpB4bgEtW1TjydgLFw/vQgtjyfXITVOqNPgIXfE6q6Z1sSq0SyBXfmxj8jMRpoMmau1egqyEA8mvhZF4TfoIu85ijutz2FMs4VA64krKGlksArFwJ66DCkwNgP7lHPsWmjrNksIBpEwGPwcAJNEz7M= 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 15760751736290.053020295362784964; Wed, 11 Dec 2019 06:39:33 -0800 (PST) Received: from localhost ([::1]:43382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if39D-0004b3-PR for importer@patchew.org; Wed, 11 Dec 2019 09:39:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if30B-0003zf-3o for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if308-0003Vs-Ht for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:30:06 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:38408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1if308-0003U9-AS for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:30:04 -0500 Received: by mail-wr1-x442.google.com with SMTP id y17so24280430wrh.5 for ; Wed, 11 Dec 2019 06:30:04 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id n8sm2475408wrx.42.2019.12.11.06.30.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2019 06:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sOXmfdkp6uqWjdrg0TuZzWd3wRDxzC7eIg66A07rdZg=; b=ihsMmgzjNZTCnAFxkE140PQmT+pRGNZBqKmRiZfufovQp5NvSpl+xvCeN1nSpd7nix JSn07LDiKEZcMnB2oyPO9Z/3Lt/cZYUzsgVAHpeFhamoU6l4EmgEJAx6v+5jHygSXOMm UNeLz/624koOTE3XMZXL+PfLZMiU1SflffUYDAzjYCZe8Vqzjnel4BhgYgZYXSIDsQOq i6xWkkN+JWeOX805N7xoBccjX+mxzkF/crtmEy612n/y4k99rJp7thPub+pzf5vR58ds VQiIRjoTeYVp5efYUHRdRgjkPAf8GgAEnV436vTd36OSRjGi751wext30EUT22cRJ79O hi+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=sOXmfdkp6uqWjdrg0TuZzWd3wRDxzC7eIg66A07rdZg=; b=FdT/QcGHM+zN0yKAp7WRLzjHDu05K7Q6dIARMLYUe4nkSfC5DAAgKC9IzvbJ7TWUmS zI+KGgabByoFRlvoZNdu+jt+HvFv5B1VFhPAF1ktrjdOLVwWvByCq0kQQ94wF3VqageF 0qaK035YzxFkrftW8jIVSYcn3sr9WX9OnUaDII2GRmwlqZ0sbwoNkazz2jZNyk465bcl BZEX1AYGE72EUFXhHJuHyDFBm+z1X9jKGw6Ez81tSZNWg98WDN1e9jCCmwa9Ljs2sJyh bwXb8IIevT18KAkSH6vC/lGcvwsje47NSRAWgxIoemIdTLn2Lh7NkZcQwtszA0d8EmKY P19w== X-Gm-Message-State: APjAAAUxsEsJwjY92S3D06iSLEwNfZq4R3QxEYen4q/vrbwUROTMjPsz oirIYZv9D2Miqle7hj/7htWGMeV6 X-Google-Smtp-Source: APXvYqzRYEqkwk8E0UZzJySziPci5d2R/yvWBFeCvP44TqlxDyd+1Lm9sxYijvfdM7/lX1wNevlO3A== X-Received: by 2002:adf:cf0a:: with SMTP id o10mr27891wrj.325.1576074602386; Wed, 11 Dec 2019 06:30:02 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] ci: build out-of-tree Date: Wed, 11 Dec 2019 15:30:00 +0100 Message-Id: <1576074600-54759-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 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::442 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: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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 --- .cirrus.yml | 8 ++++++-- .gitlab-ci.yml | 28 +++++++++++++++++++++------- .shippable.yml | 4 +++- .travis.yml | 7 +++++-- configure | 1 + 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 27efc48..90645fe 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 be57c6a..f771b40 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-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 f74a3de..83aae08 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 445b064..d259b51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,8 +74,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 @@ -192,7 +192,9 @@ matrix: - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-clang-sanitize" compiler: clang before_script: + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - ./configure ${CONFIG} --extra-cflags=3D"-fsanitize=3Dundefined -= Werror" || { cat config.log && exit 1; } + - ${SRC_DIR}/configure ${CONFIG} --extra-cflags=3D"-fsanitize=3Dun= defined -Werror" --extra-ldflags=3D"-fsanitize=3Dundefined" || { cat config= .log && exit 1; } =20 =20 - env: @@ -323,6 +325,7 @@ matrix: - CONFIG=3D"--cc=3Dgcc-9 --cxx=3Dg++-9 --disable-pie --disable-lin= ux-user" - TEST_CMD=3D"" before_script: + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - ./configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -Wno-error=3Dstr= ingop-truncation -fsanitize=3Dthread -fuse-ld=3Dgold" || { cat config.log &= & exit 1; } =20 =20 diff --git a/configure b/configure index 7a1bc47..19b209a 100755 --- a/configure +++ b/configure @@ -6441,6 +6441,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" --=20 1.8.3.1