Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

llvm-pdbutil: An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate #43121

Open Quuxplusone opened 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR44151
Status NEW
Importance P normal
Reported by Christian Kühnel (kuhnel@google.com)
Reported on 2019-11-26 08:11:38 -0800
Last modified on 2019-11-27 02:08:26 -0800
Version unspecified
Hardware PC Windows 2000
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org, rnk@google.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

Windows 10 on amd64 with Visual Studio 2017:

About 20 tests fail during ninja check-all with the same error message: llvm-pdbutil: An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate

CMake flags: cmake.exe ..\llvm -G Ninja -DCMAKE_BUILD_TYPE=Release ^ -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;lld" ^ -D LLVM_ENABLE_ASSERTIONS=ON

The bug can be reproduced in this Windows docker container: https://github.com/google/llvm-premerge-checks/blob/windows_agent/containers/agent-windows/Dockerfile

Quuxplusone commented 4 years ago

I think this has to do with DIA registration. It's very fragile and I forget how to make it work reliably. As a workaround you can pass LLVM_ENABLE_DIA_SDK=OFF to CMake to force it off, and the relevant tests will be disabled.

Quuxplusone commented 4 years ago

@Reid: Yes this workaround makes all tests pass. Thank you for the fast reply!

Should someone still look into fixing it permanently?