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

Bug 921324

Summary: games-strategy/0ad fails to build with recent clang
Product: Gentoo Linux Reporter: andrewkomnenos
Component: Current packagesAssignee: Gentoo Games <games>
Status: UNCONFIRMED ---    
Severity: trivial CC: jnerin, jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix building 0ad with Clang

Description andrewkomnenos 2024-01-04 03:01:50 UTC
Created attachment 881440 [details, diff]
Patch to fix building 0ad with Clang

Hello,

clang has dropped support for the flag "-fexperimental-new-pass-manager," which 0AD's build process automatically applies when building with clang. This means the build fails with recent clang versions (from my build log: clang-16: error: unknown argument: '-fexperimental-new-pass-manager'). I'm not sure when exactly the flag was removed, but the formerly "experimental" pass manager has been the default since version 13, so there should be no difference from the expected behavior now by removing the flag.


I've attached a patch which fixes the problem. It's very trivial, so I don't think copyright is needed.  

Best.