Bug: Perma [tier 2] Windows MinGW all /builds/worker/checkouts/gecko/browser/components/shell/Windows11LimitedAccessFeatures.cpp:367:10: error: use of undeclared identifier 'Err'; did you mean 'mozilla::Err'?
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-08-08 04:16:00+00:00
Resolved: 2024-08-13 10:43:05+00:00

**Filed by:** tszentpeteri [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=469666743&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/HvoVPtIITZitGT63GquDYw/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2024-08-08T03:03:44.712Z] 03:03:44     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/browser/components/shell'
[task 2024-08-08T03:03:44.713Z] 03:03:44     INFO -  /builds/worker/fetches/sccache/sccache /builds/worker/fetches/clang/bin/x86_64-w64-mingw32-clang++ -o Windows11LimitedAccessFeatures.o -c  -I/builds/worker/workspace/obj-build/dist/stl_wrappers -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -ftrivial-auto-var-init=pattern -DDEBUG=1 '-DMOZ_APP_DISPLAYNAME="Firefox Nightly"' '-DMOZ_APP_NAME="firefox"' '-DMOZ_APP_VERSION="131.0a1"' '-DMOZ_DEFAULT_BROWSER_AGENT="None"' -DWINAPI_NO_BUNDLED_LIBRARIES -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DMOZ_SUPPORT_LEAKCHECKING -DSTATIC_EXPORTABLE_JS_API -I/builds/worker/checkouts/gecko/browser/components/shell -I/builds/worker/workspace/obj-build/browser/components/shell -I/builds/worker/checkouts/gecko/xpcom/build -I/builds/worker/checkouts/gecko/other-licenses/nsis/Contrib/CityHash/cityhash -I/builds/worker/checkouts/gecko/toolkit/xre -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -Wno-incompatible-ms-struct -fno-rtti -fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno -fno-exceptions -D_HAS_EXCEPTIONS=0 -fms-extensions -fcrash-diagnostics-dir=/builds/worker/artifacts -include _mingw.h -g -gcodeview -O2 -fno-omit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wenum-compare-conditional -Wenum-float-conversion -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-this-capture -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wno-unknown-pragmas -Wno-unused-function -Wno-conversion-null -Wno-switch -Wno-enum-compare -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/Windows11LimitedAccessFeatures.o.pp   /builds/worker/checkouts/gecko/browser/components/shell/Windows11LimitedAccessFeatures.cpp
[task 2024-08-08T03:03:44.713Z] 03:03:44    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/Windows11LimitedAccessFeatures.cpp:367:10: error: use of undeclared identifier 'Err'; did you mean 'mozilla::Err'?
[task 2024-08-08T03:03:44.713Z] 03:03:44     INFO -    367 |   return Err(NS_ERROR_NOT_IMPLEMENTED);
[task 2024-08-08T03:03:44.713Z] 03:03:44     INFO -        |          ^~~
[task 2024-08-08T03:03:44.713Z] 03:03:44     INFO -        |          mozilla::Err
[task 2024-08-08T03:03:44.713Z] 03:03:44     INFO -  /builds/worker/workspace/obj-build/dist/include/mozilla/Result.h:876:23: note: 'mozilla::Err' declared here
[task 2024-08-08T03:03:44.714Z] 03:03:44     INFO -    876 | inline constexpr auto Err(E&& aErrorValue) {
[task 2024-08-08T03:03:44.714Z] 03:03:44     INFO -        |                       ^
[task 2024-08-08T03:03:44.714Z] 03:03:44     INFO -  1 error generated.
[task 2024-08-08T03:03:44.714Z] 03:03:44    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:675: Windows11LimitedAccessFeatures.o] Error 1
[task 2024-08-08T03:03:44.714Z] 03:03:44     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/browser/components/shell'
[task 2024-08-08T03:03:44.714Z] 03:03:44     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libopus'
```