Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on Windows Fails sometimes with fatal error C1090: PDB API call failed #48070

Open
Anipik opened this issue Feb 9, 2021 · 14 comments
Open
Labels
area-Infrastructure-coreclr Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@Anipik
Copy link
Contributor

Anipik commented Feb 9, 2021

C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.293\bin\Hostx86\x64\cl.exe  /nologo /TP -DCROSS_COMPILE -DDACCESS_COMPILE -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_ARRAYSTUB_AS_IL -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_CORECLR -DFEATURE_CORESYSTEM -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EH_FUNCLETS -DFEATURE_EVENTSOURCE_XPLAT -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_ICASTABLE -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_ISYM_READER -DFEATURE_MANAGED_ETW -DFEATURE_MANAGED_ETW_CHANNELS -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_MULTICASTSTUB_AS_IL -DFEATURE_MULTICOREJIT -DFEATURE_MULTIREG_RETURN -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFTRACING -DFEATURE_PERFTRACING_C_LIB -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_STANDALONE_GC -DFEATURE_STUBS_AS_IL -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DNDEBUG -DNO_FIXED_STACK_LIMIT -DPROFILING_SUPPORTED_DATA -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_LINUX -DTARGET_UNIX -DUNICODE -DUNIX_AMD64_ABI -DUNIX_AMD64_ABI_ITF -DURTBLDENV_FRIENDLY=Retail -DWIN32 -DWIN32_LEAN_AND_MEAN -DWINVER=0x0602 -D_BLD_CLR -D_CRT_SECURE_NO_WARNINGS -D_SECURE_SCL=0 -D_UNICODE -D_WIN32 -D_WIN32_WINNT=0x0602 -Ivm -ID:\workspace\_work\1\s\src\coreclr\vm -ID:\workspace\_work\1\s\src\coreclr\pal\prebuilt\inc -ID:\workspace\_work\1\s\src\coreclr\..\..\artifacts\obj\coreclr -ID:\workspace\_work\1\s\src\coreclr\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc\amd64 -ID:\workspace\_work\1\s\src\coreclr\debug\inc\dump -ID:\workspace\_work\1\s\src\coreclr\md\inc -ID:\workspace\_work\1\s\src\coreclr\classlibnative\bcltype -ID:\workspace\_work\1\s\src\coreclr\classlibnative\cryptography -ID:\workspace\_work\1\s\src\coreclr\classlibnative\inc -Iinc -ID:\workspace\_work\1\s\src\coreclr\hosts\inc -ID:\workspace\_work\1\s\src\coreclr\vm\amd64 -ID:\workspace\_work\1\s\src\coreclr\vm\..\interop\inc -ID:\workspace\_work\1\s\src\native\eventpipe -ID:\workspace\_work\1\s\src\coreclr\vm\eventing\eventpipe /DWIN32 /D_WINDOWS /W3   /GR- /guard:cf /O2 /Ob2 /DNDEBUG -MT   /Ox /nologo /W3 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640 /wd4291 /wd5105 /we4007 /we4013 /we4102 /we4551 /we4700 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /GL /EHa /Zl /YcD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/vm/CMakeFiles/cee_dac.dir/cmake_pch.hxx /FpD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/vm/CMakeFiles/cee_dac.dir/cmake_pch.cxx.pch /FID:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/vm/CMakeFiles/cee_dac.dir/cmake_pch.hxx /showIncludes /Fovm\CMakeFiles\cee_dac.dir\cmake_pch.cxx.obj /Fdvm\CMakeFiles\cee_dac.dir\cee_dac.pdb /FS -c vm\CMakeFiles\cee_dac.dir\cmake_pch.cxx
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_wstring.h(166): fatal error C1090: PDB API call failed, error code '23': (0x000006BA)
[102/477] Building CXX object utilcode\CMakeFiles\utilcodestaticnohost.dir\cmake_pch.cxx.obj
FAILED: utilcode/CMakeFiles/utilcodestaticnohost.dir/cmake_pch.cxx.obj 
C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.293\bin\Hostx86\x64\cl.exe  /nologo /TP -DCROSS_COMPILE -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_ARRAYSTUB_AS_IL -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_CORECLR -DFEATURE_CORESYSTEM -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EH_FUNCLETS -DFEATURE_EVENTSOURCE_XPLAT -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_ICASTABLE -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_ISYM_READER -DFEATURE_MANAGED_ETW -DFEATURE_MANAGED_ETW_CHANNELS -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_MULTICASTSTUB_AS_IL -DFEATURE_MULTICOREJIT -DFEATURE_MULTIREG_RETURN -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFTRACING -DFEATURE_PERFTRACING_C_LIB -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_PROFAPI_ATTACH_DETACH -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_STANDALONE_GC -DFEATURE_STUBS_AS_IL -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DNDEBUG -DNO_FIXED_STACK_LIMIT -DPROFILING_SUPPORTED -DSELF_NO_HOST -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_LINUX -DTARGET_UNIX -DUNICODE -DUNIX_AMD64_ABI -DUNIX_AMD64_ABI_ITF -DURTBLDENV_FRIENDLY=Retail -DWIN32 -DWIN32_LEAN_AND_MEAN -DWINVER=0x0602 -D_BLD_CLR -D_CRTIMP="" -D_CRT_SECURE_NO_WARNINGS -D_SECURE_SCL=0 -D_UNICODE -D_WIN32 -D_WIN32_WINNT=0x0602 -Iutilcode -ID:\workspace\_work\1\s\src\coreclr\utilcode -ID:\workspace\_work\1\s\src\coreclr\pal\prebuilt\inc -ID:\workspace\_work\1\s\src\coreclr\..\..\artifacts\obj\coreclr -ID:\workspace\_work\1\s\src\coreclr\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc\amd64 -ID:\workspace\_work\1\s\src\coreclr\debug\inc\dump -ID:\workspace\_work\1\s\src\coreclr\md\inc -ID:\workspace\_work\1\s\src\coreclr\classlibnative\bcltype -ID:\workspace\_work\1\s\src\coreclr\classlibnative\cryptography -ID:\workspace\_work\1\s\src\coreclr\classlibnative\inc -Iinc -ID:\workspace\_work\1\s\src\coreclr\hosts\inc /DWIN32 /D_WINDOWS /W3   /GR- /guard:cf /O2 /Ob2 /DNDEBUG -MT   /Ox /nologo /W3 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640 /wd4291 /wd5105 /we4007 /we4013 /we4102 /we4551 /we4700 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /GL /EHa /Zl /YcD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/utilcode/CMakeFiles/utilcodestaticnohost.dir/cmake_pch.hxx /FpD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/utilcode/CMakeFiles/utilcodestaticnohost.dir/cmake_pch.cxx.pch /FID:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/utilcode/CMakeFiles/utilcodestaticnohost.dir/cmake_pch.hxx /showIncludes /Foutilcode\CMakeFiles\utilcodestaticnohost.dir\cmake_pch.cxx.obj /Fdutilcode\CMakeFiles\utilcodestaticnohost.dir\utilcodestaticnohost.pdb /FS -c utilcode\CMakeFiles\utilcodestaticnohost.dir\cmake_pch.cxx
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9473): fatal error C1090: PDB API call failed, error code '23': (0x000006BA)
[103/477] Building CXX object md\compiler\CMakeFiles\mdcompiler-dbi.dir\custattr_import.cpp.obj
FAILED: md/compiler/CMakeFiles/mdcompiler-dbi.dir/custattr_import.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.293\bin\Hostx86\x64\cl.exe  /nologo /TP -DCROSS_COMPILE -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_ARRAYSTUB_AS_IL -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_CORECLR -DFEATURE_CORESYSTEM -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EH_FUNCLETS -DFEATURE_EVENTSOURCE_XPLAT -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_ICASTABLE -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_ISYM_READER -DFEATURE_MANAGED_ETW -DFEATURE_MANAGED_ETW_CHANNELS -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_METADATA_CUSTOM_DATA_SOURCE -DFEATURE_METADATA_DEBUGGEE_DATA_SOURCE -DFEATURE_METADATA_EMIT -DFEATURE_METADATA_EMIT_IN_DEBUGGER -DFEATURE_METADATA_INTERNAL_APIS -DFEATURE_METADATA_LOAD_TRUSTED_IMAGES -DFEATURE_METADATA_RELEASE_MEMORY_ON_REOPEN -DFEATURE_MULTICASTSTUB_AS_IL -DFEATURE_MULTICOREJIT -DFEATURE_MULTIREG_RETURN -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFTRACING -DFEATURE_PERFTRACING_C_LIB -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_PROFAPI_ATTACH_DETACH -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_STANDALONE_GC -DFEATURE_STUBS_AS_IL -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DNDEBUG -DNO_FIXED_STACK_LIMIT -DPROFILING_SUPPORTED -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_LINUX -DTARGET_UNIX -DUNICODE -DUNIX_AMD64_ABI -DUNIX_AMD64_ABI_ITF -DURTBLDENV_FRIENDLY=Retail -DWIN32 -DWIN32_LEAN_AND_MEAN -DWINVER=0x0602 -D_BLD_CLR -D_CRT_SECURE_NO_WARNINGS -D_SECURE_SCL=0 -D_UNICODE -D_WIN32 -D_WIN32_WINNT=0x0602 -ID:\workspace\_work\1\s\src\coreclr\pal\prebuilt\inc -ID:\workspace\_work\1\s\src\coreclr\..\..\artifacts\obj\coreclr -ID:\workspace\_work\1\s\src\coreclr\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc\amd64 -ID:\workspace\_work\1\s\src\coreclr\debug\inc\dump -ID:\workspace\_work\1\s\src\coreclr\md\inc -ID:\workspace\_work\1\s\src\coreclr\classlibnative\bcltype -ID:\workspace\_work\1\s\src\coreclr\classlibnative\cryptography -ID:\workspace\_work\1\s\src\coreclr\classlibnative\inc -Iinc -ID:\workspace\_work\1\s\src\coreclr\hosts\inc /DWIN32 /D_WINDOWS /W3   /GR- /guard:cf /O2 /Ob2 /DNDEBUG -MT   /Ox /nologo /W3 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640 /wd4291 /wd5105 /we4007 /we4013 /we4102 /we4551 /we4700 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /GL /EHa /Zl /YuD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/md/compiler/CMakeFiles/mdcompiler-dbi.dir/cmake_pch.hxx /FpD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/md/compiler/CMakeFiles/mdcompiler-dbi.dir/cmake_pch.cxx.pch /FID:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/md/compiler/CMakeFiles/mdcompiler-dbi.dir/cmake_pch.hxx /showIncludes /Fomd\compiler\CMakeFiles\mdcompiler-dbi.dir\custattr_import.cpp.obj /Fdmd\compiler\CMakeFiles\mdcompiler-dbi.dir\mdcompiler-dbi.pdb /FS -c D:\workspace\_work\1\s\src\coreclr\md\compiler\custattr_import.cpp
D:\workspace\_work\1\s\src\coreclr\md\compiler\custattr_import.cpp(282): fatal error C1090: PDB API call failed, error code '23': (0x000006BA)
[104/477] Building CXX object utilcode\CMakeFiles\utilcode_dac.dir\cmake_pch.cxx.obj
FAILED: utilcode/CMakeFiles/utilcode_dac.dir/cmake_pch.cxx.obj 
C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.293\bin\Hostx86\x64\cl.exe  /nologo /TP -DCROSS_COMPILE -DDACCESS_COMPILE -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_ARRAYSTUB_AS_IL -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_CORECLR -DFEATURE_CORESYSTEM -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EH_FUNCLETS -DFEATURE_EVENTSOURCE_XPLAT -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_ICASTABLE -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_ISYM_READER -DFEATURE_MANAGED_ETW -DFEATURE_MANAGED_ETW_CHANNELS -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_MULTICASTSTUB_AS_IL -DFEATURE_MULTICOREJIT -DFEATURE_MULTIREG_RETURN -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFTRACING -DFEATURE_PERFTRACING_C_LIB -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_STANDALONE_GC -DFEATURE_STUBS_AS_IL -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DNDEBUG -DNO_FIXED_STACK_LIMIT -DPROFILING_SUPPORTED_DATA -DSELF_NO_HOST -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_LINUX -DTARGET_UNIX -DUNICODE -DUNIX_AMD64_ABI -DUNIX_AMD64_ABI_ITF -DURTBLDENV_FRIENDLY=Retail -DWIN32 -DWIN32_LEAN_AND_MEAN -DWINVER=0x0602 -D_BLD_CLR -D_CRT_SECURE_NO_WARNINGS -D_SECURE_SCL=0 -D_UNICODE -D_WIN32 -D_WIN32_WINNT=0x0602 -Iutilcode -ID:\workspace\_work\1\s\src\coreclr\utilcode -ID:\workspace\_work\1\s\src\coreclr\pal\prebuilt\inc -ID:\workspace\_work\1\s\src\coreclr\..\..\artifacts\obj\coreclr -ID:\workspace\_work\1\s\src\coreclr\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc\amd64 -ID:\workspace\_work\1\s\src\coreclr\debug\inc\dump -ID:\workspace\_work\1\s\src\coreclr\md\inc -ID:\workspace\_work\1\s\src\coreclr\classlibnative\bcltype -ID:\workspace\_work\1\s\src\coreclr\classlibnative\cryptography -ID:\workspace\_work\1\s\src\coreclr\classlibnative\inc -Iinc -ID:\workspace\_work\1\s\src\coreclr\hosts\inc /DWIN32 /D_WINDOWS /W3   /GR- /guard:cf /O2 /Ob2 /DNDEBUG -MT   /Ox /nologo /W3 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640 /wd4291 /wd5105 /we4007 /we4013 /we4102 /we4551 /we4700 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /GL /EHa /Zl /YcD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/utilcode/CMakeFiles/utilcode_dac.dir/cmake_pch.hxx /FpD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/utilcode/CMakeFiles/utilcode_dac.dir/cmake_pch.cxx.pch /FID:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/utilcode/CMakeFiles/utilcode_dac.dir/cmake_pch.hxx /showIncludes /Foutilcode\CMakeFiles\utilcode_dac.dir\cmake_pch.cxx.obj /Fdutilcode\CMakeFiles\utilcode_dac.dir\utilcode_dac.pdb /FS -c utilcode\CMakeFiles\utilcode_dac.dir\cmake_pch.cxx
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(7588): fatal error C1090: PDB API call failed, error code '23': (0x000006BA)
[105/477] Building CXX object md\compiler\CMakeFiles\mdcompiler-dbi.dir\custattr_emit.cpp.obj
FAILED: md/compiler/CMakeFiles/mdcompiler-dbi.dir/custattr_emit.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.293\bin\Hostx86\x64\cl.exe  /nologo /TP -DCROSS_COMPILE -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_ARRAYSTUB_AS_IL -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_CORECLR -DFEATURE_CORESYSTEM -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EH_FUNCLETS -DFEATURE_EVENTSOURCE_XPLAT -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_ICASTABLE -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_ISYM_READER -DFEATURE_MANAGED_ETW -DFEATURE_MANAGED_ETW_CHANNELS -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_METADATA_CUSTOM_DATA_SOURCE -DFEATURE_METADATA_DEBUGGEE_DATA_SOURCE -DFEATURE_METADATA_EMIT -DFEATURE_METADATA_EMIT_IN_DEBUGGER -DFEATURE_METADATA_INTERNAL_APIS -DFEATURE_METADATA_LOAD_TRUSTED_IMAGES -DFEATURE_METADATA_RELEASE_MEMORY_ON_REOPEN -DFEATURE_MULTICASTSTUB_AS_IL -DFEATURE_MULTICOREJIT -DFEATURE_MULTIREG_RETURN -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFTRACING -DFEATURE_PERFTRACING_C_LIB -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_PROFAPI_ATTACH_DETACH -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_STANDALONE_GC -DFEATURE_STUBS_AS_IL -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DNDEBUG -DNO_FIXED_STACK_LIMIT -DPROFILING_SUPPORTED -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_LINUX -DTARGET_UNIX -DUNICODE -DUNIX_AMD64_ABI -DUNIX_AMD64_ABI_ITF -DURTBLDENV_FRIENDLY=Retail -DWIN32 -DWIN32_LEAN_AND_MEAN -DWINVER=0x0602 -D_BLD_CLR -D_CRT_SECURE_NO_WARNINGS -D_SECURE_SCL=0 -D_UNICODE -D_WIN32 -D_WIN32_WINNT=0x0602 -ID:\workspace\_work\1\s\src\coreclr\pal\prebuilt\inc -ID:\workspace\_work\1\s\src\coreclr\..\..\artifacts\obj\coreclr -ID:\workspace\_work\1\s\src\coreclr\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc -ID:\workspace\_work\1\s\src\coreclr\debug\inc\amd64 -ID:\workspace\_work\1\s\src\coreclr\debug\inc\dump -ID:\workspace\_work\1\s\src\coreclr\md\inc -ID:\workspace\_work\1\s\src\coreclr\classlibnative\bcltype -ID:\workspace\_work\1\s\src\coreclr\classlibnative\cryptography -ID:\workspace\_work\1\s\src\coreclr\classlibnative\inc -Iinc -ID:\workspace\_work\1\s\src\coreclr\hosts\inc /DWIN32 /D_WINDOWS /W3   /GR- /guard:cf /O2 /Ob2 /DNDEBUG -MT   /Ox /nologo /W3 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640 /wd4291 /wd5105 /we4007 /we4013 /we4102 /we4551 /we4700 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /GL /EHa /Zl /YuD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/md/compiler/CMakeFiles/mdcompiler-dbi.dir/cmake_pch.hxx /FpD:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/md/compiler/CMakeFiles/mdcompiler-dbi.dir/cmake_pch.cxx.pch /FID:/workspace/_work/1/s/artifacts/nmakeobj/alpine.x64.Release/crossgen/md/compiler/CMakeFiles/mdcompiler-dbi.dir/cmake_pch.hxx /showIncludes /Fomd\compiler\CMakeFiles\mdcompiler-dbi.dir\custattr_emit.cpp.obj /Fdmd\compiler\CMakeFiles\mdcompiler-dbi.dir\mdcompiler-dbi.pdb /FS -c D:\workspace\_work\1\s\src\coreclr\md\compiler\custattr_emit.cpp
D:\workspace\_work\1\s\src\coreclr\md\compiler\cus

