From nobody Thu Apr 25 00:30:12 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1560184449; cv=none; d=zoho.com; s=zohoarc; b=BsCbEhjU7QQqjsexhUfi2Wd+VJtJeSzPSf3+VdIr1rFaiQ5xckbL1gnJrNr6DutLUbMKs3+EYvbUCg4NnRcl4GoUOcztx4rr1oeEMu+M/QFR0bk9DsfaAiwknqmgmEE2Doku+vxdDPcd47rjv66er6ULEAW4+sbcs6NiLoLIkNA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560184449; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=BP7Rm1QKPOtJ/mf1Bvseo/NVhvQL87/OTnbIHPfxtYY=; b=HJhaZ2N6rIkWkF88g/zTvjbRLlMGKLQ+Pd40KoLrrDZWI2uL9o/HXzT/IyOAoAG/dm+Yol5WtOZFMlYhVLSzXOH5X4U5P8O/zAQUWZWVnbuL9rIdmR2mawq3bdYta6j/8g6uNolVXRvI4S/1mberD49+/CJOuVnYEJLmoWy842A= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1560184449772268.2564624669892; Mon, 10 Jun 2019 09:34:09 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1haNEF-0001IE-77; Mon, 10 Jun 2019 16:33:03 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1haNED-0001I8-R7 for xen-devel@lists.xenproject.org; Mon, 10 Jun 2019 16:33:01 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 67f6fd80-8b9d-11e9-b02f-b78763bfd5bd; Mon, 10 Jun 2019 16:32:58 +0000 (UTC) X-Inumbo-ID: 67f6fd80-8b9d-11e9-b02f-b78763bfd5bd Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 68lw0he6edNeECoNSmsooe8+Bac0md/c14QT+DqFE4SYvmkc5a9seF9Od4EdycmTdjC65aoQ64 hqnOEeHBL1ix5kJ0cqD7PWdqvY7HBf3SuFabPqB7msDjbrYlYG8cT6LRgzRvsv25xvWiU/qeeT PJ2ddzodM0GpTrcXEDssnfooLYDsWJmpsoljkcVTb4BNZbfY2HiaCkCaVN163xu6ZWh2qCbx7W irTh9HEo2EEkpblGRs2qtYnirp+ua7RsQALCxyai/E1n18pd1Sz0XBlM27Od8ymapuA/I5G2vb sGo= X-SBRS: 2.7 X-MesageID: 1540245 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,575,1557201600"; d="scan'208";a="1540245" From: Roger Pau Monne To: Date: Mon, 10 Jun 2019 18:32:46 +0200 Message-ID: <20190610163246.90567-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v4] automation: add clang and lld 8 tests to gitlab X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Doug Goldstein , Wei Liu , Roger Pau Monne Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Using clang and lld 8 requires installing the packages from the official llvm apt repositories, so modify the Debian Docker files for stretch and unstable to add the llvm repo and install clang and lld from it. Also add some jobs to test building Xen with clang 8 and lld. Signed-off-by: Roger Pau Monn=C3=A9 Acked-by: Andrew Cooper Acked-by: Doug Goldstein --- I've tested this manually by doing: # make -C automation/build debian/stretch # CONTAINER_NO_PULL=3D1 ./automation/scripts/containerize << END ./configure --with-system-seabios=3D/usr/share/seabios/bios.bin \ --with-system-ipxe=3D/usr/lib/ipxe/ipxe.pxe --disable-stubdom make -j8 dist CC=3Dclang-8 CXX=3Dclang++-8 LD=3Dld.lld-8 clang=3Dy END --- Cc: Doug Goldstein Cc: Wei Liu --- Changes since v3: - Add a -8 prefix to the llvm apt repo file. - Add spaces around apt-key add pipe. Changes since v2: - Change the order of actions in the dockerfile. - Cleanup after installing llvm tools. Changes since v1: - Use ld.lld-8 instead of lld-8, as that's the recommended way reported by lld-8. --- automation/build/debian/stretch-llvm-8.list | 3 ++ automation/build/debian/stretch.dockerfile | 13 +++++++ automation/build/debian/unstable-llvm-8.list | 3 ++ automation/build/debian/unstable.dockerfile | 13 +++++++ automation/gitlab-ci/build.yaml | 37 ++++++++++++++++++++ automation/scripts/build | 2 +- 6 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 automation/build/debian/stretch-llvm-8.list create mode 100644 automation/build/debian/unstable-llvm-8.list diff --git a/automation/build/debian/stretch-llvm-8.list b/automation/build= /debian/stretch-llvm-8.list new file mode 100644 index 0000000000..09fe843fb2 --- /dev/null +++ b/automation/build/debian/stretch-llvm-8.list @@ -0,0 +1,3 @@ +# Strech LLVM 8 repos +deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main +deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main diff --git a/automation/build/debian/stretch.dockerfile b/automation/build/= debian/stretch.dockerfile index daf8c9d384..44e6eee07f 100644 --- a/automation/build/debian/stretch.dockerfile +++ b/automation/build/debian/stretch.dockerfile @@ -42,6 +42,19 @@ RUN apt-get update && \ wget \ git \ nasm \ + gnupg \ + && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/* + +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +COPY stretch-llvm-8.list /etc/apt/sources.list.d/ + +RUN apt-get update && \ + apt-get --quiet --yes install \ + clang-8 \ + lld-8 \ && \ apt-get autoremove -y && \ apt-get clean && \ diff --git a/automation/build/debian/unstable-llvm-8.list b/automation/buil= d/debian/unstable-llvm-8.list new file mode 100644 index 0000000000..dc119fa0b4 --- /dev/null +++ b/automation/build/debian/unstable-llvm-8.list @@ -0,0 +1,3 @@ +# Unstable LLVM 8 repos +deb http://apt.llvm.org/unstable/ llvm-toolchain-8 main +deb-src http://apt.llvm.org/unstable/ llvm-toolchain-8 main diff --git a/automation/build/debian/unstable.dockerfile b/automation/build= /debian/unstable.dockerfile index 7762cf97ab..a1428a3df0 100644 --- a/automation/build/debian/unstable.dockerfile +++ b/automation/build/debian/unstable.dockerfile @@ -42,6 +42,19 @@ RUN apt-get update && \ wget \ git \ nasm \ + gnupg \ + && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/* + +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - +COPY unstable-llvm-8.list /etc/apt/sources.list.d/ + +RUN apt-get update && \ + apt-get --quiet --yes install \ + clang-8 \ + lld-8 \ && \ apt-get autoremove -y && \ apt-get clean && \ diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.y= aml index dd5722a5bb..17de3b1848 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -26,6 +26,13 @@ CXX: clang++ clang: y =20 +.clang-8-tmpl: + variables: &clang-8 + CC: clang-8 + CXX: clang++-8 + LD: ld.lld-8 + clang: y + .x86-64-build-tmpl: <<: *build variables: @@ -90,6 +97,16 @@ variables: <<: *clang =20 +.clang-8-x86-64-build: + extends: .x86-64-build + variables: + <<: *clang-8 + +.clang-8-x86-64-build-debug: + extends: .x86-64-build-debug + variables: + <<: *clang-8 + .clang-x86-32-build: extends: .x86-32-build variables: @@ -219,6 +236,16 @@ debian-stretch-clang-debug: variables: CONTAINER: debian:stretch =20 +debian-stretch-clang-8: + extends: .clang-8-x86-64-build + variables: + CONTAINER: debian:stretch + +debian-stretch-clang-8-debug: + extends: .clang-8-x86-64-build-debug + variables: + CONTAINER: debian:stretch + debian-stretch-gcc: extends: .gcc-x86-64-build variables: @@ -259,6 +286,16 @@ debian-unstable-clang-debug: variables: CONTAINER: debian:unstable =20 +debian-unstable-clang-8: + extends: .clang-8-x86-64-build + variables: + CONTAINER: debian:unstable + +debian-unstable-clang-8-debug: + extends: .clang-8-x86-64-build-debug + variables: + CONTAINER: debian:unstable + debian-unstable-gcc: extends: .gcc-x86-64-build variables: diff --git a/automation/scripts/build b/automation/scripts/build index 8a57e097a9..83c44e6ce7 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -19,7 +19,7 @@ fi cfgargs=3D() cfgargs+=3D("--enable-docs") =20 -if [[ "${CC}" =3D=3D "clang" ]]; then +if [[ "${CC}" =3D=3D "clang"* ]]; then # SeaBIOS cannot be built with clang cfgargs+=3D("--with-system-seabios=3D/usr/share/seabios/bios.bin") # iPXE cannot be built with clang --=20 2.20.1 (Apple Git-117) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel