From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4NuMEUboH2bIqgAAe85BDQ:P1 (envelope-from ) for ; Wed, 17 Apr 2024 17:18:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4NuMEUboH2bIqgAAe85BDQ (envelope-from ) for ; Wed, 17 Apr 2024 17:18:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=philipmcgrath.com header.s=fm3 header.b="t CV6cX6"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=TPX3senU; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713367110; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=48p6VK+BhYNMM+CbXKYbXZ1VOdbKAvF6tpYDXuH/D8o=; b=DVCbVtR4DZoPM3lm/lZ0RCApGDUYjA+bs863s0Hi2IWed7vvnenx59cBNUvgPohpnoWSMY 7PO7PbpaJwP9gu8IYhmgNsj3k85s6i2PuoVcrZG+CWQblRrEtgfczdA8zjlG7Cj/jsbYOs r6JaWv9m6430wxAKWta7fBvmveGqTs6QhDqy2yWzrn8cUTcWJpmdsBpF30yzfM6Xhp0r8V nWo6LJwIxe0ep8r8hzLVkGQeCq/M5C8K+vhg5vP4n//QhHWtevBYT2nh1389zlsrNtgXgb ZTNOgCX2Eo9HttrAWisQtgUTyZYKOylJ2kd21d7I6ezSggafdrHPW7WWM0vcDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713367110; a=rsa-sha256; cv=none; b=jeTkkKO/K7GqHMEGuqxFci//qx69NYoXXy1U+B1eUBiYKyvRqyn7WmS3hWDIrt09SzjDlP rKhkxSUvt5SEwiYG847wj5wC53ubWOGdbYOXvomYcwt5zH/9kzG+2xiqzABxSFe8ycN6JK g1PhbszcTWcBH4+FHRnFEGHHn2/SuUxZbpW0/BUeIeWs/Jo8a12XSsXWFNl/y8laDBFL8a xHTP/S/MlomuzRbNf85yI/7TEnvDa93Q0/PXlgB7dw2LWk3navB3iFd87yeT3WX4PhfSVL JyHZGq8i58lvOsoXIXtw87xxNg7PD0AehHXUGiRtMVtQSirRQtDz20opNaGdzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=philipmcgrath.com header.s=fm3 header.b="t CV6cX6"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=TPX3senU; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none 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 94F003D4E9 for ; Wed, 17 Apr 2024 17:18:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx72z-0007Oa-St; Wed, 17 Apr 2024 11:18:06 -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 1rx72q-0007NQ-Ng for help-guix@gnu.org; Wed, 17 Apr 2024 11:17:58 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rx72o-0000gX-HB for help-guix@gnu.org; Wed, 17 Apr 2024 11:17:56 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 6B6F5114009E; Wed, 17 Apr 2024 11:17:50 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute1.internal (MEProxy); Wed, 17 Apr 2024 11:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1713367070; x= 1713453470; bh=48p6VK+BhYNMM+CbXKYbXZ1VOdbKAvF6tpYDXuH/D8o=; b=t CV6cX6nfUQmpDPhH+l2D0bybJZk1eYEUVuQrPoOZZqKyciHU7LOM7C22ywbFsMtf qvwi/mkIRRsRKVJqv13Uf50+ecofm+TTVp+uebXabP3Nn6Zui58Fm590qK6/Khl0 jMgtGDEgSXCTRtRMLheiAEV354/C+v1U4p+aA7y2LPhNQx+/TIr34IxbfF8lINKl t3jxAgha5twYSBiG5lqfRSS9nL3T4rgvEs1fTkPTv3iaDbYJIq4yHYLO4j32El+4 rWBG/gPcFCaDqFXzlUiGnvjQPkIhhxu/XS3rkA+hbH+g9DA1qdYIYqvgkRX7tMm8 XQATUwtMiF3WGhEjdb7vQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713367070; x=1713453470; bh=48p6VK+BhYNMM+CbXKYbXZ1VOdbK AvF6tpYDXuH/D8o=; b=TPX3senUGl3mUN1EVkTjMiBOLWK1i1KKzFuqj2w3QAWC p59cEQkStDxoPKaK5lH0tENpFmVkg2HrYAaRatrmg3tGlo/UvcbwOldh84vXHC4Q y3iajuCCbYQOXayV4jRWaHmdjVrI/0HDcjg2A8WxDq4blo2P7GjvgCPq1XMNCsm8 NAg1OEEdmJRv+ZEAfwxYaAPtFRTS9FsAXWGlGRGUIN3EvVh8PiB+butnM65Bfgbu coKaGKVehzCsPE2rWGdACFiemIOdaeVJzVi/j1676FKx9HIRRz4K5q2D57iasMH3 c2EKPHk0FcPFp15hPBdYpG0kYK+2Q7Zc1kW5mHVwGQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejkedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfrhhhi lhhiphcuofgtifhrrghthhdfuceophhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrd gtohhmqeenucggtffrrghtthgvrhhnpeekfeetgeefjeevgfefueelgeevgfeigfeltddu geeikedtueeileekheelveffteenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhp sehphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E3AFBC60097; Wed, 17 Apr 2024 11:17:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 MIME-Version: 1.0 Message-Id: In-Reply-To: References: Date: Wed, 17 Apr 2024 11:17:28 -0400 From: "Philip McGrath" To: "Antoine Poinsot" , "Guix Help" Subject: Re: Bootstrappable Release Build of Rust Application Content-Type: text/plain Received-SPF: pass client-ip=103.168.172.158; envelope-from=philip@philipmcgrath.com; helo=fhigh7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.54 X-Spam-Score: -8.54 X-Migadu-Queue-Id: 94F003D4E9 X-Migadu-Scanner: mx13.migadu.com X-TUID: vrrTF1g3GHZC Hi, On Wed, Apr 17, 2024, at 6:28 AM, Antoine Poinsot wrote: > Good morning all, > > I've been working on using Guix for the reproducible builds of my Rust > software. My main question is about linking my program against an older > glibc version (or better yet, statically linking it against musl). > > [...] > > Now this links against glibc 2.35. I need to target ideally 2.29 or at > most 2.31. That's what i'm seeking help for. I've tried the obvious: > ``` > guix build -f test2.scm --with-input=glibc=glibc@2.29 > ``` > My knowledge in this area is very shallow, but I also have wanted to link against old glibc versions, for somewhat similar purposes. The best I've got so far is at [1], in which I successfully use `make-gcc-toolchain` to use `gcc` with `glibc-2.31` and define a helper function `package-with-old-stable-libc` to supply it to `package-with-c-toolchain`. I use that in [2] to compile the library I'm interested in against the old glibc version. While this is the best solution I've found so far, I'm still not entirely happy with it! While the code I'm pointing you to isn't too bad, other parts of the overall setup are overly complex (in fairness, largely to also build for Apple platforms), and I haven't managed to build against Glibc 2.23 to fix [3]. But hopefully some of this might be useful, or, better yet, someone might suggest a better solution! Philip [1]: https://github.com/libgit2-racket/native-libs/blob/bd400daed8d4e38db6fc472d4ec82b99a884303c/guix/old-stable-libc.scm [2]: https://github.com/libgit2-racket/native-libs/blob/bd400daed8d4e38db6fc472d4ec82b99a884303c/guix/extracted/non-apple.scm [3]: https://github.com/libgit2-racket/libgit2/issues/2