runtime text relocations /usr/lib/dxvk/d3d{9,10,11}.dll.so #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hey there, I wonder if you also get these warnings from portage:
I do get them with both dxvk-1.5.5 and master using wine-vanilla-5.2
Is this a bug in winelib, in ld.bfd, or what is this? Is it important to fix?
upstreams dxvk closed the issue as NOTMYBUG, or something along the lines ;-)
I do get the same warnings but always ignored them. 😄
I don't know much about the topic, but I had a look with
scanelf -qT /usr/lib/dxvk/*.so
and it seems the TEXTRELs happen in functions starting with__wine_spec
, which belong to wine. The binaries provided by upstream do not contain TEXTRELs, as far as I can see.It seems they are False positives that happened because the code was not compiled with
-fPIC
. I'll run a few tests and update the ebuilds soon.Compiling with
-fPIC
did not solve this. I'll keep ignoring this until someone has a solution. 🙂May I ask, is it correct that the dxvk ebuild uses some kind of wine-gcc wrapper to compile the code? Since wine-vanilla shows around a gazillion of these textrel warnings in it's own src_install, it might be a bug from these wine compiler, ending up here?
Yes, the ebuild uses
wineg++
which is ag++
wrapper (seeman wineg++
).I also think that the bug comes from wine (since upstream's build is fine) but I'm not sure.
well, it seems as if the maintainers intend to entirely drop support for source builds with wineg++ ; right now it's untested and bugs are fixed, but it might be mandantory soon to use mingw-w64.
found that information via https://github.com/doitsujin/dxvk/issues/1521
Yeah, I'm aware (I ran into the bug you linked). Trying to make an ebuild with Mingw (or make a dxvk-bin ebuild if I fail) is on my todo-list.
well, the gentoo wiki article for mingw is outdated, that's for sure :-/
to save you some time:
possible shortcut:
the ebuild doesn't seem difficult to fix:
redirect source meson cross file to ${S}/build-win64.txt and maybe alter your sed kungfu a bit ;-)
optional: strip binaries/libs with mingw32 cross strip
untested: updating WINEPREFIX with setup_dxvk.sh
Thanks for your help and sorry for the delay. I ran some tests and this seems to be the shortest recipe:
I pushed
app-emulation/dxvk-1.6.1-r1
with mingw support. Can you test if it works?It builds here but I have not verified if it is usable yet.
setup_dxvk.sh works, playing a game works, the live-ebuild is now updated too. Please reopen if you have any issues.
winegcc is officially no longer supported by upstream btw: https://github.com/doitsujin/dxvk/commit/436357e28096f5e1e25aa8b72fceb77123ea8404.
Yes, it does work pretty good now with mingw :)
P.S: wine-5.6 ships with a broken winecfg, had to work around that first before testing your stuff