From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gLq5OD9ZyGKkSwAAbAwnHQ (envelope-from ) for ; Fri, 08 Jul 2022 18:20:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yBSpOD9ZyGIWDQEA9RJhRA (envelope-from ) for ; Fri, 08 Jul 2022 18:20:15 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5FD0C3C6A9 for ; Fri, 8 Jul 2022 18:20:15 +0200 (CEST) Received: from localhost ([::1]:36742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9qiE-0005p3-HJ for larch@yhetil.org; Fri, 08 Jul 2022 12:20:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9qMk-0000n0-DM for guix-patches@gnu.org; Fri, 08 Jul 2022 11:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9qMk-0005Rx-33 for guix-patches@gnu.org; Fri, 08 Jul 2022 11:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9qMj-0001tq-Vv for guix-patches@gnu.org; Fri, 08 Jul 2022 11:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56452] [PATCH 0/5] Fix and update LLVM and clang-toolchain. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Jul 2022 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56452 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56452@debbugs.gnu.org Cc: Greg Hogan X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16572958677266 (code B ref -1); Fri, 08 Jul 2022 15:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2022 15:57:47 +0000 Received: from localhost ([127.0.0.1]:33042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9qMV-0001t8-1K for submit@debbugs.gnu.org; Fri, 08 Jul 2022 11:57:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:46588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9qMS-0001t0-Q6 for submit@debbugs.gnu.org; Fri, 08 Jul 2022 11:57:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9qMS-0008VZ-Dm for guix-patches@gnu.org; Fri, 08 Jul 2022 11:57:44 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:36404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9qMP-0005Qf-Vx for guix-patches@gnu.org; Fri, 08 Jul 2022 11:57:44 -0400 Received: by mail-qt1-x82f.google.com with SMTP id k14so27968813qtm.3 for ; Fri, 08 Jul 2022 08:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9rTlN1D+TWHS29khlP4ULKXCEiGwFQGI3k/6+OpDTlo=; b=wdUKu33gwO3FVYk6mZBMzS/aA1LhWGAKuFB6wTf9pX3BRXp3GFO78epLufl5G2F8SJ 8ZiQPqRPHSfUJ8qP/CHbe0wzmgpDnVwZjo4pGu33mmoJqQu0vjiB/I7hhL3bevRTKOqU ZggapseQAcgw0PLPFEiGuf43jAHkihAvwpHA09LLwUxJSMn4btYeNW1UR/dPc0WGTLIv ixdmK77dKl9/EH7DKnfvqggXycq3Oa90kQS7D9ZQDXmv5GtZrHm/KP4S+6++SRF/4CKe SYwyLtH/h+Fn1Hg8FVJavjaYOgAiwN/b5HZQJTSm+wK4GgaM1bZ5o8IuO1ENslLC2XmD stzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9rTlN1D+TWHS29khlP4ULKXCEiGwFQGI3k/6+OpDTlo=; b=Qlen5gBPcMD733HGjlaY7+RctRl5Jb1zJOXz20uwC8zk49b/rkR3z6psjfwyH/on++ tbfR2t3hDz09cElfkL6ezqGD9ij0tlWfh9oj6Jq4Mq6hyU5VAdJpxNaKLapdHe3h7Vm8 LkI5HLkv2QOksehwWmgbCgHSzVi8rjfJSav4k2uR5IRhJ6O0PXrIPFGlg4QH+VwOSqbi j7uucDyCHoa0EciEYTi02YwKpg/Q5ds5IIgu54julLnyA6lL4gScGbgqqQb6vzlnMbp4 Uy3PrJ8B90GJ1oA8qYlEvDcaOTDVpvYFEBmXIluNIZQEh/bkFrB0spxKvM5l/PdY7GoT 7KOg== X-Gm-Message-State: AJIora9cPMAy8VQD8V6Myq+W6xDFxI0nPyEd0sP+y9ct+wrEakZNlssx Dg6HN1wV195uA5G1l4WE4mVatg7bcDd8i1TK X-Google-Smtp-Source: AGRyM1tuALuGSBbe+knXU7zbcOm61LoX0ZWQuemPxRC1kb0ZwJjLuY6IDgTO/JtvuMPtg/2N1rotjA== X-Received: by 2002:a05:6214:1c88:b0:472:a7e2:bef4 with SMTP id ib8-20020a0562141c8800b00472a7e2bef4mr3367450qvb.32.1657295859763; Fri, 08 Jul 2022 08:57:39 -0700 (PDT) Received: from ip-10-114-89-251.evoforge.org (ec2-52-70-167-183.compute-1.amazonaws.com. [52.70.167.183]) by smtp.gmail.com with ESMTPSA id a21-20020a05620a16d500b006a7502d0070sm32572815qkn.21.2022.07.08.08.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 08:57:38 -0700 (PDT) From: Greg Hogan Date: Fri, 8 Jul 2022 15:57:30 +0000 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2607:f8b0:4864:20::82f; envelope-from=code@greghogan.com; helo=mail-qt1-x82f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657297215; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9rTlN1D+TWHS29khlP4ULKXCEiGwFQGI3k/6+OpDTlo=; b=c4Phm080bDbiW5vWgjRu65MtVu5y/jKoTFqHAa7Wq50WWAakdShoWa7lyElbn9kSWx+OxR 4XOGBCvo58NdEsrzvN1u7IYI82c5UW5kbDp9Lb1xU+c0Qb0OYff232rkBi8I5v78y9dksp oXCORqNQf7xp3SL+hn9M+e7mkmKOjCH6NHLdDy8+UrtWOTi6onL+g6uPAf8HQ09L3+m9UP rehSWrQHOQxomi/+ukuFZRPA/DXwxa3paVKRiVBt/pCIgOoDhIE9EapML3MwIcUO4THeKw cpjyuKiugTUpPEUlzBs94KejLYftYdtikh/QKms95676XnJILwocix13/X8saw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657297215; a=rsa-sha256; cv=none; b=na3tjzcHow2+3sJsh97O2piRFi2HfClF9pN5u6xKCW26mMo+DQ74c+EN9b10FLSocUXc0/ sHKpvSnGOkIGCLZUKyQjuiJpZ4NvNEp3G3omq9eL/7d3TqlvoxW5Plg0O/kygzLL7OPfzx wpP2vEH0bmKoB6fJRYO7Y/wXe7QnYxZWrHFOyNNe8SHTs2x+R4d9iFf6V+szs2DOVTk0JG tEj+2e64oRYGyFiUdA/99af9FwikfEm5Xp/6Zm6sEHqFuPPdg97iU84UKZcDWt/SA4JcsD 9cqwZ++bwDbkgE4ofR/qgi3IiOjOKEjXf6OHVeInZMK10M56cfrrn13qElbI8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=wdUKu33g; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=wdUKu33g; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5FD0C3C6A9 X-Spam-Score: 1.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: SiX7d14ALKbH This patchset updates and fixes the builds of llvm-3.7, llvm-3.8, and llvm-8 and also updates llvm-14. The only failing depedent package is beignet, which has failed to build since last year's replacement of ocl-icd with opencl-icd-loader. beignet has no dependents and was last updated in 2017. By building clang-toolchain with a libomp built with the same version of llvm we remove the additional copy of llvm and reduce the size of the closure from 1330.9 MB to 1156 MB. If this is accepted I would look to submit a follow-on patchset adding libomp varients for clang-toolchain-12 and earlier. $ guix size clang-toolchain@14 | grep 'clang\|llvm\|libomp' /gnu/store/rhs2ws9xqx5ln44ix2kvjmmjv3jg5aw1-clang-14.0.5 886.1 215.6 16.2% /gnu/store/pkcw25plv6310pmmm7yi276fzzpnl6zq-llvm-14.0.5 257.2 185.2 13.9% /gnu/store/579xrf7vz85ynjlk62njaczgnayam1ar-llvm-13.0.1 247.1 175.0 13.2% /gnu/store/p0spbhzkk7wa3phiyk126n1kkfdsnmw9-clang-runtime-14.0.5 227.9 31.6 2.4% /gnu/store/js2yvkq2ki2zbl166g2mfa53qlrilxhn-libomp-13.0.1 253.9 1.8 0.1% /gnu/store/ahr3mcg1l1nml67x4i1znws25ph84bb2-clang-toolchain-14.0.5 1330.9 0.3 0.0% $ ./pre-inst-env guix size clang-toolchain@14 | grep 'clang\|llvm\|libomp' /gnu/store/hcypy6mb3v19a58hvaf265283jgd37mm-clang-14.0.6 886.1 215.6 18.6% /gnu/store/0ip696hw07p8rmwyqks0slm642mhdzfh-llvm-14.0.6 257.2 185.2 16.0% /gnu/store/bckl8q1wra5k0cgwfiyb2syay556gwjr-clang-runtime-14.0.6 227.9 31.6 2.7% /gnu/store/rpk14gkhav3mrcf5wppyc77yd2jh5syi-libomp-14.0.6 264.2 1.9 0.2% /gnu/store/bynhq99qdd71n1v4y52x533bxghz6i1x-clang-toolchain-14.0.6 1156.0 0.3 0.0% Greg Hogan (5): gnu: llvm-8: Fix build with gcc-10. gnu: llvm-3.7, llvm-3.8: Fix build with gcc. gnu: faust-2: Update to 2.41.1. gnu: LLVM, Clang, LLD: Update to 14.0.6. gnu: clang-toolchain-14: Build with libomp-14. gnu/local.mk | 3 + gnu/packages/audio.scm | 8 +- gnu/packages/llvm.scm | 134 +++++++++++------- ...g-runtime-3.7-fix-build-with-python3.patch | 16 +++ .../llvm-3.x.1-fix-build-with-gcc.patch | 15 ++ .../llvm-8-fix-build-with-gcc-10.patch | 34 +++++ 6 files changed, 155 insertions(+), 55 deletions(-) create mode 100644 gnu/packages/patches/clang-runtime-3.7-fix-build-with-python3.patch create mode 100644 gnu/packages/patches/llvm-3.x.1-fix-build-with-gcc.patch create mode 100644 gnu/packages/patches/llvm-8-fix-build-with-gcc-10.patch -- 2.36.1