Open theres-waldo opened 4 years ago
I think this is essentially the same issue as #521 and will therefore be addressed by #545.
Yes, it's the same issue. That's exactly the reason I can't really use sccache without #545.
@theres-waldo Does this now work for you with #545 resolved?
It does not appear to; I still get a bunch of Werrors, such as:
1:45.38 /home/botond/dev/mozilla/central/mfbt/tests/TestAlgorithm.cpp:34:229: error: code will never be executed [-Werror,-Wunreachable-code]
1:45.38 do { static_assert( mozilla::detail::AssertionConditionType<decltype(!AllOf(begin(arr3), end(arr3), odd))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!AllOf(begin(arr3), end(arr3), odd)))), 0))) { MOZ_ReportAssertionFailure("!AllOf(begin(arr3), end(arr3), odd)", "/home/botond/dev/mozilla/central/mfbt/tests/TestAlgorithm.cpp", 34); do { } while (false); do { *((volatile int*)__null) = 34; ::abort(); } while (false); } } while (false);
1:45.38 ^~~~~~~~~~~~~~~~~~~~~~~~~~
I was just able to complete a warnings-as-errors build sucessfully with sccache-dist and #545, but this wont work out of the box until we have rewrite_includes_only
turned on by default and deploy a new release.
What's needed to turn on rewrite_includes_only
by default? Is it blocked on adding a detection mechanism for #652?
I tried an sccache distributed build today, and the build failed with errors like this:
Removing
ac_add_options --enable-warnings-as-errors
from my.mozconfig
, fixed the problem, but I would prefer to keep that, since automation builds do use that, and not using it locally can result in surprise Try / autoland build failures.