[clang] [llvm] [llvm][support] Implement tracing virtual file system (PR #88326)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 14:24:41 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-win-fast` running on `as-builder-3` while building `clang,llvm` at step 8 "test-build-unified-tree-check-clang-unit".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/6155

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 8 (test-build-unified-tree-check-clang-unit) failure: test (failure)
...
[29/318] Building CXX object tools\clang\unittests\Driver\CMakeFiles\ClangDriverTests.dir\MultilibTest.cpp.obj
[30/318] Building CXX object tools\clang\unittests\Lex\CMakeFiles\LexTests.dir\PPMemoryAllocationsTest.cpp.obj
[31/318] Building CXX object tools\clang\unittests\Lex\CMakeFiles\LexTests.dir\PPConditionalDirectiveRecordTest.cpp.obj
[32/318] Building RC object tools\clang\unittests\ASTMatchers\CMakeFiles\ASTMatchersTests.dir\C_\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\resources\windows_version_resource.rc.res
[33/318] Building CXX object tools\clang\unittests\Lex\CMakeFiles\LexTests.dir\ModuleDeclStateTest.cpp.obj
[34/318] Building CXX object tools\clang\unittests\Analysis\CMakeFiles\ClangAnalysisTests.dir\UnsafeBufferUsageTest.cpp.obj
[35/318] Building CXX object tools\clang\unittests\Lex\CMakeFiles\LexTests.dir\PPDependencyDirectivesTest.cpp.obj
[36/318] Building RC object tools\clang\unittests\ASTMatchers\Dynamic\CMakeFiles\DynamicASTMatchersTests.dir\48b300c34a7217f4dd73b5241653d7e9\llvm-project\llvm\resources\windows_version_resource.rc.res
[37/318] Building CXX object tools\clang\unittests\Basic\CMakeFiles\BasicTests.dir\SourceManagerTest.cpp.obj
[38/318] Building CXX object tools\clang\unittests\Tooling\CMakeFiles\ToolingTests.dir\DependencyScanning\DependencyScanningFilesystemTest.cpp.obj
FAILED: tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/DependencyScanning/DependencyScanningFilesystemTest.cpp.obj 
C:\ninja\ccache.exe C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Tooling -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -MD  /EHs-c- /GR- -std:c++17 /showIncludes /Fotools\clang\unittests\Tooling\CMakeFiles\ToolingTests.dir\DependencyScanning\DependencyScanningFilesystemTest.cpp.obj /Fdtools\clang\unittests\Tooling\CMakeFiles\ToolingTests.dir\ /FS -c C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(157): error C2065: 'InstrumentingFilesystem': undeclared identifier
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(157): error C2672: 'llvm::makeIntrusiveRefCnt': no matching overloaded function found
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/ADT/IntrusiveRefCntPtr.h(313): note: could be 'llvm::IntrusiveRefCntPtr<T> llvm::makeIntrusiveRefCnt(Args &&...)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(157): note: 'llvm::makeIntrusiveRefCnt': invalid template argument for 'T', type expected
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): error C3536: 'InstrumentingFS': cannot be used before it is initialized
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): error C2665: 'clang::tooling::dependencies::DependencyScanningWorkerFilesystem::DependencyScanningWorkerFilesystem': no overloaded function could convert all the argument types
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\include\clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h(343): note: could be 'clang::tooling::dependencies::DependencyScanningWorkerFilesystem::DependencyScanningWorkerFilesystem(clang::tooling::dependencies::DependencyScanningFilesystemSharedCache &,llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): note: 'clang::tooling::dependencies::DependencyScanningWorkerFilesystem::DependencyScanningWorkerFilesystem(clang::tooling::dependencies::DependencyScanningFilesystemSharedCache &,llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>)': cannot convert argument 2 from 'int' to 'llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): note: 'llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>::IntrusiveRefCntPtr': no overloaded function could convert all the argument types
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/ADT/IntrusiveRefCntPtr.h(180): note: could be 'llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>::IntrusiveRefCntPtr(T *)'
        with
        [
            T=llvm::vfs::FileSystem
        ]
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): note: 'llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>::IntrusiveRefCntPtr(T *)': cannot convert argument 1 from 'int' to 'T *'
        with
        [
            T=llvm::vfs::FileSystem
        ]
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or parenthesized function-style cast
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/ADT/IntrusiveRefCntPtr.h(192): note: or       'llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>::IntrusiveRefCntPtr(std::unique_ptr<X,std::default_delete<_Ty2>>)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/ADT/IntrusiveRefCntPtr.h(186): note: or       'llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>::IntrusiveRefCntPtr(llvm::IntrusiveRefCntPtr<X>)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): note: while trying to match the argument list '(int)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(160): note: while trying to match the argument list '(clang::tooling::dependencies::DependencyScanningFilesystemSharedCache, int)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(164): error C2660: 'testing::internal::EqHelper::Compare': function does not take 3 arguments
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(1407): note: see declaration of 'testing::internal::EqHelper::Compare'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(1414): note: could be 'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,std::nullptr_t,T *)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(164): note: 'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,std::nullptr_t,T *)': expects 4 arguments - 3 provided
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(1395): note: or       'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,const T1 &,const T2 &)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(164): note: 'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,const T1 &,const T2 &)': expects 4 arguments - 3 provided
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(164): note: while trying to match the argument list '(const char [32], const char [3], unsigned int)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(168): error C2660: 'testing::internal::EqHelper::Compare': function does not take 3 arguments
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(1407): note: see declaration of 'testing::internal::EqHelper::Compare'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(1414): note: could be 'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,std::nullptr_t,T *)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(168): note: 'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,std::nullptr_t,T *)': expects 4 arguments - 3 provided
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(1395): note: or       'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,const T1 &,const T2 &)'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Tooling\DependencyScanning\DependencyScanningFilesystemTest.cpp(168): note: 'testing::AssertionResult testing::internal::EqHelper::Compare(const char *,const char *,const T1 &,const T2 &)': expects 4 arguments - 3 provided

```

</details>

https://github.com/llvm/llvm-project/pull/88326


More information about the cfe-commits mailing list