lld-link会有不少这种pdb相关的错误。VS2019没问题。
相关的bug跟踪:
https://github.com/llvm/llvm-project/issues/54487
https://developercommunity.visualstudio.com/t/lots-of-lld-link-warnings-about-pdb-with-vs2022-17/1667797
..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /OUT:./nasm.exe /nologo -libpath:..\..\third_party\llvm-build\Release+Asserts\lib\clang\15.0.0\lib\windows "-libpath:C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.31.31103\ATLMFC\lib\x64" "-libpath:C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.31.31103\lib\x64" "-libpath:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "-libpath:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "-libpath:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.19041.0\\um\x64" /PDB:./nasm.exe.pdb @./nasm.exe.rsp
lld-link: error: procedure symbol record for `_FilterSetCurrentException` in d:\a01\_work\43\s\Intermediate\vctools\libvcruntime.nativeproj_520857879\objr\amd64\ehhelpers.obj refers to PDB item index 0x1191 which is not a valid function ID record
lld-link: error: procedure symbol record for `type_info::raw_name` in d:\a01\_work\43\s\Intermediate\vctools\libvcruntime.nativeproj_520857879\objr\amd64\ehhelpers.obj refers to PDB item index 0x117F which is not a valid function ID record
--
FROM 103.159.159.*