llvm / llvm/llvm-project

Flaky link-time Windows failures

Open
#177,477 5 comments 0 reactions 1 assignee Claimed by @boomanaiden154 View on GitHub
github:workflow infrastructure
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

See examples on e.g., https://github.com/llvm/llvm-project/pull/177454

```
FAILED: [code=4294967295] unittests/Transforms/Utils/UtilsTests.exe
cmd.exe /C "cd . && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_exe --intdir=unittests\Transforms\Utils\CMakeFiles\UtilsTests.dir --rc="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests -- C:\clang\clang-msvc\bin\lld-link.exe /nologo @CMakeFiles\UtilsTests.rsp /out:unittests\Transforms\Utils\UtilsTests.exe /implib:unittests\Transforms\Utils\UtilsTests.lib /pdb:unittests\Transforms\Utils\UtilsTests.pdb /version:0.0 /MANIFEST:NO /STACK:10000000 /INCREMENTAL:NO /subsystem:console && cd ."
LINK: command "C:\clang\clang-msvc\bin\lld-link.exe /nologo @CMakeFiles\UtilsTests.rsp /out:unittests\Transforms\Utils\UtilsTests.exe /implib:unittests\Transforms\Utils\UtilsTests.lib /pdb:unittests\Transforms\Utils\UtilsTests.pdb /version:0.0 /MANIFEST:NO /STACK:10000000 /INCREMENTAL:NO /subsystem:console" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: public: class llvm::PreservedAnalyses __cdecl llvm::HipStdParAllocationInterpositionPass::run(class llvm::Module &, class llvm::AnalysisManager &)

>>> referenced by LLVMPasses.lib(PassBuilder.cpp.obj):(public: virtual class llvm::PreservedAnalyses __cdecl llvm::detail::PassModel>::run(class llvm::Module &, class llvm::AnalysisManager &))

lld-link: error: undefined symbol: public: class llvm::PreservedAnalyses __cdecl llvm::HipStdParMathFixupPass::run(class llvm::Module &, class llvm::AnalysisManager &)

>>> referenced by LLVMPasses.lib(PassBuilder.cpp.obj):(public: virtual class llvm::PreservedAnalyses __cdecl llvm::detail::PassModel>::run(class llvm::Module &, class llvm::AnalysisManager &))

lld-link: error: undefined symbol: public: class llvm::PreservedAnalyses __cdecl llvm::HipStdParAcceleratorCodeSelectionPass::run(class llvm::Module &, class llvm::AnalysisManager &)

>>> referenced by LLVMPasses.lib(PassBuilder.cpp.obj):(public: virtual class llvm::PreservedAnalyses __cdecl llvm::detail::PassModel>::run(class llvm::Module &, class llvm::AnalysisManager &))
```

The PR has nothing to do with these files and it also doesn't look like the source files that contain definitions for the missing symbols have been touched for a while. Post-commit testing also looks fine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.