build https://dev.azure.com/dnceng/internal/_build/results?buildId=984686&view=logs&j=128f4634-3e62-52f1-6764-cb4c2b8330d4&t=32fccdd3-9e64-5af0-1f0d-f65712c6c51a

{
  "ErrorMessage": "fatal error C1090: PDB API call failed, error code '23'",
  "BuildRetry": true
}

cc @dotnet/runtime-infrastructure

Report

Build Definition Step Name Console log Pull Request
877291 dotnet/runtime Build product Log #109481
873703 dotnet/runtime Build product Log #109298
872062 dotnet/runtime Build product Log #109918
868998 dotnet/runtime Build product Log #109790
858699 dotnet/runtime Build product Log #109458
857824 dotnet/runtime Build product Log #107283

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 3 6

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Feb 9, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@hoyosjs
Copy link
Member

hoyosjs commented Feb 9, 2021

Looks like this can get caused by locks on the file caused by parallel compilation, antiviruses, and parallel builds: https://developercommunity.visualstudio.com/content/problem/552999/fatal-error-c1090-pdb-api-call-failed-error-code-3.html

There was a workaround in a Jenkins forum should we see this again: https://issues.jenkins.io/browse/JENKINS-9104

@ericstj
Copy link
Member

ericstj commented Feb 9, 2021

