unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* [dxvk] How to set RPATH with Meson?
@ 2020-03-25 14:02 Pierre Neidhardt
  2020-03-25 17:35 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2020-03-25 14:02 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]

Hi!

I'm trying to update DXVK to 1.6 and it now ships a new d3d10core.dll.so
on which its other libraries depend.
Thus RUNPATH verification fails:

--8<---------------cut here---------------start------------->8---
validating RUNPATH of 6 binaries in "/gnu/store/d78ivdn8y5idyzikidmm7jmpi5pnkrxl-dxvk32-1.6/lib"...
/gnu/store/d78ivdn8y5idyzikidmm7jmpi5pnkrxl-dxvk32-1.6/lib/d3d10.dll.so: error: depends on 'd3d10core.dll.so', which cannot be found in RUNPATH ("/gnu/store/f2xz8fhfsb559xnpqxqik5y121svnhdg-glibc-2.29/lib" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib" "/gnu/store/8239jfnnszqgsvyqansvwwwqzryw9zhb-wine-staging-5.3/bin/../lib/wine32" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib/gcc/i686-unknown-linux-gnu/9.3.0/../../..")
/gnu/store/d78ivdn8y5idyzikidmm7jmpi5pnkrxl-dxvk32-1.6/lib/d3d10_1.dll.so: error: depends on 'd3d10core.dll.so', which cannot be found in RUNPATH ("/gnu/store/f2xz8fhfsb559xnpqxqik5y121svnhdg-glibc-2.29/lib" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib" "/gnu/store/8239jfnnszqgsvyqansvwwwqzryw9zhb-wine-staging-5.3/bin/../lib/wine32" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib/gcc/i686-unknown-linux-gnu/9.3.0/../../..")
--8<---------------cut here---------------end--------------->8---

I tried passing the following arguments:

--8<---------------cut here---------------start------------->8---
(string-append "-Dc_link_args=-Wl,-rpath="
               (assoc-ref %outputs "out")
               "/lib")
(string-append "-Dcpp_link_args=-Wl,-rpath="
               (assoc-ref %outputs "out")
               "/lib")
--8<---------------cut here---------------end--------------->8---

Didn't work.

Any idea where to go from here?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dxvk] How to set RPATH with Meson?
  2020-03-25 14:02 [dxvk] How to set RPATH with Meson? Pierre Neidhardt
@ 2020-03-25 17:35 ` Marius Bakke
  2020-03-26 10:14   ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-03-25 17:35 UTC (permalink / raw)
  To: Pierre Neidhardt, help-guix

[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]

Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Hi!
>
> I'm trying to update DXVK to 1.6 and it now ships a new d3d10core.dll.so
> on which its other libraries depend.
> Thus RUNPATH verification fails:
>
> --8<---------------cut here---------------start------------->8---
> validating RUNPATH of 6 binaries in "/gnu/store/d78ivdn8y5idyzikidmm7jmpi5pnkrxl-dxvk32-1.6/lib"...
> /gnu/store/d78ivdn8y5idyzikidmm7jmpi5pnkrxl-dxvk32-1.6/lib/d3d10.dll.so: error: depends on 'd3d10core.dll.so', which cannot be found in RUNPATH ("/gnu/store/f2xz8fhfsb559xnpqxqik5y121svnhdg-glibc-2.29/lib" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib" "/gnu/store/8239jfnnszqgsvyqansvwwwqzryw9zhb-wine-staging-5.3/bin/../lib/wine32" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib/gcc/i686-unknown-linux-gnu/9.3.0/../../..")
> /gnu/store/d78ivdn8y5idyzikidmm7jmpi5pnkrxl-dxvk32-1.6/lib/d3d10_1.dll.so: error: depends on 'd3d10core.dll.so', which cannot be found in RUNPATH ("/gnu/store/f2xz8fhfsb559xnpqxqik5y121svnhdg-glibc-2.29/lib" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib" "/gnu/store/8239jfnnszqgsvyqansvwwwqzryw9zhb-wine-staging-5.3/bin/../lib/wine32" "/gnu/store/vmdi5a25sg3dpwp28762xssiayb6qjp6-gcc-9.3.0-lib/lib/gcc/i686-unknown-linux-gnu/9.3.0/../../..")
> --8<---------------cut here---------------end--------------->8---
>
> I tried passing the following arguments:
>
> --8<---------------cut here---------------start------------->8---
> (string-append "-Dc_link_args=-Wl,-rpath="
>                (assoc-ref %outputs "out")
>                "/lib")
> (string-append "-Dcpp_link_args=-Wl,-rpath="
>                (assoc-ref %outputs "out")
>                "/lib")
> --8<---------------cut here---------------end--------------->8---
>
> Didn't work.
>
> Any idea where to go from here?

meson-build-system already passes those arguments unconditionally.
Perhaps meson.build does something weird and ignores those flags?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dxvk] How to set RPATH with Meson?
  2020-03-25 17:35 ` Marius Bakke
@ 2020-03-26 10:14   ` Pierre Neidhardt
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2020-03-26 10:14 UTC (permalink / raw)
  To: Marius Bakke, help-guix

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

You are right.

I went through all the meson.build in the project, could not find
anything weird.

build-wine32.txt has

--8<---------------cut here---------------start------------->8---
cpp_link_args=['-m32', '-mwindows']
--8<---------------cut here---------------end--------------->8---

so I patched it to

--8<---------------cut here---------------start------------->8---
cpp_link_args=['-m32', '-mwindows', '-Wl,-rpath=/gnu/store/lbh22ci6rg780fvxclik5mkgi1z73qfn-dxvk32-1.6/lib']
--8<---------------cut here---------------end--------------->8---

Still no difference.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-26 10:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 14:02 [dxvk] How to set RPATH with Meson? Pierre Neidhardt
2020-03-25 17:35 ` Marius Bakke
2020-03-26 10:14   ` Pierre Neidhardt

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).