Update to Win 11 24H2, Builds get STATUS_ACCESS_VIOLATION return code from rc.exe and cl.exe

I just installed Windows 11 24H2 yesterday.

And now the project and engine build from source code get STATUS_ACCESS_VIOLATION

I roll back VS2022 to 17.12.8 and also get this error

Does anyone know how to solve this problem?

Below is part of build logs

12>[85/6324] Compile [x64] (0:01.09 at +0:03)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[86/6324] Resource Default.rc2 (0:00.68 at +0:03)
12>
12>Error executing C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[87/6324] Compile [x64] (0:01.32 at +0:03)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[88/6324] Compile [x64] (0:01.28 at +0:03)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[89/6324] Resource Default.rc2 (0:00.60 at +0:03)
12>
12>Error executing C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[90/6324] Compile [x64] (0:00.45 at +0:04)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[91/6324] Compile [x64] (0:00.50 at +0:03)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[92/6324] Compile [x64] (0:00.73 at +0:03)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[93/6324] Compile [x64] (0:00.32 at +0:04)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
12>[94/6324] Compile [x64] (0:00.81 at +0:03)
12>Error executing D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)

I have no idea to figure out this problem.

So I decide to downgrade to 23H2 and everything is going fine.

Maybe this issue will be resolve in the future.

I’m having the same issue. Not sure of how to fix it. I get the same issue compiling a project that previously worked on latest 5.5, and the issue is also present on 5.6 Preview 1.

Having a similar issue over here, when trying to build our project. Also happened after the latest Windows update. Following