Be careful about assuming we should workaround such issues. If they appear regularly it's more likely we have a concurrency issue in the build, or a bad practice (eg: open/re-write in place) in a build process.

@ViktorHofer ViktorHofer removed the untriaged New issue has not been triaged by the area owner label Feb 23, 2021
@ViktorHofer ViktorHofer added this to the Future milestone Feb 23, 2021
@ericstj
Copy link
Member

ericstj commented Apr 2, 2021

Just hit this again: https://dev.azure.com/dnceng/public/_build/results?buildId=1070066&view=logs&j=e93c566c-b6be-5acb-6fc2-de2972d01fec&t=2dc174be-b57a-56b6-9566-e621f39fb1f6&l=3009

    block.cpp
  D:\workspace\_work\1\s\src\coreclr\jit\emit.cpp(8624,1): fatal error C1090: PDB API call failed, error code '23': (0x000006BA) [D:\workspace\_work\1\s\artifacts\obj\coreclr\windows.x86.Debug\jit\clrjit_win_x86_x86.vcxproj]
    hashbv.cpp

It's at a different point in the build.

@hoyosjs hoyosjs changed the title Build Cross OS Linux-musl DAC for Windows Failed Build on Windows Fails sometimes with fatal error C1090: PDB API call failed Apr 2, 2021
@hoyosjs
Copy link
Member

