Bug: Perma [tier 2] /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/comdef.h:131:5: error: call to deleted function 'FormatMessage'
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2022-04-26 19:53:40+00:00
Resolved: 2022-05-02 06:29:42+00:00

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

---
```
[task 2022-04-26T19:47:57.430Z] 19:47:57  WARNING -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:49:10: warning: redeclaration of 'PropVariantToString' should not add 'dllimport' attribute [-Wdll-attribute-on-redeclaration]
[task 2022-04-26T19:47:57.430Z] 19:47:57     INFO -  PSSTDAPI PropVariantToString(REFPROPVARIANT propvar, PWSTR psz, UINT cch);
[task 2022-04-26T19:47:57.431Z] 19:47:57     INFO -           ^
[task 2022-04-26T19:47:57.431Z] 19:47:57     INFO -  /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/propvarutil.h:93:16: note: previous declaration is here
[task 2022-04-26T19:47:57.431Z] 19:47:57     INFO -  HRESULT WINAPI PropVariantToString(REFPROPVARIANT propvarIn, PWSTR ret, UINT cch);
[task 2022-04-26T19:47:57.431Z] 19:47:57     INFO -                 ^
[task 2022-04-26T19:47:57.432Z] 19:47:57     INFO -  In file included from /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:55:
[task 2022-04-26T19:47:57.432Z] 19:47:57     INFO -  In file included from /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/comutil.h:1217:
[task 2022-04-26T19:47:57.432Z] 19:47:57    ERROR -  /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/comdef.h:131:5: error: call to deleted function 'FormatMessage'
[task 2022-04-26T19:47:57.432Z] 19:47:57     INFO -      FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,NULL,m_hresult,MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),(LPTSTR)&m_pszMsg,0,NULL);
[task 2022-04-26T19:47:57.433Z] 19:47:57     INFO -      ^~~~~~~~~~~~~
[task 2022-04-26T19:47:57.433Z] 19:47:57     INFO -  /builds/worker/workspace/obj-build/dist/stl_wrappers/windows.h:1047:1: note: candidate function has been explicitly deleted
[task 2022-04-26T19:47:57.433Z] 19:47:57     INFO -  FormatMessage(DWORD a0, LPCVOID a1, DWORD a2, DWORD a3, LPTSTR a4, DWORD a5, va_list* a6)
[task 2022-04-26T19:47:57.433Z] 19:47:57     INFO -  ^
[task 2022-04-26T19:47:57.434Z] 19:47:57  WARNING -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:806:39: warning: format specifies type 'wchar_t *' but the argument has type 'typename raw_type<char16_t, int>::type' (aka 'char16ptr_t') [-Wformat]
[task 2022-04-26T19:47:57.434Z] 19:47:57     INFO -      arguments.AppendPrintf("\"%S\" ", arg.get());
[task 2022-04-26T19:47:57.434Z] 19:47:57     INFO -                                ~~      ^~~~~~~~~
[task 2022-04-26T19:47:57.435Z] 19:47:57  WARNING -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1273:21: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
[task 2022-04-26T19:47:57.435Z] 19:47:57     INFO -    for (int i = 0; i < ArrayLength(shortcutCSIDLs); ++i) {
[task 2022-04-26T19:47:57.435Z] 19:47:57     INFO -                    ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2022-04-26T19:47:57.436Z] 19:47:57  WARNING -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1540:21: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
[task 2022-04-26T19:47:57.436Z] 19:47:57     INFO -    for (int i = 0; i < ArrayLength(folders); ++i) {
[task 2022-04-26T19:47:57.436Z] 19:47:57     INFO -                    ~ ^ ~~~~~~~~~~~~~~~~~~~~
[task 2022-04-26T19:47:57.436Z] 19:47:57     INFO -  4 warnings and 1 error generated.
[task 2022-04-26T19:47:57.437Z] 19:47:57    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:658: nsWindowsShellService.o] Error 1
[task 2022-04-26T19:47:57.437Z] 19:47:57     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/browser/components/shell'
[task 2022-04-26T19:47:57.437Z] 19:47:57    ERROR -  gmake[3]: *** [/builds/worker/checkouts/gecko/config/recurse.mk:72: browser/components/shell/target-objects] Error 2
[task 2022-04-26T19:47:57.437Z] 19:47:57     INFO -  gmake[3]: *** Waiting for unfinished jobs....
[task 2022-04-26T19:47:57.438Z] 19:47:57     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/wasm2c_sandbox_compiler'
[task 2022-04-26T19:47:57.438Z] 19:47:57     INFO -  config/external/wasm2c_sandbox_compiler/host_error-formatter.o
[task 2022-04-26T19:47:57.438Z] 19:47:57     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/wasm2c_sandbox_compiler'
```