Bug: Perma [tier 2] /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1958:3: error: no template named 'ComPtr'; did you mean 'Microsoft::WRL::ComPtr'?
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2024-11-13 23:08:05+00:00
Resolved: 2024-11-15 04:03:04+00:00

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

---
```
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/BaseProfilerLabels.h:32:
[task 2024-11-13T22:05:19.234Z] 22:05:19  WARNING -  /builds/worker/workspace/obj-build/dist/include/mozilla/BaseProfilerState.h:299:17: warning: 'dllimport' attribute ignored on inline function [-Wignored-attributes]
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -    299 |   [[nodiscard]] MFBT_API static mozilla::Maybe<uint32_t> FeaturesIfActive() {
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                 ^
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/workspace/obj-build/dist/include/mozilla/Types.h:101:24: note: expanded from macro 'MFBT_API'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -    101 | #      define MFBT_API MOZ_IMPORT_API
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                        ^
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/workspace/obj-build/dist/include/mozilla/Types.h:63:39: note: expanded from macro 'MOZ_IMPORT_API'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -     63 | #    define MOZ_IMPORT_API __declspec(dllimport)
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                                       ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1958:3: error: no template named 'ComPtr'; did you mean 'Microsoft::WRL::ComPtr'?
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1958 |   ComPtr<IShellItem> appsFolder;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |   ^~~~~~
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |   Microsoft::WRL::ComPtr
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/fetches/clang/bin/../x86_64-w64-mingw32/include/wrl/client.h:75:36: note: 'Microsoft::WRL::ComPtr' declared here
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -     75 |         template<typename T> class ComPtr {
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                                    ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1969:5: error: no template named 'ComPtr'; did you mean 'Microsoft::WRL::ComPtr'?
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1969 |     ComPtr<IEnumShellItems> shortcutIter;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |     ^~~~~~
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |     Microsoft::WRL::ComPtr
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/fetches/clang/bin/../x86_64-w64-mingw32/include/wrl/client.h:75:36: note: 'Microsoft::WRL::ComPtr' declared here
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -     75 |         template<typename T> class ComPtr {
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                                    ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1976:5: error: no template named 'ComPtr'; did you mean 'Microsoft::WRL::ComPtr'?
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1976 |     ComPtr<IShellItem> shortcut;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |     ^~~~~~
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |     Microsoft::WRL::ComPtr
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/fetches/clang/bin/../x86_64-w64-mingw32/include/wrl/client.h:75:36: note: 'Microsoft::WRL::ComPtr' declared here
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -     75 |         template<typename T> class ComPtr {
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                                    ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1978:27: error: use of undeclared identifier 'shortcut2'; did you mean 'shortcut'?
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1978 |       ComPtr<IShellItem2> shortcut2;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                           ^~~~~~~~~
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                           shortcut
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1976:24: note: 'shortcut' declared here
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1976 |     ComPtr<IShellItem> shortcut;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                        ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1978:26: error: expected ';' after expression
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1978 |       ComPtr<IShellItem2> shortcut2;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                          ^
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                          ;
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1978:7: error: use of undeclared identifier 'ComPtr'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1978 |       ComPtr<IShellItem2> shortcut2;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |       ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1979:25: error: use of undeclared identifier 'shortcut2'; did you mean 'shortcut'?
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1979 |       hr = shortcut.As(&shortcut2);
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                         ^~~~~~~~~
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                         shortcut
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1976:24: note: 'shortcut' declared here
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1976 |     ComPtr<IShellItem> shortcut;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                        ^
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1985:12: error: use of undeclared identifier 'shortcut2'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1985 |       hr = shortcut2->GetString(PKEY_AppUserModel_ID,
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |            ^
[task 2024-11-13T22:05:19.234Z] 22:05:19  WARNING -  /builds/worker/checkouts/gecko/browser/components/shell/nsWindowsShellService.cpp:1978:27: warning: expression result unused [-Wunused-value]
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -   1978 |       ComPtr<IShellItem2> shortcut2;
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -        |                           ^~~~~~~~~
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  4 warnings and 8 errors generated.
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:674: nsWindowsShellService.o] Error 1
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/browser/components/shell'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  gmake[4]: Target 'target-objects' not remade because of errors.
[task 2024-11-13T22:05:19.234Z] 22:05:19    ERROR -  gmake[3]: *** [/builds/worker/checkouts/gecko/config/recurse.mk:72: browser/components/shell/target-objects] Error 2
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/devtools/shared/heapsnapshot'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  devtools/shared/heapsnapshot/AutoMemMap.o
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/devtools/shared/heapsnapshot'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/docshell/base'
[task 2024-11-13T22:05:19.234Z] 22:05:19     INFO -  mkdir -p '.deps/'
```