hoyosjs commented Apr 2, 2021

Looks like they got more hits: https://developercommunity.visualstudio.com/t/C1090-PDB-API-call-failed-error-code-2/48897#T-ND770588 and they are starting to see this data becoming hotter in Watson. I don't know if we have the buildpool configured for heapdumps (@dnceng), but maybe setting failfast on our builds could help us get dumps if they could be useful for the MSVC team.

@jeffhandley
Copy link
Member

I just hit this on #52236. https://dev.azure.com/dnceng/public/_build/results?buildId=1122253&view=logs&jobId=16bd8e89-36f9-5867-227e-26683d5e0a13&j=16bd8e89-36f9-5867-227e-26683d5e0a13&t=d2c0465b-73ac-55f7-de66-3542be19c102

2021-05-05T00:23:07.5681271Z     Finished generating code
2021-05-05T00:23:07.6306732Z     tocfile.cpp
2021-05-05T00:23:07.6930869Z   D:\workspace\_work\1\s\src\coreclr\ToolBox\superpmi\superpmi-shared\spmiutil.cpp(341,1): fatal error C1090: PDB API call failed, error code '23': (0x00000006) [D:\workspace\_work\1\s\artifacts\obj\coreclr\windows.x86.Release\ide\ToolBox\superpmi\superpmi-shim-collector\superpmi-shim-collector.vcxproj]
2021-05-05T00:23:07.7556746Z   D:\workspace\_work\1\s\src\coreclr\ToolBox\superpmi\superpmi-shared\methodcontextreader.cpp(581,1): fatal error C1090: PDB API call failed, error code '23': (0x00000006) [D:\workspace\_work\1\s\artifacts\obj\coreclr\windows.x86.Release\ide\ToolBox\superpmi\superpmi-shim-collector\superpmi-shim-collector.vcxproj]
2021-05-05T00:23:07.8189417Z     typeutils.cpp
2021-05-05T00:23:07.8806507Z     spmidumphelper.cpp
2021-05-05T00:23:07.9745654Z   D:\workspace\_work\1\s\src\coreclr\ToolBox\superpmi\superpmi-shared\methodcontext.cpp(7113,1): fatal error C1090: PDB API call failed, error code '23': (0x00000006) [D:\workspace\_work\1\s\artifacts\obj\coreclr\windows.x86.Release\ide\ToolBox\superpmi\superpmi-shim-collector\superpmi-shim-collector.vcxproj]
2021-05-05T00:23:08.0215020Z     ildasm.vcxproj -> D:\workspace\_work\1\s\artifacts\obj\coreclr\windows.x86.Release\ide\ildasm\exe\Release\ildasm.exe
2021-05-05T00:23:08.0839181Z        Creating library D:/workspace/_work/1/s/artifacts/obj/coreclr/windows.x86.Release/ide/jit/Release/clrjit_unix_arm_x86.lib and object D:/workspace/_work/1/s/artifacts/obj/coreclr/windows.x86.Release/ide/jit/Release/clrjit_unix_arm_x86.exp
2021-05-05T00:23:08.1777655Z     Generating code
2021-05-05T00:23:08.2727442Z        Creating library D:/workspace/_work/1/s/artifacts/obj/coreclr/windows.x86.Release/ide/dlls/dbgshim/Release/dbgshim.lib and object D:/workspace/_work/1/s/artifacts/obj/coreclr/windows.x86.Release/ide/dlls/dbgshim/Release/dbgshim.exp
2021-05-05T00:23:08.3653532Z   D:\workspace\_work\1\s\src\coreclr\ToolBox\superpmi\superpmi-shared\methodcontext.cpp(7113,1): fatal error C1090: PDB API call failed, error code '23': (0x000006BA) [D:\workspace\_work\1\s\artifacts\obj\coreclr\windows.x86.Release\ide\ToolBox\superpmi\superpmi\superpmi.vcxproj]

