From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kNg3BXKvlGUz4gAAkFu2QA (envelope-from ) for ; Wed, 03 Jan 2024 01:50:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0DwMAHKvlGUe0QAAe85BDQ (envelope-from ) for ; Wed, 03 Jan 2024 01:50:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm1 header.b=ZV36203Z; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="A bsGAEc"; 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=1704243057; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DXiUpE1jRYgojcSrKbBSGPFKZBbBzrQstrkKYWCiHKg=; b=tyyQLPEhMzVlq4pXdxFHlvvwvTEpqnD3PO8SjKkCTCjnSbhopdb3ArUegtliRyt58tU9Pu liOD4eWYcKzFbLsqqEsGFiUk5MUiv+Gh01uREoCGfORWisN53Zdr44A4ONC32w3iZtHE0X ss12yuDTw6WQVtQaN6O8BD6Ssfa/oxnNapX6+xHuLhSycMjrkxrJKF+Y15zD09rKEZUMkJ qABZmvdEHE3mLX+xyU6kH6R35uJPqPrP3/sFFyzOfrE+yri+JtKRXIeImiEo+ZsLOliA27 biJq9AYY8Awbxu65WgbOO4rD7nzS1UPJmOkXaqT10PC6BvtA0bnW7T0FL1IL2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm1 header.b=ZV36203Z; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="A bsGAEc"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1704243057; a=rsa-sha256; cv=none; b=UxxzWcvR5KLK5yqA3S7vD5NYQ0zz+fKUf3PcbaYzxaEsuxKtoTVaBCqxSnvQyVlCW2Ge57 KGdjCDJSeKHRdhnVEfrHge2ymtZ9tptA1480ooXqiCZlmpcUzxRhDqyksg3VIwTnScFbLq R1j01ad/ECyRP2VEO5zsAydkY/Mo95961ysWCF6LgnCTWTyS/ku6hAuXPwQYAoXnob/cDJ GxIf5OTAi9vhFgzqJRTeN2WSwyJPnz1DsfFAEr25paSIK3xTequcabvSf6kzvn13OI485w YZ3pIQal/VfG9Y1dcLWqF5XFEpRVyjG6mPfXVzIDGK2PEUIqOAFGgVMKjPI5hA== 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 AA5F358F15 for ; Wed, 3 Jan 2024 01:50:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKpSc-0005Md-DE; Tue, 02 Jan 2024 19:50:18 -0500 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 1rKpSa-0005MV-QF for help-guix@gnu.org; Tue, 02 Jan 2024 19:50:16 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKpSV-0008KN-GQ for help-guix@gnu.org; Tue, 02 Jan 2024 19:50:16 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C18C63200B57 for ; Tue, 2 Jan 2024 19:50:06 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 02 Jan 2024 19:50:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:content-transfer-encoding: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=fm1; t=1704243006; x=1704329406; bh=DXiUpE1jRYgojcSrKbBSGPFKZBbBzrQstrkKYWCiHKg=; b= ZV36203Z12QEeNZti/BWqGqxw1Qt7Z6HDQNcmQTGw0NI+DENUOKBuwQXQAuqTb/Q L5oKNBfQkOpyijsGcRAdN9grITHz0lhe27OgCGOt7XDO+YIKGgSoV5d+A8BrHPrn s0khEdsZRDBmwhMNnG0/GQJCB8TXRnP0gTyO5mb3VkoBpWEGvXFHVJ0xugUWYctE jaMj5d4LftUdBi6HP+Voz5A7qav3z9lvwHNjvXUnLdKC5/narXC24gkxhkPDjaY/ fGlEdzCiqxdfVUHSmeD9aXLfXx/rClOvnDmMuBUppBv1rOKYrycRRoKJHql1bBDO VQ+g145x+BgCLbuPfAZwYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm2; t=1704243006; x= 1704329406; bh=DXiUpE1jRYgojcSrKbBSGPFKZBbBzrQstrkKYWCiHKg=; b=A bsGAEcflUz17rt5zFDwRff4Y1jhrXV8tyqgseatKeaf5s/8IMEkWaNsrtJQvK3b2 VVRKkK3RU+If3tIpoA1S5hKLEOlCO91pmnCMttT6fYRfNRsj5OgeV0T6wqr9B1uB EVtYz6t8h+nynlthBFoqHCXbFibwaJ2CpHZQdF1zf9tH3KQZp0xC7gvsSCynNn7C /be++9aQhB+afJ9Uw+T25p9DbGdHcGANdcz5M4XrRm+IBq2VWKOBnTi9t97opyuM mkv563kpgVttG9TltRICom9fDxBpvQ7RiqBKyvR931jmae/RAQqa4gh+FbtbytBf xTHuK2QDZ0xZgZO37K2HA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeggedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgfgsehtqh ertddtreejnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghnsehrvghtrhhoshhpvggt rdhtvheqnecuggftrfgrthhtvghrnheptdffffffkefggfekffehvefgfedukedvgfevje ejtedujedtgeevvdekieekhefhnecuffhomhgrihhnpeifihhkihhpvgguihgrrdhorhhg necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnh esrhgvthhrohhsphgvtgdrthhv X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 2 Jan 2024 19:50:05 -0500 (EST) References: <871qbajyk6.fsf@h-brs.de> User-agent: mu4e 1.8.13; emacs 28.2 From: Ian Eure To: help-guix@gnu.org Subject: Re: LD_LIBRARY_PATH issues when compiling package Date: Tue, 02 Jan 2024 16:39:30 -0800 In-reply-to: <871qbajyk6.fsf@h-brs.de> Message-ID: <87jzorfdfn.fsf@meson> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.21; envelope-from=ian@retrospec.tv; helo=wout5-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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: 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.87 X-Spam-Score: -8.87 X-Migadu-Queue-Id: AA5F358F15 X-Migadu-Scanner: mx10.migadu.com X-TUID: nVMbFEFi+83B Alexander Asteroth writes: > Dear all, > > (snip) > > Now I have basically three questions: > > 1. how can I advice the package build process (see [0]) to set=20 > the=20 > LDFLAGS correctly? > (shouldn't this be done by adding `(input [...] libffi [...]=20 > )`=20 > to the package description?) > For the few packages I=E2=80=99ve put together, adding the library to the=20 package inputs has enabled the build to see and link against them.=20 I don=E2=80=99t know the mechanics of how this works, but it seems to. If your package requires the library at runtime (which sounds like=20 it=E2=80=99s the case for you), it needs to be in propagated-inputs=20 instead. > 2. how do programs in a guix system find the libraries (which=20 > reside in $HOME/.guix-profile/lib and in the store directories)=20 > anyway? The rpath[1] in the ELF header of compiled binaries it set to the=20 store location of the libraries it=E2=80=99s linked against. This is very= =20 easy to see on a foreign distribution with Guix installed. Here=E2=80=99s= =20 one of my machines, which is running Debian, and has SBCL=20 installed both via apt and guix: meson!ieure:~$ readelf -d /usr/bin/sbcl | grep 'R.*PATH' meson!ieure:~$ readelf -d ~/.guix-profile/bin/sbcl | grep=20 'R.*PATH' 0x000000000000001d (RUNPATH) Library runpath:=20 [/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib:/gnu/store/094= bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib:/gnu/store/3x3dl71d4xm6y4h= jwq110hmfyfx0xc6j-zstd-1.5.0-lib/lib:/gnu/store/094bbaq6glba86h1d4cj16xhdi6= fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../..] > 3. does anybody have an idea what could have caused the library=20 > not to be found anymore after an update of the packages? > (that even could not be resolved by rolling back to the old=20 > environment of before the change) Hard to say, I don=E2=80=99t have a hypothesis. =E2=80=94 Ian [1]: https://en.wikipedia.org/wiki/Rpath