From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 01aMNvEeTWF1bwAAgWs5BA (envelope-from ) for ; Fri, 24 Sep 2021 02:42:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eHGjMfEeTWFlLgAA1q6Kng (envelope-from ) for ; Fri, 24 Sep 2021 00:42:25 +0000 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 88FBAE640 for ; Fri, 24 Sep 2021 02:42:25 +0200 (CEST) Received: from localhost ([::1]:35882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTZIG-0001XT-EE for larch@yhetil.org; Thu, 23 Sep 2021 20:42:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTZHu-0001XH-6V for guix-patches@gnu.org; Thu, 23 Sep 2021 20:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTZHt-0006D0-Pt for guix-patches@gnu.org; Thu, 23 Sep 2021 20:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTZHt-00083K-I8 for guix-patches@gnu.org; Thu, 23 Sep 2021 20:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42576] [PATCH 1/2] gnu: llvm: Move dynamic libraries to a separate "lib" output. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Sep 2021 00:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Neidhardt Cc: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= , 42576@debbugs.gnu.org Received: via spool by 42576-submit@debbugs.gnu.org id=B42576.163244409330912 (code B ref 42576); Fri, 24 Sep 2021 00:42:01 +0000 Received: (at 42576) by debbugs.gnu.org; 24 Sep 2021 00:41:33 +0000 Received: from localhost ([127.0.0.1]:56290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTZHQ-00082V-Sp for submit@debbugs.gnu.org; Thu, 23 Sep 2021 20:41:33 -0400 Received: from out2.migadu.com ([188.165.223.204]:34314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTZHO-00082M-Sj for 42576@debbugs.gnu.org; Thu, 23 Sep 2021 20:41:31 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1632444089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ce5qzbLHlewwvWO3vZIn8KIH6n0vSniN+fEl7bE5DNA=; b=VrrJ/sVzhB/dPJt479oly+1J/6SLqwh3mmAlKL8Aj9Mtj+1NmwxuAjaLxJT+olPQcxwFGy xJ7AjvJBkAnM68vEGOix4pX5Y3IEf2kVJQkweEatByhDd+FJUnNyDvjUmvPmFXxl5loPBv W2A5LG+XB8JBIs1T4wh2o+jrsgWtCZI= From: Sarah Morgensen References: <20200728095822.28375-1-mail@ambrevar.xyz> <20200807180944.ujbtmm3ljx6rntnt@gravity> <87mu35o73x.fsf@ambrevar.xyz> Date: Thu, 23 Sep 2021 17:41:27 -0700 In-Reply-To: <87mu35o73x.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sat, 08 Aug 2020 10:49:06 +0200 (1 year, 6 weeks, 4 days ago)") Message-ID: <86wnn6iz48.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632444145; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=Ce5qzbLHlewwvWO3vZIn8KIH6n0vSniN+fEl7bE5DNA=; b=O8xC3kRwI7LPKwddd/2g+XY+JesyuVjuEpNfoevQtZjnkG7/GHsr4wPwiTT6EbkWoe0nKK Ncrlq6NtCjJe21JE2+YaRw4WNv3/pNRMWc7ATX+rnEGmmzxcFWnLvZeXCXtedK007gxwD3 Di0ff5vSPl9JuFEzWXh6mVezxRUcdXoirI0oFG4PXgzsAIcqJz7BTTe5pbVqK0NqwYRSFj uOBaE+YqbD87J6hiSOTP/ILxf5S5WqvFh+R573O/vF886Vqh+66rE3fshzs2FjBvM+Q//Q eKJRqE2quykwSJt4Gf37MstkQo9+RKGpDphzknLTzYkTqk2bwTWQ5UQhl0+8qw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632444145; a=rsa-sha256; cv=none; b=rLvpKw0J+CultrOrhkjBM0pXPUPLFZrgvfYNgbnfcaqMAV9u5LruHhMad70cvghNGj25/T L0TZ8KZ+XPO4h1gp0SGbjzWdezagc6weozv716EJKjo+gzBjOS4TXMRfd0dF53szLKPNCH +j3kavtx75wHU/7SoosU58hPzOLSnOa4U5Rbg/t1TnePthwdQAil1Sa45FJqPx7003QAAF /wHe7ODYaNESPYHkIFz2QMSUfYW+yfq2CrUncPJEHLjkpobq28zMbcGlk2BcEHn2fPderC 0OZqMgC0Q6VP+iz0cCooMwqSPvPKd99txKJfKd7UWqvtwSkLJ8dYaLcspXQUyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b="VrrJ/sVz"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b="VrrJ/sVz"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 88FBAE640 X-Spam-Score: -1.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: AiTKRm1It2ss Hello Pierre, Thanks for your pioneering work on this! Pierre Neidhardt writes: > Hi Jakub, > > Jakub K=C4=85dzio=C5=82ka writes: > >> Pierre, >> >> please note that cmake seems to store a list of files installed by the >> package, which broke cmake-using dependents of clang when we attempted >> to change the set of files installed: http://issues.guix.gnu.org/41872 >> >> Did you try building something that depends on LLVM and uses >> cmake-build-system? > > It is broken indeed, this is one of the things that need to be fixed > before we can merge this patch. > > In issue 41872 the problem is with missing .a files. > A similar issue occurs here since we move files around, but the CMake > files are not aware of the move. > > One possible fix would be to patch the CMake files with the new locations. > This is rather inelegant though. > > A better fix would be to configure CMake to produce the various files > directly to the right location, e.g. the binary files, the headers and > the libraries to their own respective outputs. > > Any clue if we can do that? There has been some recent work on this in the LLVM project [0] and in Nix [1][2], based on the `GnuInstallDirs' CMake module. It looks like this would be doable for us, especially if we move in the direction of 'dev' outputs [3]. [0] https://reviews.llvm.org/D99484 [1] https://github.com/NixOS/nikpkgs/pull/111487 [2] https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/compilers= /llvm/12 [3] https://lists.gnu.org/archive/html/guix-devel/2021-09/msg00107.html Perhaps it's time to revive this effort (particularly for clang, which is a behemoth)? -- Sarah