Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-emulation/wine-staging-4.20 doesn't like -fipa-pta #445

Open
TheGreatMcPain opened this issue Nov 26, 2019 · 15 comments
Open

app-emulation/wine-staging-4.20 doesn't like -fipa-pta #445

TheGreatMcPain opened this issue Nov 26, 2019 · 15 comments

Comments

@TheGreatMcPain
Copy link
Contributor

If wine-staging 4.20 is built with '-fipa-pta', features like 'virtual desktop' cause wine to freeze, and games like Titanfall 2 and BF4 crash shortly after launching.

Not sure if this affects other wine variants such as wine-vanilla.

Adding app-emulation/wine-staging *FLAGS-="${IPAPTA}" to packages.cflags fixes it.

@wolfwood
Copy link
Contributor

wolfwood commented Nov 26, 2019 via email

@TheGreatMcPain
Copy link
Contributor Author

Yes I am using custom-cflags

@wolfwood
Copy link
Contributor

wolfwood commented Nov 26, 2019 via email

@TheGreatMcPain
Copy link
Contributor Author

ltoworkarounds.conf already filters out LTO and -fno-plt. I haven't had any issues with O3.

The only issue I've had so far that is related to cflags is -fipa-pta.

@elsandosgrande
Copy link
Contributor

Hm... I wonder how much of a pain it would be for the developers to try and make these flags not break Wine.

@wolfwood
Copy link
Contributor

@TheGreatMcPain I added your IPAPTA filter locally and was able to compile with custom-cflags, so thats pretty cool. can't test it at the moment though.

@TheGreatMcPain
Copy link
Contributor Author

TheGreatMcPain commented Nov 27, 2019

Looks like I'll have to do more testing since wine 4.20 is now breaking my dxvk/d9vk winelib builds.

EDIT: Okay looks like for some reason dxvk winelib builds with any optimizations are broken at the moment no matter what version of wine I use, so ignore this.

@wolfwood
Copy link
Contributor

wolfwood commented Nov 27, 2019 via email

@TheGreatMcPain
Copy link
Contributor Author

My d9vk ebuild is based on FireBurn's dxvk ebuild which is just phrome's ebuild without the slotting.

I'll have to retest d9vk, but I'm certain that dxvk is now much more picky with optimizations on winelib now.

At the moment I've modified my dxvk/d9vk ebuilds so that they use mingw rather then winelib, which surprisingly builds and runs with all of GentooLTO's optimizations.

@thrifty-txt
Copy link

Could you post your d9vk ebuilds? I've got one but to be honest I can't tell how I broke it recently.

@TheGreatMcPain
Copy link
Contributor Author

Here's the winelib version.

d9vk.zip

@barolo
Copy link

barolo commented Nov 29, 2019

@TheGreatMcPain Does -9999 build for you? I'm getting linker errors

@TheGreatMcPain
Copy link
Contributor Author

TheGreatMcPain commented Nov 30, 2019

Do you have the mingw compilers installed?

Also are you using the wine ebuilds from gentoo, or the ones from @bobwya?

@barolo
Copy link

barolo commented Nov 30, 2019

@TheGreatMcPain I'm using the one from bobwya, no mingw I guess?

@TheGreatMcPain
Copy link
Contributor Author

TheGreatMcPain commented Nov 30, 2019

@barolo can you send a build log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants