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 failure #54

Open
DarkTyger opened this issue Apr 12, 2024 · 0 comments
Open

Build failure #54

DarkTyger opened this issue Apr 12, 2024 · 0 comments

Comments

@DarkTyger
Copy link

DarkTyger commented Apr 12, 2024

$ uname -a
Linux hostname #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
$ cat /etc/issue
Debian GNU/Linux 12 \n \l
$ gcc --version
gcc (Debian 12.2.0-14) 12.2.0
$ clang --version
Debian clang version 19.0.0 (++20240411104904+4036a6946e54-1~exp1~20240411225037.644)
$ meson --version
1.0.1
$ ninja --version
1.11.1

Then:

$ cd /tmp
$ git clone https://github.com/hdoc/hdoc
$ cd hdoc
$ meson build

Output:

The Meson build system
Version: 1.0.1
Source dir: /tmp/hdoc
Build dir: /tmp/hdoc/build
Build type: native build
Project name: hdoc
Project version: 1.4.1
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
C++ linker for the host machine: c++ ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found CMake: /usr/bin/cmake (3.25.1)
WARNING: Ignoring LLVM CMake dependency because dynamic was requested
llvm-config found: YES (/usr/bin/llvm-config) 19.0.0
Run-time dependency LLVM found: YES 19.0.0
Library clang-cpp found: NO
Run-time dependency clang (modules: clangAST, clangBasic, clangFrontend, clangIndex, clangTooling, clangToolingCore, clangToolingInclusions) found: YES 19.0.0
Program xxd found: YES (/usr/bin/xxd)
Run-time dependency threads found: YES
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Run-time dependency openssl found: YES 3.0.11
Downloading zlib source from http://zlib.net/fossils/zlib-1.2.13.tar.gz
Download size: 1497445
Downloading: ..........
Downloading zlib patch from https://wrapdb.mesonbuild.com/v2/zlib_1.2.13-2/get_patch
Download size: 2389
Downloading: ..........

Executing subproject zlib 

zlib| Project name: zlib
zlib| Project version: 1.2.13
zlib| C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
zlib| C linker for the host machine: cc ld.bfd 2.40
zlib| Compiler for C supports link arguments -Wl,--version-script,/tmp/hdoc/subprojects/zlib-1.2.13/zlib.map: YES
zlib| Compiler for C supports arguments /wd4131: NO
zlib| Compiler for C supports arguments /wd4244: NO
zlib| Compiler for C supports arguments /wd4245: NO
zlib| Compiler for C supports arguments /wd4267: NO
zlib| Compiler for C supports arguments /wd4127: NO
zlib| Compiler for C supports arguments -Wno-implicit-fallthrough: YES
zlib| Compiler for C supports arguments -Wno-implicit-function-declaration: YES
zlib| Build targets in project: 2
zlib| Subproject zlib finished.

Downloading rapidjson source from https://github.com/Tencent/rapidjson/archive/27c3a8dc0e2c9218fe94986d249a12b5ed838f1d.tar.gz
Downloading file of unknown size.

Executing subproject rapidjson 

rapidjson| Project name: rapidjson
rapidjson| Project version: 27c3a8dc0e2c9218fe94986d249a12b5ed838f1d
rapidjson| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
rapidjson| C++ linker for the host machine: c++ ld.bfd 2.40
rapidjson| Build targets in project: 2
rapidjson| Subproject rapidjson finished.

Downloading cmark-gfm source from https://github.com/github/cmark-gfm/archive/refs/tags/0.29.0.gfm.6.tar.gz
Downloading file of unknown size.
Downloading cmark-gfm patch from https://wrapdb.mesonbuild.com/v2/cmark-gfm_0.29.0.gfm.6-1/get_patch
Download size: 3649
Downloading: ..........

Executing subproject cmark-gfm 

cmark-gfm| Project name: cmark-gfm
cmark-gfm| Project version: 0.29.0.gfm.6
cmark-gfm| C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
cmark-gfm| C linker for the host machine: cc ld.bfd 2.40
cmark-gfm| Has header "stdbool.h" : YES
cmark-gfm| Checking if "has __builtin_expect" : links: YES
cmark-gfm| Checking if "has __attribute__" compiles: YES
cmark-gfm| Configuring config.h using configuration
cmark-gfm| Configuring cmark-gfm_version.h using configuration
cmark-gfm| Configuring cmark-gfm_export.h using configuration
cmark-gfm| Configuring cmark-gfm-extensions_export.h using configuration
cmark-gfm| Compiler for C supports arguments -Wno-unused-parameter: YES
cmark-gfm| Build targets in project: 4
cmark-gfm| Subproject cmark-gfm finished.

Downloading spdlog source from https://github.com/gabime/spdlog/archive/v1.9.2.tar.gz
Download size: 327799
Downloading: ..........
Downloading spdlog patch from https://wrapdb.mesonbuild.com/v2/spdlog_1.9.2-1/get_patch
Download size: 2535
Downloading: ..........

Executing subproject spdlog 

spdlog| Project name: spdlog
spdlog| Project version: 1.9.2
spdlog| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
spdlog| C++ linker for the host machine: c++ ld.bfd 2.40
spdlog| Dependency threads found: YES unknown (cached)
spdlog| Build targets in project: 4
spdlog| Subproject spdlog finished.


Executing subproject ctml 

ctml| Project name: ctml
ctml| Project version: undefined
ctml| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
ctml| C++ linker for the host machine: c++ ld.bfd 2.40
ctml| Build targets in project: 4
ctml| Subproject ctml finished.

Downloading argparse source from https://github.com/p-ranav/argparse/archive/refs/tags/v2.9.tar.gz
Downloading file of unknown size.
Downloading argparse patch from https://wrapdb.mesonbuild.com/v2/argparse_2.9-1/get_patch
Download size: 1163
Downloading: ..........

Executing subproject argparse 

argparse| Project name: argparse
argparse| Project version: 2.9
argparse| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
argparse| C++ linker for the host machine: c++ ld.bfd 2.40
argparse| Build targets in project: 4
argparse| Subproject argparse finished.

Downloading tomlplusplus source from https://github.com/marzer/tomlplusplus/archive/v3.2.0.tar.gz
Downloading file of unknown size.

Executing subproject tomlplusplus 

tomlplusplus| Project name: tomlplusplus
tomlplusplus| Project version: 3.2.0
tomlplusplus| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
tomlplusplus| C++ linker for the host machine: c++ ld.bfd 2.40
tomlplusplus| Message: target cpu_family: x86_64
tomlplusplus| Message: target cpu: x86_64
tomlplusplus| Message: target system: linux
tomlplusplus| Message: target endian: little
tomlplusplus| Message: is_release: false
tomlplusplus| Message: is_windows: false
tomlplusplus| Message: is_x64: true
tomlplusplus| Message: has_exceptions: true
tomlplusplus| Checking if "supports c++20" : links: YES
tomlplusplus| Checking if "supports char8_t" : links: YES
tomlplusplus| Checking if "supports consteval keyword" compiles: YES
tomlplusplus| Checking if "consteval is just renamed constexpr" compiles: NO
tomlplusplus| Checking if "supports __fp16" : links: NO
tomlplusplus| Checking if "supports _Float16" : links: NO
tomlplusplus| Checking if "supports __int128_t" : links: YES
tomlplusplus| Checking if "supports __float128" : links: YES
tomlplusplus| Build targets in project: 4
tomlplusplus| Subproject tomlplusplus finished.

Downloading doctest source from https://github.com/doctest/doctest/archive/refs/tags/v2.4.9.tar.gz
Downloading file of unknown size.

Executing subproject doctest 

doctest| Project name: doctest
doctest| Project version: 2.4.9
doctest| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
doctest| C++ linker for the host machine: c++ ld.bfd 2.40
doctest| Build targets in project: 4
doctest| Subproject doctest finished.

Downloading cpp-httplib source from https://github.com/yhirose/cpp-httplib/archive/v0.11.2.tar.gz
Download size: 625428
Downloading: ..........

Executing subproject cpp-httplib 

cpp-httplib| Project name: cpp-httplib
cpp-httplib| Project version: undefined
cpp-httplib| C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
cpp-httplib| C++ linker for the host machine: c++ ld.bfd 2.40
cpp-httplib| Fetching value of define "CPPHTTPLIB_VERSION" : "0.11.2"
cpp-httplib| Dependency threads found: YES unknown (cached)
cpp-httplib| Dependency openssl found: YES 3.0.11 (cached)
cpp-httplib| Dependency zlib from subproject subprojects/zlib-1.2.13 found: YES 1.2.13
cpp-httplib| Dependency libbrotlicommon skipped: feature cpp-httplib_brotli disabled
cpp-httplib| Dependency libbrotlidec skipped: feature cpp-httplib_brotli disabled
cpp-httplib| Dependency libbrotlienc skipped: feature cpp-httplib_brotli disabled
cpp-httplib| Build targets in project: 4
cpp-httplib| Subproject cpp-httplib finished.

Build targets in project: 8

hdoc 1.4.1

  Subprojects
    argparse    : YES
    cmark-gfm   : YES
    cpp-httplib : YES
    ctml        : YES
    doctest     : YES
    rapidjson   : YES
    spdlog      : YES
    tomlplusplus: YES
    zlib        : YES

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

Then:

$ ninja -C build

Output:

