Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 734164

Summary: games-strategy/0ad-0.0.23b_alpha fails to run on AMD Ryzen CPUs
Product: Gentoo Linux Reporter: asdfg <andrschwarz>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED TEST-REQUEST    
Severity: normal Keywords: PATCH, PMASKED
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://wildfiregames.com/forum/index.php?/topic/28367-amd-ryzen-threadripper-user-read-before-posting/
Whiteboard:
Package list:
Runtime testing required: ---
Deadline: 2020-10-09   
Attachments: Patch to make the game even launch on Ryzen CPUs.
Patch to avoid slowdowns on Ryzen CPUs

Description asdfg 2020-07-28 03:10:10 UTC
Created attachment 651078 [details, diff]
Patch to make the game even launch on Ryzen CPUs.

As you can see on https://wildfiregames.com/forum/index.php?/topic/28367-amd-ryzen-threadripper-user-read-before-posting/, games-strategy/0ad-0.0.23b_alpha can't run on Ryzen and Threadripper CPUs without some patches, which can be found on https://code.wildfiregames.com/file/data/6kx26sfefazlyr4rt2y7/PHID-FILE-4ay3h6ssd7mou2cmp37b/D2353.diff and https://code.wildfiregames.com/file/data/hsogdbcylbgln4pej67f/PHID-FILE-w6lbby5m5ndjv5nqaz4y/D2726.diff (this one is rather large and has a lot of changes that only affect Windows builds; for Linux, only those made to the timer.cpp file are important, according to a dev).

However, the file paths on those patches must be adjusted in order to work on Portage. I'm sending attached two .diff files that I inserted in /etc/portage/games-strategy/0ad to make it run on my 3700X CPU.

As such, you could add a new USE flag for Ryzen CPUs to get these patches implemented on the systems that could use it.
Comment 1 asdfg 2020-07-28 03:10:50 UTC
Created attachment 651080 [details, diff]
Patch to avoid slowdowns on Ryzen CPUs
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-12 20:19:56 UTC
Please retry with 0.0.24_alpha_pre20210116040036-r1.