From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Phase `validate-runpath' fails: lib not in RUNPATH Date: Sun, 06 Nov 2016 20:28:20 +0100 Message-ID: <87twbk8l2j.fsf@elephly.net> References: <10612b67-4c72-1178-46a8-3a79572f3cde@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3T7K-0008Bn-BU for guix-devel@gnu.org; Sun, 06 Nov 2016 14:28:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3T7F-0002eg-BX for guix-devel@gnu.org; Sun, 06 Nov 2016 14:28:34 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3T7F-0002dg-3H for guix-devel@gnu.org; Sun, 06 Nov 2016 14:28:29 -0500 In-reply-to: <10612b67-4c72-1178-46a8-3a79572f3cde@crazy-compilers.com> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: Guix-devel Hartmut Goebel writes: > I'm trying to build thunderbird ATM, modelled after the build for icecat. > > Phase `validate-runpath' fails with errors like this: > > /gnu/store/…-thunderbird-45.4.0/lib/firefox-45.4.1/browser/components/libbrowsercomps.so: > error: depends on 'libplds4.so', which cannot be found in RUNPATH > > /gnu/store/…-thunderbird-45.4.0/lib/firefox-devel-45.4.1/sdk/lib/libxul.so: > error: depends on 'libnspr4.so', which cannot be found in RUNPATH > > Any hint what this can be caused by? This happens when libraries are referenced that are not in the default library location of this package’s output directory. In the package for R we have a similar situation and fix it by passing these make flags: #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib/R/lib")) This adds the “/lib/R/lib” directory to the RUNPATH, so that references to these libraries can be properly embedded. ~~ Ricardo