[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Phase `validate-runpath' fails: lib not in RUNPATH
From: |
Ricardo Wurmus |
Subject: |
Re: Phase `validate-runpath' fails: lib not in RUNPATH |
Date: |
Sun, 06 Nov 2016 20:28:20 +0100 |
User-agent: |
mu4e 0.9.16; emacs 26.0.50.1 |
Hartmut Goebel <address@hidden> 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