From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 AOJEH6fxH2MQeQAAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 04:57:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sLoqH6fxH2PiewEAauVa8A (envelope-from ) for ; Tue, 13 Sep 2022 04:57:43 +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 42C14336 for ; Tue, 13 Sep 2022 04:57:43 +0200 (CEST) Received: from localhost ([::1]:33078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXw7K-000653-Ev for larch@yhetil.org; Mon, 12 Sep 2022 22:57:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXw6s-00062l-7j for guix-devel@gnu.org; Mon, 12 Sep 2022 22:57:14 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:38871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXw6q-0003dG-Lh for guix-devel@gnu.org; Mon, 12 Sep 2022 22:57:13 -0400 Received: by mail-qk1-x72c.google.com with SMTP id 3so7081756qka.5 for ; Mon, 12 Sep 2022 19:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date; bh=Metf3Pkwcv5k/yBwIKl8FmbOWsxFq0LkO11ZGbCtU3s=; b=aWe7QGw5TecLZC/YMD/QBquO6ynGUvPuztutES1eVL5rvYGDzKPb7xBnqYMUm5GwdG bekTEarape/hM8RC16LCqv6hGp61fV+xq+WhdQimBnbS+xj8P3if8M4urXhjgh2mZQ69 dHBgyFb38H8oyeIMZnKK/iS+SWjz68b6zkRwnfkkuh6RBlwZueXpTDEFqRgN3SOBlKQo ZpyzHJBnLphofDp0YPHBO8ex//i6I3YG2b6ZPQ3yRjJvSCNCtKWDOjPaw5jVNBxW3hSj jf9SOvPGGCoy8Wb72CE4vYOCs1x6P7whf30Pa2+SXO7tMsmmRTB9hxOCoXVIbPRJhBiv wTQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=Metf3Pkwcv5k/yBwIKl8FmbOWsxFq0LkO11ZGbCtU3s=; b=Wm5zifU32CeomppTyg4LDDsBbRQzFP+09sdTpNRnLgnN0HsjKfu46T9pbthlQS0JLD S8n/D9UHM94aeZ/pE996Ys/DQVzYDR1QF8hWoEfDQcSWVETpicNlxSi1n0Gg8VHzb6m7 Qb6wSFq0x/oWDXQGmx7J6Va2DnT8DKaC9dsh3RTzVKBYObPxr2a7ApbfcAyLkpvcfkbC SDICb6S87CbIVU/TIWv/AOCKWQSpI2M2zLu0CHsBVHgm/tBZXNSNH/jqJ/zRtIDm8aYq V9wQIKxBASfBAiooMhJ7q0uESv/fWPr4Xzh46j8QXh3i+llw7HLylaX7QlSpIJNedZX1 PtMA== X-Gm-Message-State: ACgBeo3q6aYFQEjf6aRzxxJh2JzQnK9fPO9PcW4rPuO2zgsoyuvDvbmy VpqQnyh/cKBDpajoaQ+rnWnrN/5ozEU= X-Google-Smtp-Source: AA6agR4/tLwc2yP7iwK+sVGAmjaUPM/45EiRQm7nlnZrSGmdjl5HT23O4tdRyt9XEDR2zZjZeYXkZA== X-Received: by 2002:a37:bc9:0:b0:6cb:e43b:27a1 with SMTP id 192-20020a370bc9000000b006cbe43b27a1mr14539437qkl.189.1663037831460; Mon, 12 Sep 2022 19:57:11 -0700 (PDT) Received: from hurd (dsl-10-149-227.b2b2c.ca. [72.10.149.227]) by smtp.gmail.com with ESMTPSA id x14-20020a05620a448e00b006bb0f9b89cfsm9663230qkp.87.2022.09.12.19.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 19:57:10 -0700 (PDT) From: Maxim Cournoyer To: Maxime Devos Cc: Zhu Zihao , Guix Devel Subject: Re: [RFC] Use LLVM_BUILD_LLVM_DYLIB instead of BUILD_SHARED_LIBS References: <867d33tpui.fsf@163.com> Date: Mon, 12 Sep 2022 22:57:10 -0400 In-Reply-To: (Maxime Devos's message of "Fri, 26 Aug 2022 20:24:05 +0200") Message-ID: <87leqoasmx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1663037863; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Metf3Pkwcv5k/yBwIKl8FmbOWsxFq0LkO11ZGbCtU3s=; b=EmZdvLBsn9ituduMhLIgB74suA63Sr2UgJzrLWIKYL0BiOnssq9SPCwGqn70G2HRyvtkw5 3/+jn2Qe6ufpNrHhgTebm7SyZELQsdqzAeEu+5/PvHl4RDF54HZcX+HdRCtCWMEJOnCKLq +vs6sG8rRUWMU76SMzkD15g9t+m/o29zo8sQCMniyvtmzNTzKUyPdMjiH4iLfGExmVpZZD MJgy9wdBfC86aXGOfLbPlOuO3L0yih23n+NIdl2A+SdV0MR3KrbgfDbBcCR1ZwkGikY0hs UBgOQP0e6NcRxGoEVXFh4D0gFLM+xsWy05CgScC3JbqaHXXPhKMxmwaRGz5uOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663037863; a=rsa-sha256; cv=none; b=Olr6jycObWBSJxkYIS56pIrpl6CxbgXXWdT9G8HjAdAANpN5ZzPZlQ8dUdurH/jv7hIKYE 0zgk38HFOtWoCkv0T23fL7H45Q4JZYqVpvooqVaflmK/0mtlgQ5bI0OUkuG1D+28iQ9Dgf rm92LxIBIXImaszaUoqUt75rQ9k9btDSOyK7ldBnSLNerjaDnFaxSsr21LE3PWJk7jsXGA 9d/uxr23jno9efQYN4t5O7Qe8zCrrEHB68P0mKmfNtBJrR4yBt6ei5yR5KKiAIIlVfEABa 8KKrEBo7c4J+ipgAeDGTrpFJ5Dgv0EdwkrjkSMsegeuvgayX622xP7cMEM0ySA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aWe7QGw5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aWe7QGw5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 42C14336 X-Spam-Score: -2.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: euvXNZUVCstR Hi Maxime, Maxime Devos writes: > On 20-04-2022 12:56, Zhu Zihao wrote: >> We may introduce following problems if we apply this solution. >> >> 1. Increase the closure size of LLVM. >> >> By default, if LLVM_BUILD_LLVM_DYLIB is set true, LLVM still tries to >> build the static archive. This may increase the closure size of LLVM. >> And some package linking with LLVM may use the static archive instead of >> linking to the dynamic library. >> >> My opinion: If we're OK with the bigger closure size, that's not a >> problem. If not, we may consider disable the static archive generation. >> For LLVM components, we can use `LLVM_LINK_LLVM_DYLIB` to ask these >> packages to link with the shared version. For package use `llvm-config` >> directly or indirectly, we can pass `--link-shared` to it. > > IIUC, this causes the static libraries to be built, right? What the DYLIB build option does is to build a single .so which contains all of the LLVM libraries instead of having a bunch of differently named .so around. It's much simpler to use, and the recommended approach for a shared library LLVM. Maxim