ninja: Entering directory `build'
[46/122] Compiling C object subprojects/cmark-gfm-0.29.0.gfm.6/libcmark-gfm-extensions.a.p/extensions_autolink.c.o
../subprojects/cmark-gfm-0.29.0.gfm.6/extensions/autolink.c: In function ‘validate_protocol’:
../subprojects/cmark-gfm-0.29.0.gfm.6/extensions/autolink.c:276:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  276 |   for (int i = 1; i <= len; i++) {
      |                     ^~
[83/122] Compiling C++ object libhdoc.a.p/src_frontend_Frontend.cpp.o
FAILED: libhdoc.a.p/src_frontend_Frontend.cpp.o 
c++ -Ilibhdoc.a.p -I. -I.. -I../src -Isubprojects/zlib-1.2.13 -I../subprojects/zlib-1.2.13 -I../subprojects/rapidjson-27c3a8dc0e2c9218fe94986d249a12b5ed838f1d/include -Isubprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6/src -I../subprojects/cmark-gfm-0.29.0.gfm.6/extensions -I../subprojects/spdlog-1.9.2/include -Isubprojects/ctml -I../subprojects/ctml -I../subprojects/argparse-2.9/include -Isubprojects/tomlplusplus-3.2.0/include -I../subprojects/tomlplusplus-3.2.0/include -I../subprojects/doctest-2.4.9/doctest -Isubprojects/cpp-httplib-0.11.2 -I../subprojects/cpp-httplib-0.11.2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -O0 -g -fno-rtti -DRAPIDJSON_HAS_STDSTRING -fPIC -DCPPHTTPLIB_OPENSSL_SUPPORT -DCPPHTTPLIB_ZLIB_SUPPORT -pthread -isystem/usr/lib/llvm-19/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MQ libhdoc.a.p/src_frontend_Frontend.cpp.o -MF libhdoc.a.p/src_frontend_Frontend.cpp.o.d -o libhdoc.a.p/src_frontend_Frontend.cpp.o -c ../src/frontend/Frontend.cpp
../src/frontend/Frontend.cpp: In constructor ‘hdoc::frontend::Frontend::Frontend(int, char**, hdoc::types::Config*)’:
../src/frontend/Frontend.cpp:154:11: error: ‘Optional’ is not a member of ‘llvm’
  154 |     llvm::Optional<llvm::StringRef>    redirects[]   = {llvm::None, {"/dev/null"}, {tempFile}}; // stdin, stdout, stderr
      |           ^~~~~~~~
../src/frontend/Frontend.cpp:154:35: error: expected primary-expression before ‘>’ token
  154 |     llvm::Optional<llvm::StringRef>    redirects[]   = {llvm::None, {"/dev/null"}, {tempFile}}; // stdin, stdout, stderr
      |                                   ^
../src/frontend/Frontend.cpp:154:40: error: ‘redirects’ was not declared in this scope
  154 |     llvm::Optional<llvm::StringRef>    redirects[]   = {llvm::None, {"/dev/null"}, {tempFile}}; // stdin, stdout, stderr
      |                                        ^~~~~~~~~
../src/frontend/Frontend.cpp:154:50: error: expected primary-expression before ‘]’ token
  154 |     llvm::Optional<llvm::StringRef>    redirects[]   = {llvm::None, {"/dev/null"}, {tempFile}}; // stdin, stdout, stderr
      |                                                  ^
../src/frontend/Frontend.cpp:154:63: error: ‘None’ is not a member of ‘llvm’
  154 |     llvm::Optional<llvm::StringRef>    redirects[]   = {llvm::None, {"/dev/null"}, {tempFile}}; // stdin, stdout, stderr
      |                                                               ^~~~
../src/frontend/Frontend.cpp:157:81: error: ‘None’ is not a member of ‘llvm’
  157 |     int rc = llvm::sys::ExecuteAndWait(compilerPath.get(), compilerFlags, llvm::None, redirects, 10, 0, &errMsg);
      |                                                                                 ^~~~
../src/frontend/Frontend.cpp:182:28: warning: ‘bool llvm::StringRef::startswith(llvm::StringRef) const’ is deprecated: Use starts_with instead [-Wdeprecated-declarations]
  182 |         if (line.startswith(" ")) {
      |             ~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/llvm-19/llvm/ADT/SmallString.h:18,
                 from /usr/include/llvm-19/llvm/Support/FileSystem.h:29,
                 from ../src/frontend/Frontend.cpp:19:
/usr/include/llvm-19/llvm/ADT/StringRef.h:263:29: note: declared here
  263 |         "starts_with") bool startswith(StringRef Prefix) const {
      |                             ^~~~~~~~~~
[84/122] Compiling C++ object libhdoc.a.p/src_indexer_MatcherUtils.cpp.o
FAILED: libhdoc.a.p/src_indexer_MatcherUtils.cpp.o 
c++ -Ilibhdoc.a.p -I. -I.. -I../src -Isubprojects/zlib-1.2.13 -I../subprojects/zlib-1.2.13 -I../subprojects/rapidjson-27c3a8dc0e2c9218fe94986d249a12b5ed838f1d/include -Isubprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6/src -I../subprojects/cmark-gfm-0.29.0.gfm.6/extensions -I../subprojects/spdlog-1.9.2/include -Isubprojects/ctml -I../subprojects/ctml -I../subprojects/argparse-2.9/include -Isubprojects/tomlplusplus-3.2.0/include -I../subprojects/tomlplusplus-3.2.0/include -I../subprojects/doctest-2.4.9/doctest -Isubprojects/cpp-httplib-0.11.2 -I../subprojects/cpp-httplib-0.11.2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -O0 -g -fno-rtti -DRAPIDJSON_HAS_STDSTRING -fPIC -DCPPHTTPLIB_OPENSSL_SUPPORT -DCPPHTTPLIB_ZLIB_SUPPORT -pthread -isystem/usr/lib/llvm-19/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MQ libhdoc.a.p/src_indexer_MatcherUtils.cpp.o -MF libhdoc.a.p/src_indexer_MatcherUtils.cpp.o.d -o libhdoc.a.p/src_indexer_MatcherUtils.cpp.o -c ../src/indexer/MatcherUtils.cpp
../src/indexer/MatcherUtils.cpp:24:14: error: ‘Optional’ in namespace ‘llvm’ does not name a template type
   24 | static llvm::Optional<std::string> getCanonicalPath(const clang::Decl* d) {
      |              ^~~~~~~~
../src/indexer/MatcherUtils.cpp: In function ‘void fillOutSymbol(hdoc::types::Symbol&, const clang::NamedDecl*, const std::filesystem::__cxx11::path&)’:
../src/indexer/MatcherUtils.cpp:60:24: error: ‘getCanonicalPath’ was not declared in this scope
   60 |   const auto absPath = getCanonicalPath(d);
      |                        ^~~~~~~~~~~~~~~~
../src/indexer/MatcherUtils.cpp: In function ‘bool isInIgnoreList(const clang::Decl*, const std::vector<std::__cxx11::basic_string<char> >&, const std::filesystem::__cxx11::path&)’:
../src/indexer/MatcherUtils.cpp:107:24: error: ‘getCanonicalPath’ was not declared in this scope
  107 |   const auto absPath = getCanonicalPath(d);
      |                        ^~~~~~~~~~~~~~~~
[86/122] Compiling C++ object libhdoc.a.p/src_indexer_Matchers.cpp.o
FAILED: libhdoc.a.p/src_indexer_Matchers.cpp.o 
c++ -Ilibhdoc.a.p -I. -I.. -I../src -Isubprojects/zlib-1.2.13 -I../subprojects/zlib-1.2.13 -I../subprojects/rapidjson-27c3a8dc0e2c9218fe94986d249a12b5ed838f1d/include -Isubprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6/src -I../subprojects/cmark-gfm-0.29.0.gfm.6/extensions -I../subprojects/spdlog-1.9.2/include -Isubprojects/ctml -I../subprojects/ctml -I../subprojects/argparse-2.9/include -Isubprojects/tomlplusplus-3.2.0/include -I../subprojects/tomlplusplus-3.2.0/include -I../subprojects/doctest-2.4.9/doctest -Isubprojects/cpp-httplib-0.11.2 -I../subprojects/cpp-httplib-0.11.2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -O0 -g -fno-rtti -DRAPIDJSON_HAS_STDSTRING -fPIC -DCPPHTTPLIB_OPENSSL_SUPPORT -DCPPHTTPLIB_ZLIB_SUPPORT -pthread -isystem/usr/lib/llvm-19/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MQ libhdoc.a.p/src_indexer_Matchers.cpp.o -MF libhdoc.a.p/src_indexer_Matchers.cpp.o.d -o libhdoc.a.p/src_indexer_Matchers.cpp.o -c ../src/indexer/Matchers.cpp
In file included from ../src/indexer/Matchers.cpp:4:
../src/indexer/Matchers.hpp: In member function ‘virtual bool hdoc::indexer::matchers::internal::matcher_shouldBeIgnored0Matcher::matches(const clang::Decl&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const’:
../src/indexer/Matchers.hpp:34:78: error: ‘const class clang::FileEntry’ has no member named ‘getName’
   34 |   auto filename = std::filesystem::relative(std::filesystem::path(fileEntry->getName().str()), rootDir).string();
      |                                                                              ^~~~~~~
[88/122] Compiling C++ object libhdoc.a.p/src_indexer_Indexer.cpp.o
FAILED: libhdoc.a.p/src_indexer_Indexer.cpp.o 
c++ -Ilibhdoc.a.p -I. -I.. -I../src -Isubprojects/zlib-1.2.13 -I../subprojects/zlib-1.2.13 -I../subprojects/rapidjson-27c3a8dc0e2c9218fe94986d249a12b5ed838f1d/include -Isubprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6 -I../subprojects/cmark-gfm-0.29.0.gfm.6/src -I../subprojects/cmark-gfm-0.29.0.gfm.6/extensions -I../subprojects/spdlog-1.9.2/include -Isubprojects/ctml -I../subprojects/ctml -I../subprojects/argparse-2.9/include -Isubprojects/tomlplusplus-3.2.0/include -I../subprojects/tomlplusplus-3.2.0/include -I../subprojects/doctest-2.4.9/doctest -Isubprojects/cpp-httplib-0.11.2 -I../subprojects/cpp-httplib-0.11.2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -O0 -g -fno-rtti -DRAPIDJSON_HAS_STDSTRING -fPIC -DCPPHTTPLIB_OPENSSL_SUPPORT -DCPPHTTPLIB_ZLIB_SUPPORT -pthread -isystem/usr/lib/llvm-19/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MQ libhdoc.a.p/src_indexer_Indexer.cpp.o -MF libhdoc.a.p/src_indexer_Indexer.cpp.o.d -o libhdoc.a.p/src_indexer_Indexer.cpp.o -c ../src/indexer/Indexer.cpp
In file included from ../src/indexer/Indexer.cpp:12:
../src/indexer/Indexer.hpp:15:43: error: ‘llvm::ThreadPool’ has not been declared
   15 |   Indexer(const hdoc::types::Config* cfg, llvm::ThreadPool& pool) : cfg(cfg), pool(pool) {}
      |                                           ^~~~
../src/indexer/Indexer.hpp:45:9: error: ‘ThreadPool’ in namespace ‘llvm’ does not name a type; did you mean ‘ThreadModel’?
   45 |   llvm::ThreadPool&          pool;
      |         ^~~~~~~~~~
      |         ThreadModel
../src/indexer/Indexer.hpp: In constructor ‘hdoc::indexer::Indexer::Indexer(const hdoc::types::Config*, int&)’:
../src/indexer/Indexer.hpp:15:79: error: class ‘hdoc::indexer::Indexer’ does not have any field named ‘pool’
   15 |   Indexer(const hdoc::types::Config* cfg, llvm::ThreadPool& pool) : cfg(cfg), pool(pool) {}
      |                                                                               ^~~~
In file included from ../src/indexer/Indexer.cpp:13:
../src/indexer/Matchers.hpp: In member function ‘virtual bool hdoc::indexer::matchers::internal::matcher_shouldBeIgnored0Matcher::matches(const clang::Decl&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const’:
../src/indexer/Matchers.hpp:34:78: error: ‘const class clang::FileEntry’ has no member named ‘getName’
   34 |   auto filename = std::filesystem::relative(std::filesystem::path(fileEntry->getName().str()), rootDir).string();
      |                                                                              ^~~~~~~
In file included from ../src/indexer/Indexer.cpp:14:
../src/support/ParallelExecutor.hpp: At global scope:
../src/support/ParallelExecutor.hpp:21:20: error: ‘llvm::ThreadPool’ has not been declared
   21 |                    llvm::ThreadPool&                          pool,
      |                    ^~~~
../src/support/ParallelExecutor.hpp:30:9: error: ‘ThreadPool’ in namespace ‘llvm’ does not name a type; did you mean ‘ThreadModel’?
   30 |   llvm::ThreadPool&                          pool;
      |         ^~~~~~~~~~
      |         ThreadModel
../src/support/ParallelExecutor.hpp: In constructor ‘hdoc::indexer::ParallelExecutor::ParallelExecutor(const clang::tooling::CompilationDatabase&, const std::vector<std::__cxx11::basic_string<char> >&, int&, uint32_t)’:
../src/support/ParallelExecutor.hpp:23:51: error: class ‘hdoc::indexer::ParallelExecutor’ does not have any field named ‘pool’
   23 |       : cmpdb(cmpdb), includePaths(includePaths), pool(pool), debugLimitNumIndexedFiles(debugLimitNumIndexedFiles) {}
      |                                                   ^~~~
../src/indexer/Indexer.cpp: In member function ‘void hdoc::indexer::Indexer::run()’:
../src/indexer/Indexer.cpp:56:68: error: ‘class hdoc::indexer::Indexer’ has no member named ‘pool’
   56 |   hdoc::indexer::ParallelExecutor tool(*cmpdb, includePaths, this->pool, this->cfg->debugLimitNumIndexedFiles);
      |                                                                    ^~~~
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant