Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921324 - games-strategy/0ad fails to build with recent clang
Summary: games-strategy/0ad fails to build with recent clang
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-01-04 03:01 UTC by andrewkomnenos
Modified: 2024-02-18 08:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix building 0ad with Clang (FixClang.diff,539 bytes, patch)
2024-01-04 03:01 UTC, andrewkomnenos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.