* … which cannot be found in RUNPATH
@ 2017-06-12 6:44 Hartmut Goebel
2017-06-12 19:38 ` Marius Bakke
0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Goebel @ 2017-06-12 6:44 UTC (permalink / raw)
To: Guix-devel
Hi guix!
I have a package installing a lib as …/lib/plasma/libDiscoverCommon.so
and a second lib as …/lib/other/lib.so.
Building and linking works fine, but phase `validate-runpath' fails with:
"…/other/lib.so depends on 'libDiscoverCommon.so', which cannot be found
in RUNPATH".
I checked the RUNPATH shown in this error-message and it includes the
correct output of this package. But the RUNPATH only includes "…/lib",
not "…/lib/plasma" – I don't know if this matters.
It is one of the KDE packages, using the cmake-build-system, which did
not show this kind of errors (for me). libDiscoverCommon.so was
installed to the correct output of this package.
I tried setting linker flags, as I've seen in other packages, but this
did not help.
How to solve this?
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: … which cannot be found in RUNPATH
2017-06-12 6:44 … which cannot be found in RUNPATH Hartmut Goebel
@ 2017-06-12 19:38 ` Marius Bakke
0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2017-06-12 19:38 UTC (permalink / raw)
To: Hartmut Goebel, Guix-devel
[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]
Hartmut Goebel <h.goebel@crazy-compilers.com> writes:
> Hi guix!
>
> I have a package installing a lib as …/lib/plasma/libDiscoverCommon.so
> and a second lib as …/lib/other/lib.so.
>
> Building and linking works fine, but phase `validate-runpath' fails with:
>
> "…/other/lib.so depends on 'libDiscoverCommon.so', which cannot be found
> in RUNPATH".
>
> I checked the RUNPATH shown in this error-message and it includes the
> correct output of this package. But the RUNPATH only includes "…/lib",
> not "…/lib/plasma" – I don't know if this matters.
>
> It is one of the KDE packages, using the cmake-build-system, which did
> not show this kind of errors (for me). libDiscoverCommon.so was
> installed to the correct output of this package.
>
> I tried setting linker flags, as I've seen in other packages, but this
> did not help.
>
> How to solve this?
Cmake has a couple of options for controlling RUNPATH.
https://cmake.org/Wiki/CMake_RPATH_handling
See e.g. 'ceph' for a similar example. Would that approach work?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-12 19:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 6:44 … which cannot be found in RUNPATH Hartmut Goebel
2017-06-12 19:38 ` Marius Bakke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).