From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wCiMOuBCWmNldAEAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 10:35:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UKQ1OuBCWmPE4gAAauVa8A (envelope-from ) for ; Thu, 27 Oct 2022 10:35:44 +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 7F07527B37 for ; Thu, 27 Oct 2022 10:35:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onyMB-0004cf-GT; Thu, 27 Oct 2022 04:35:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onyLw-0003rg-MB for guix-patches@gnu.org; Thu, 27 Oct 2022 04:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onyLw-0006t7-8D for guix-patches@gnu.org; Thu, 27 Oct 2022 04:35:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onyLv-0001M9-VI for guix-patches@gnu.org; Thu, 27 Oct 2022 04:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58394] [PATCH 2/4] gnu: libcxx: Update to 14.0.6. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Oct 2022 08:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 58394@debbugs.gnu.org, Zhu Zihao Received: via spool by 58394-submit@debbugs.gnu.org id=B58394.16668596795153 (code B ref 58394); Thu, 27 Oct 2022 08:35:03 +0000 Received: (at 58394) by debbugs.gnu.org; 27 Oct 2022 08:34:39 +0000 Received: from localhost ([127.0.0.1]:56123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onyLW-0001Kx-DE for submit@debbugs.gnu.org; Thu, 27 Oct 2022 04:34:38 -0400 Received: from mail-m972.mail.163.com ([123.126.97.2]:42137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onyLH-0001Jq-5s for 58394@debbugs.gnu.org; Thu, 27 Oct 2022 04:34:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=DBDOA NZoznce+lFQEPzSgi8BF/66G6ce4lq7DtEsM34=; b=leTjRMvRBi4FERjNQV91G eN04OJFNCeiLmcxA4iZ2GAonroOw1ri/c99u394BiYIidkfgHWQjSBH8USGmcRUa dqfWGF7yhjakzo1QFp6K3sh7eyV9+wjyY0R2pu8p6x2GvmcDEr8a4VvapxZp7jGQ dH9mmYfbiPnndhGc8/g6qU= Received: from localhost.localdomain (unknown [27.38.249.197]) by smtp2 (Coremail) with SMTP id GtxpCgDHxcOEQlpjQY5hpA--.34500S3; Thu, 27 Oct 2022 16:34:13 +0800 (CST) From: Zhu Zihao Date: Thu, 27 Oct 2022 16:33:28 +0800 Message-Id: <20221027083330.960-2-all_but_last@163.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <87eduy4yhv.fsf@gnu.org> References: <87eduy4yhv.fsf@gnu.org> <20221027083330.960-1-all_but_last@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: GtxpCgDHxcOEQlpjQY5hpA--.34500S3 X-Coremail-Antispam: 1Uf129KBjvJXoWxXFWxuFy5Jr1Dur1Utw17Awb_yoWrXFW3pF WfWF4Fgr9YkryfGan3uF4xur1FqFWfAFn7X3yfA3WxKa1jyr18trWxKFWfKFnrXr4vyw4x uw4xJrWrXry5JFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JU238bUUUUU= X-Originating-IP: [27.38.249.197] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiFB6nr1aEAZ4x0wADsu 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666859744; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DBDOANZoznce+lFQEPzSgi8BF/66G6ce4lq7DtEsM34=; b=RlLw8SuwNNtV88KLS4SAPHWL3DGO0+kkPuEQ2MhX/rxr87Z5kP5KVzQrZqUEv8Qooi+xA3 +zAqWQe9o54z+Bv27q5aGH2Te1F7kL0U6XzBYtA06bqHGXEdx0s2+ToJUv2oWVEOUJ/SnH GezBrz5D41OCIKUBsVTKhamHmlrlkKFqG8X+B5byoN1w80OoO+dBHPjTs8ydEUZQPyuS5r dKMxyUgItJG1nJhOzGIyd8i8iUnHQeV60+Vx5hERMb9nxbuxp9B9yi2dZ2VIAeG4Wj8Xlj VRC/nexXv8N6bKQmL505U7KPuXW4pNqaFTHWVEFdEcFfA4YGKLwgQp48DkKnEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666859744; a=rsa-sha256; cv=none; b=gwX5Hxv0YlPGeXHfjbItKVU2Rcc1mQObUhuoWyW7PDmXbAU5NGtPqE3wS/s0j/CwepNiFE rG+DYvT6peQJv7ZfYLMI2fZVs+A7wbZ7mVwGbSdeXz5M+b5AeNMncQ6+l+HmWKhDj2dLNJ hBJSReirsS5WOVIzajE+MxHHCYkhkdXWKmQF0dLzGT6wn8J6HzWbJBzdh3uBcDkX1r/s1l AksQDlD21SO4mhpnRDhxJSp03kzvNOqNtiv8yXMWgITpoARCzG4XlPGNQoPrwySTM27Fu2 fWB+gReLOAsHH7R8UpABZNsblDxvSLJVG7ncHPEfU8kLDNZYjH8T15Kty66hTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=leTjRMvR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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: 7.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=leTjRMvR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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: 7F07527B37 X-Spam-Score: 7.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: jDfU8xtzbBsL * gnu/packages/llvm.scm(libcxx)[source]: Use "llvm-monorepo". [arguments]<#:configure-flags>: Use clang & clang++, skip RPATH_CHANGE in CMake. <#:phases>: Add phase "enter-subdirectory". [native-inputs]: Add Python 3 for lit. (libcxx-6)[arguments]: Don't inherit from libcxx. --- gnu/packages/llvm.scm | 81 +++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 30 deletions(-) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 00918bfb90..405ff0b0d8 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -1531,15 +1531,63 @@ (define-public lldb (define-public libcxx (package (name "libcxx") - (version "9.0.1") + (version "14.0.6") + (source (llvm-monorepo version)) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:configure-flags + #~(list "-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi" + "-DCMAKE_C_COMPILER=clang" + "-DCMAKE_CXX_COMPILER=clang++" + ;; libc++.so is actually a GNU ld style linker script, however, + ;; CMake still tries to fix the RUNPATH of it during the install + ;; step. This argument tells CMake to use the install directory + ;; as RUNPATH and don't attempt to patch it. + ;; See also: https://gitlab.kitware.com/cmake/cmake/-/issues/22963 + "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'enter-subdirectory + (lambda _ + (chdir "runtimes"))) + (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH + (lambda* (#:key inputs #:allow-other-keys) + (let ((gcc (assoc-ref inputs "gcc"))) + ;; Hide GCC's C++ headers so that they do not interfere with + ;; the ones we are attempting to build. + (setenv "CPLUS_INCLUDE_PATH" + (string-join (delete (string-append gcc "/include/c++") + (string-split (getenv "CPLUS_INCLUDE_PATH") + #\:)) + ":")) + (format #t + "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%" + (getenv "CPLUS_INCLUDE_PATH")) + #t)))))) + (native-inputs + (list clang llvm python)) + (home-page "https://libcxx.llvm.org") + (synopsis "C++ standard library") + (description + "This package provides an implementation of the C++ standard library for +use with Clang, targeting C++11, C++14 and above.") + (properties `((release-monitoring-url . ,%llvm-release-monitoring-url))) + (license license:expat))) + +;; Libcxx files specifically used by PySide2. +(define-public libcxx-6 + (package + (inherit libcxx) + (version (package-version llvm-6)) (source (origin (method url-fetch) (uri (llvm-uri "libcxx" version)) (sha256 (base32 - "0d2bj5i6mk4caq7skd5nsdmz8c2m5w5anximl5wz3x32p08zz089")))) - (build-system cmake-build-system) + "0rzw4qvxp6qx4l4h9amrq02gp7hbg8lw4m0sy3k60f50234gnm3n")))) (arguments (list #:phases @@ -1558,33 +1606,6 @@ (define-public libcxx "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%" (getenv "CPLUS_INCLUDE_PATH")) #t)))))) - (native-inputs - (list clang llvm)) - (home-page "https://libcxx.llvm.org") - (synopsis "C++ standard library") - (description - "This package provides an implementation of the C++ standard library for -use with Clang, targeting C++11, C++14 and above.") - (properties `((release-monitoring-url . ,%llvm-release-monitoring-url))) - (license license:expat))) - -;; Libcxx files specifically used by PySide2. -(define-public libcxx-6 - (package - (inherit libcxx) - (version (package-version llvm-6)) - (source - (origin - (inherit (package-source libcxx)) - (uri (llvm-uri "libcxx" version)) - (sha256 - (base32 - "0rzw4qvxp6qx4l4h9amrq02gp7hbg8lw4m0sy3k60f50234gnm3n")))) - (arguments - (substitute-keyword-arguments (package-arguments libcxx) - ((#:phases p) - #~(modify-phases #$p - (delete 'enter-subdirectory))))) (native-inputs (list clang-6 llvm-6)))) -- 2.38.0