@hoyosjs
Copy link
Member

hoyosjs commented May 5, 2021

Thanks @jeffhandley. I've gotten two dumps (one from your PR and one from Maoni's PR). After looking, this doesn't seem to be an issue on our infrastructure and I've routed it to the C++ team for help.

@jkoritzinsky
Copy link
Member

We've started hitting this on official builds: https://dev.azure.com/dnceng/internal/_build/results?buildId=1223231&view=results

@danmoseley
Copy link
Member

@hoyosjs did you hear back from C++?

@hoyosjs
Copy link
Member

hoyosjs commented Feb 15, 2022

Yeah, I talked to YongKang and we could only tell that it was corruption on an object's vtable. The suggestion was to use TTT to pinpoint where the corruption happened, but this isn't particularly easy to achieve on the build machines (slows things, files are large, and our builds are already quite bulky).

@mangod9
Copy link
Member

mangod9 commented Mar 9, 2022

@hoyosjs
Copy link
Member

hoyosjs commented Mar 9, 2022

Yes

@jkotas jkotas added Known Build Error Use this to report build issues in the .NET Helix tab and removed blocking-official-build labels Sep 24, 2022
@build-analysis build-analysis bot removed this from the Future milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the Future milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-coreclr Known Build Error Use this to report build issues in the .NET Helix tab
Projects
Status: No status
Development

No branches or pull requests