# Linux editor build fails: SetUtilities.h does not include UEOps.h (clang two-phase lookup)

- **Status:** Still affected at upstream head `0c2cc988` (checked 25 Nov 2026; also `5f910d65` on 24 Nov). One-line engine patch verified 24 Nov 2026. Reported to Epic: PR https://github.com/EpicGames/UnrealEngine/pull/15457 (visible only to GitHub accounts linked to an Epic Games account) (opened 25 Nov 2026, open).
- **Engine:** ue6-main `61e2877e` (23 Nov 2026), Linux (Arch-based Omarchy, kernel 7.2), toolchain from Setup.sh `native-linux-v27_clang-23.1.5-rockylinux8`
- **Context:** standalone UE6 engine source checkout built on Linux (not UEFN); Verse dialect/runtime: none, the failing translation unit is C++ in an engine plugin
- **Prerequisites:** engine source at `61e2877e` with the Setup.sh toolchain, and the editor target `Build.sh UnrealEditor Linux Development`

## Symptom

9162 of 9170 actions pass; one TU fails:

- `Module.TEDSVPathReg.cpp` (Engine/Plugins/EntityFramework/Source/TedsVersePathRegistry/Private/TedsVersePathSyncImpl.cpp:418, `FunctionHandles.Add(Handle)` on a `TSet<UE::VersePathRegistry::FPathHandle>`)
- Error: `SetUtilities.h:69:12: error: call to function 'operator==' that is neither visible in the template definition nor found by argument-dependent lookup`
- note: `'operator==' should be declared prior to the call site or in namespace 'UE::VersePathRegistry'` (UEOps.h:190)

## Smallest example / reproduction

Build the editor target from the engine checkout at `61e2877e` on Linux: `Build.sh UnrealEditor Linux Development`. 9162 of 9170 actions pass and the TU above fails.

## Solution

Add one line, `#include "Misc/UEOps.h"`, in SetUtilities.h, then rebuild. The patch is `engine-patches/0001-SetUtilities-include-UEOps.patch` in this repository. The original findings record its path as `patches/0001-SetUtilities-include-UEOps.patch`.

## Why it works

`FPathHandle` (namespace `UE::VersePathRegistry`) gets `==` only through the global `UEOps.h` template via `UEOpEquals`. `DefaultKeyFuncs::Matches` in `SetUtilities.h` compares with `==` but does not include `Misc/UEOps.h`, and in this TU's PCH chain (CoreSharedPCH -> AsyncWork -> Compression -> Map -> Set -> ScriptSparseSet -> SetUtilities) the template is defined before UEOps.h is seen. ADL cannot find a global operator for a namespaced type. MSVC accepts it; clang does not. So any namespaced UEOps type used as a TSet/TMap key can break on Linux/Mac depending on include order.

The fix matches Array.h, ArrayView.h, IndirectArray.h, SharedPointer.h and UniqueObj.h, which all include UEOps.h.

## Verified

- **Evidence level:** compiled.
- **How:** With the patch, `Build.sh UnrealEditor Linux Development` -> builds clean (rc=0, 0 errors, 87 min at 8 actions), ShaderCompileWorker too.
- **Date / by:** 2026-11-24, not recorded.

## Limits and assumptions

Shown only for the `UnrealEditor Linux Development` target and ShaderCompileWorker, on the test machine (32 threads, 123 GB RAM) at 8 actions. Evidence is for clang on Linux. The remarks that MSVC accepts the code and that the same break can happen on Mac or with other namespaced UEOps types are reasoning from the include chain, not builds recorded here (INFERRED). The patch was submitted upstream as PR 15457 on 25 Nov 2026 (owner approved).
