<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58692>58692</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Failed to link with latest Windows SDK error MSB6006: "llvm-lib.exe" exited with code 1
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zhenkas
</td>
</tr>
</table>
<pre>
I am getting linkage error on all project types (libs and dlls) in 64 bit compilation
```
1> C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ntdll.lib: truncated or malformed archive (long name offset characters after the '/' are not all decimal numbers: '<XFGHASHMAP>/' for archive member header at offset 262184)
1> D:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(1542,5): error MSB6006: "llvm-lib.exe" exited with code 1.
```
If I change SDK version to 10.0.19041.0 then it works.
clang version
```
clang --version
clang version 14.0.5
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\bin
```
msbuild version
```
msbuild --version
MSBuild version 17.3.1+2badb37d1 for .NET Framework
17.3.1.41501
```
Windows SDK used
![image](https://user-images.githubusercontent.com/858377/198872970-d7bae8ab-087a-4340-bf4f-c09391b03800.png)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVF2P4yYU_TXOC7KFwZ8Pfsgkk-5ou9VKM9r2FQx26GCwACfZ_vpenMzuTBX1oaoUQTDnfpx7z4Vb8b17QmxCowxBmRFpZV7ZKJF0zjpkDWJao9nZP2UfUPg-S48S0mjFPWJGIKG1T0iLlEFVgbgKqLfTrDQLypoE7xO8va0Vvv3WY57QR4R2Cd0m5e6rs6ODHA5KX91fmgqcws3vygh79uizCh6OOYYFYq9_M5wRUpE8ix-XCZZLVcBqAiSVRRTdouAW07MgBQI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