Description
unhappy-ending
2022-06-21 07:11:48 UTC
Created attachment 786545 [details]
Clang building alsa-lib and passing tests using single threaded LTO
No problems with single threaded (-flto=full) LTO using Clang
Created attachment 786548 [details]
Clang fails to build alsa-lib when using mutlithreaded LTO
Yet we can see once you start multithreading by breaking the code into chunks during LTO is when we have complaints about symbols, since Clang doesn't see everything the same as it does when it's a single code chunk running in a single thread.
I really don't want to do this. The whole reason I filtered it is because it's *dangerous*. If it fails with partitioning, it means it's bad code, and it needs to be fixed. Tests passing doesn't mean that it's safe. I understand it builds and appears to work, but: 1. there's no guarantee it'll *continue* to work; 2. we've been given a huge warning sign. Ignoring it is foolish. Working around it isn't great. If someone cares deeply about this, they should fix the upstream issue. |