==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_3cf40ae4-f969-4201-822b-3ac14a4d1002]...done
==> Making package: lld18 18.1.6-2.1 (Thu Apr 30 03:56:48 2026)
==> Retrieving sources...
  -> Downloading lld-18.1.6.src.tar.xz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100  1.49M 100  1.49M   0      0  3.58M      0                              0100  1.49M 100  1.49M   0      0  3.58M      0                              0100  1.49M 100  1.49M   0      0  3.58M      0                              0
  -> Downloading lld-18.1.6.src.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100    566 100    566   0      0   3565      0                              0100    566 100    566   0      0   3563      0                              0100    566 100    566   0      0   3562      0                              0
  -> Downloading llvm-18.1.6.src.tar.xz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0 11 59.11M  11  6.62M   0      0  5.98M      0   00:09   00:01   00:08  6.60M 24 59.11M  24 14.73M   0      0  7.00M      0   00:08   00:02   00:06  7.36M 38 59.11M  38 22.94M   0      0  7.38M      0   00:07   00:03   00:04  7.64M 52 59.11M  52 31.28M   0      0  7.61M      0   00:07   00:04   00:03  7.81M 67 59.11M  67 39.81M   0      0  7.79M      0   00:07   00:05   00:02  7.95M 82 59.11M  82 48.55M   0      0  7.95M      0   00:07   00:06   00:01  8.38M 90 59.11M  90 53.77M   0      0  7.56M      0   00:07   00:07          7.80M 97 59.11M  97 57.83M   0      0  7.13M      0   00:08   00:08          6.97M100 59.11M 100 59.11M   0      0  7.01M      0   00:08   00:08          6.97M100 59.11M 100 59.11M   0      0  7.01M      0   00:08   00:08          6.97M100 59.11M 100 59.11M   0      0  7.01M      0   00:08   00:08          6.97M
  -> Downloading llvm-18.1.6.src.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100    566 100    566   0      0   2523      0                              0100    566 100    566   0      0   2523      0                              0100    566 100    566   0      0   2521      0                              0
  -> Downloading libunwind-18.1.6.src.tar.xz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100 116.5k 100 116.5k   0      0 372.8k      0                              0100 116.5k 100 116.5k   0      0 372.7k      0                              0100 116.5k 100 116.5k   0      0 372.7k      0                              0
  -> Downloading libunwind-18.1.6.src.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100    566 100    566   0      0   2240      0                              0100    566 100    566   0      0   2240      0                              0100    566 100    566   0      0   2240      0                              0
  -> Downloading cmake-18.1.6.src.tar.xz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100   8708 100   8708   0      0  38620      0                              0100   8708 100   8708   0      0  38600      0                              0100   8708 100   8708   0      0  38594      0                              0
  -> Downloading cmake-18.1.6.src.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0100    566 100    566   0      0   2187      0                              0100    566 100    566   0      0   2187      0                              0100    566 100    566   0      0   2187      0                              0
==> Validating source files with sha256sums...
    lld-18.1.6.src.tar.xz ... Passed
    lld-18.1.6.src.tar.xz.sig ... Skipped
    llvm-18.1.6.src.tar.xz ... Passed
    llvm-18.1.6.src.tar.xz.sig ... Skipped
    libunwind-18.1.6.src.tar.xz ... Passed
    libunwind-18.1.6.src.tar.xz.sig ... Skipped
    cmake-18.1.6.src.tar.xz ... Passed
    cmake-18.1.6.src.tar.xz.sig ... Skipped
==> Verifying source file signatures with gpg...
    lld-18.1.6.src.tar.xz ... Passed
    llvm-18.1.6.src.tar.xz ... Passed
    libunwind-18.1.6.src.tar.xz ... Passed
    cmake-18.1.6.src.tar.xz ... Passed
==> Making package: lld18 18.1.6-2.1 (Thu Apr 30 01:57:00 2026)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (2)        New Version     Net Change

core/libedit       20251016_3.1-1    0.26 MiB
extra/llvm18-libs  18.1.8-2        128.96 MiB

Total Installed Size:  129.22 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libedit...
installing llvm18-libs...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (35)                                New Version   Net Change

extra/cppdap                                1.58.0-3        1.61 MiB
extra/hicolor-icon-theme                    0.18-1          0.05 MiB
extra/jsoncpp                               1.9.6-3         0.77 MiB
extra/libuv                                 1.52.1-1        0.64 MiB
extra/llvm-libs                             22.1.3-1      160.11 MiB
core/mpdecimal                              4.0.1-3         0.32 MiB
core/python                                 3.14.4-1       72.32 MiB
extra/python-babel                          2.17.0-3       30.53 MiB
extra/python-certifi                        2026.04.22-1    0.02 MiB
extra/python-charset-normalizer             3.4.7-1         0.96 MiB
extra/python-docutils                       1:0.22.4-1      6.52 MiB
extra/python-idna                           3.13-1          0.85 MiB
extra/python-imagesize                      2.0.0-1         0.12 MiB
extra/python-jinja                          1:3.1.6-3       2.04 MiB
extra/python-markupsafe                     3.0.3-1         0.09 MiB
extra/python-packaging                      26.2-1          1.23 MiB
extra/python-pygments                       2.20.0-1       15.36 MiB
extra/python-pytz                           2026.1-1        0.17 MiB
extra/python-requests                       2.33.1-1        0.60 MiB
extra/python-roman-numerals-py              3.1.0-2         0.04 MiB
extra/python-snowballstemmer                3.0.1-1         2.91 MiB
extra/python-sphinx-alabaster-theme         1.0.0-6         0.05 MiB
extra/python-sphinxcontrib-applehelp        2.0.0-5         0.26 MiB
extra/python-sphinxcontrib-devhelp          2.0.0-6         0.13 MiB
extra/python-sphinxcontrib-htmlhelp         2.1.0-5         0.18 MiB
extra/python-sphinxcontrib-jsmath           1.0.1-21        0.02 MiB
extra/python-sphinxcontrib-qthelp           2.0.0-5         0.17 MiB
extra/python-sphinxcontrib-serializinghtml  2.0.0-5         0.14 MiB
extra/python-urllib3                        2.6.3-1         1.44 MiB
extra/rhash                                 1.4.6-1         0.34 MiB
extra/cmake                                 4.3.2-1        95.21 MiB
extra/llvm                                  22.1.3-1      129.12 MiB
extra/llvm18                                18.1.8-2       66.67 MiB
extra/ninja                                 1.13.2-3        0.41 MiB
extra/python-sphinx                         9.1.0-1        23.72 MiB

Total Installed Size:  615.14 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing llvm18...
installing cppdap...
installing hicolor-icon-theme...
installing jsoncpp...
Optional dependencies for jsoncpp
    jsoncpp-doc: documentation
installing libuv...
installing rhash...
installing cmake...
Optional dependencies for cmake
    make: for unix Makefile generator [installed]
    ninja: for ninja generator [pending]
    qt6-base: cmake-gui
installing ninja...
installing mpdecimal...
installing python...
Optional dependencies for python
    python-setuptools: for building Python packages using tooling that is usually bundled with Python
    python-pip: for installing Python packages using tooling that is usually bundled with Python
    python-pipx: for installing Python software not packaged on Arch Linux
    sqlite: for a default database integration [installed]
    xz: for lzma [installed]
    tk: for tkinter
installing python-pytz...
installing python-babel...
installing python-docutils...
Optional dependencies for python-docutils
    python-myst-parser: to parse input in "Markdown" (CommonMark) format
    python-pillow: for some image manipulation operations
    python-pygments: for syntax highlighting of code directives and roles [pending]
installing python-imagesize...
installing python-markupsafe...
installing python-jinja...
Optional dependencies for python-jinja
    python-babel: for i18n support [installed]
installing python-packaging...
installing python-pygments...
installing python-charset-normalizer...
installing python-idna...
installing python-urllib3...
Optional dependencies for python-urllib3
    python-brotli: Brotli support
    python-brotlicffi: Brotli support
    python-h2: HTTP/2 support
    python-pysocks: SOCKS support
installing python-certifi...
installing python-requests...
Optional dependencies for python-requests
    python-chardet: alternative character encoding library
    python-pysocks: SOCKS proxy support
installing python-roman-numerals-py...
installing python-snowballstemmer...
Optional dependencies for python-snowballstemmer
    python-pystemmer: for improved performance
installing python-sphinx-alabaster-theme...
installing python-sphinxcontrib-applehelp...
installing python-sphinxcontrib-devhelp...
installing python-sphinxcontrib-htmlhelp...
installing python-sphinxcontrib-jsmath...
installing python-sphinxcontrib-qthelp...
installing python-sphinxcontrib-serializinghtml...
installing python-sphinx...
Optional dependencies for python-sphinx
    imagemagick: for ext.imgconverter
    texlive-fontsextra: for the default admonition title icons in PDF output
    texlive-latexextra: for generation of PDF documentation
installing llvm-libs...
installing llvm...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
  -> Found lld-18.1.6.src.tar.xz
  -> Found lld-18.1.6.src.tar.xz.sig
  -> Found llvm-18.1.6.src.tar.xz
  -> Found llvm-18.1.6.src.tar.xz.sig
  -> Found libunwind-18.1.6.src.tar.xz
  -> Found libunwind-18.1.6.src.tar.xz.sig
  -> Found cmake-18.1.6.src.tar.xz
  -> Found cmake-18.1.6.src.tar.xz.sig
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting lld-18.1.6.src.tar.xz with bsdtar
  -> Extracting llvm-18.1.6.src.tar.xz with bsdtar
  -> Extracting libunwind-18.1.6.src.tar.xz with bsdtar
  -> Extracting cmake-18.1.6.src.tar.xz with bsdtar
==> Starting prepare()...
==> Starting build()...
CMake Deprecation Warning at /startdir/src/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)


CMake Deprecation Warning at /startdir/src/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)


-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib/libffi.so
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Found LibEdit: /usr/include (found version "2.11")
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib/libtinfo.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.2")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found LibXml2: /usr/lib/libxml2.so (found version "2.15.3")
-- Found CURL: /usr/lib/libcurl.so (found version "8.19.0")
-- Linker detection: GNU ld
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test C_SUPPORTS_CMAKE_CXX_FLAGS
-- Performing Test C_SUPPORTS_CMAKE_CXX_FLAGS - Success
-- Performing Test CXX_SUPPORTS_CMAKE_CXX_FLAGS
-- Performing Test CXX_SUPPORTS_CMAKE_CXX_FLAGS - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Success
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG - Success
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG - Success
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Failed
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Found Python3: /usr/bin/python3.14 (found version "3.14.4") found components: Interpreter
-- LLD version: 18.1.8
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
CMake Warning at /usr/lib/llvm18/lib/cmake/llvm/AddLLVM.cmake:2512 (message):
  gtest not found, unittests will not be available
Call Stack (most recent call first):
  CMakeLists.txt:195 (llvm_add_unittests)


-- Configuring done (3.8s)
-- Generating done (0.0s)
-- Build files have been written to: /startdir/src/lld-18.1.6.src/build
[1/133] Building Options.inc...
[2/133] Building Options.inc...
[3/133] Building Options.inc...
[4/133] Building Options.inc...
[5/133] Building Options.inc...
[6/133] Generating VCSVersion.inc
[7/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Version.cpp.o
[8/133] Building CXX object Common/CMakeFiles/lldCommon.dir/TargetOptionsCommandFlags.cpp.o
[9/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Memory.cpp.o
FAILED: [code=1] Common/CMakeFiles/lldCommon.dir/Memory.cpp.o 
/usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/startdir/src/lld-18.1.6.src/build/Common -I/startdir/src/lld-18.1.6.src/Common -I/startdir/src/lld-18.1.6.src/include -I/startdir/src/lld-18.1.6.src/build/include -I/usr/lib/llvm18/include -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/lld18 -flto=auto -falign-functions=32 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Memory.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Memory.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Memory.cpp.o -c /startdir/src/lld-18.1.6.src/Common/Memory.cpp
In file included from /usr/lib/llvm18/include/llvm/Support/Allocator.h:20,
                 from /startdir/src/lld-18.1.6.src/include/lld/Common/Memory.h:24,
                 from /startdir/src/lld-18.1.6.src/Common/Memory.cpp:9:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:119:62: error: ‘uint64_t’ was not declared in this scope
  119 |     std::conditional_t<sizeof(T) < 4 && sizeof(void *) >= 8, uint64_t,
      |                                                              ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:29:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   28 | #include <memory>
  +++ |+#include <cstdint>
   29 | #include <new>
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:120:24: error: ‘uint32_t’ was not declared in this scope
  120 |                        uint32_t>;
      |                        ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:120:24: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:120:32: error: template argument 2 is invalid
  120 |                        uint32_t>;
      |                                ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:120:32: error: template argument 3 is invalid
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:124:27: error: ‘SmallVectorSizeType’ was not declared in this scope; did you mean ‘SmallVectorBase’? [-Wtemplate-body]
  124 |   alignas(SmallVectorBase<SmallVectorSizeType<T>>) char Base[sizeof(
      |                           ^~~~~~~~~~~~~~~~~~~
      |                           SmallVectorBase
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:124:47: error: template argument 1 is invalid [-Wtemplate-body]
  124 |   alignas(SmallVectorBase<SmallVectorSizeType<T>>) char Base[sizeof(
      |                                               ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:124:48: error: expected ‘)’ before ‘>’ token [-Wtemplate-body]
  124 |   alignas(SmallVectorBase<SmallVectorSizeType<T>>) char Base[sizeof(
      |          ~                                     ^~
      |                                                )
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:124:48: error: expected unqualified-id before ‘>’ token [-Wtemplate-body]
  124 |   alignas(SmallVectorBase<SmallVectorSizeType<T>>) char Base[sizeof(
      |                                                ^~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:134:30: error: ‘SmallVectorSizeType’ was not declared in this scope; did you mean ‘SmallVectorBase’? [-Wtemplate-body]
  134 |     : public SmallVectorBase<SmallVectorSizeType<T>> {
      |                              ^~~~~~~~~~~~~~~~~~~
      |                              SmallVectorBase
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:134:50: error: template argument 1 is invalid [-Wtemplate-body]
  134 |     : public SmallVectorBase<SmallVectorSizeType<T>> {
      |                                                  ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:134:51: error: expected ‘{’ before ‘>’ token
  134 |     : public SmallVectorBase<SmallVectorSizeType<T>> {
      |                                                   ^~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In member function ‘T* llvm::SmallVectorTemplateBase<T, <anonymous> >::mallocForGrow(size_t, size_t&)’:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:457:23: error: ‘SmallVectorSizeType’ was not declared in this scope; did you mean ‘SmallVectorBase’? [-Wtemplate-body]
  457 |       SmallVectorBase<SmallVectorSizeType<T>>::mallocForGrow(
      |                       ^~~~~~~~~~~~~~~~~~~
      |                       SmallVectorBase
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:457:43: error: template argument 1 is invalid [-Wtemplate-body]
  457 |       SmallVectorBase<SmallVectorSizeType<T>>::mallocForGrow(
      |                                           ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:457:48: error: ‘::mallocForGrow’ has not been declared [-Wtemplate-body]
  457 |       SmallVectorBase<SmallVectorSizeType<T>>::mallocForGrow(
      |                                                ^~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: At global scope:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1330:45: error: ‘uint32_t’ was not declared in this scope
 1330 | extern template class llvm::SmallVectorBase<uint32_t>;
      |                                             ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1330:45: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1330:53: error: template argument 1 is invalid
 1330 | extern template class llvm::SmallVectorBase<uint32_t>;
      |                                                     ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorTemplateBase<void*, true>’:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:586:7:   required from ‘class llvm::SmallVectorImpl<void*>’
  586 | class SmallVectorImpl : public SmallVectorTemplateBase<T> {
      |       ^~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1208:22:   required from ‘class llvm::SmallVector<void*, 4>’
 1208 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:311:26:   required from here
  311 |   SmallVector<void *, 4> Slabs;
      |                          ^~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:488:7: error: invalid use of incomplete type ‘class llvm::SmallVectorTemplateCommon<void*, void>’
  488 | class SmallVectorTemplateBase<T, true> : public SmallVectorTemplateCommon<T> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:133:7: note: declaration of ‘class llvm::SmallVectorTemplateCommon<void*, void>’
  133 | class SmallVectorTemplateCommon
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorImpl<void*>’:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1208:22:   required from ‘class llvm::SmallVector<void*, 4>’
 1208 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:311:26:   required from here
  311 |   SmallVector<void *, 4> Slabs;
      |                          ^~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:590:9: error: no type named ‘iterator’ in ‘using llvm::SmallVectorImpl<void*>::SuperClass = class llvm::SmallVectorTemplateBase<void*, true>’ {aka ‘class llvm::SmallVectorTemplateBase<void*, true>’}
  590 |   using iterator = typename SuperClass::iterator;
      |         ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:591:9: error: no type named ‘const_iterator’ in ‘using llvm::SmallVectorImpl<void*>::SuperClass = class llvm::SmallVectorTemplateBase<void*, true>’ {aka ‘class llvm::SmallVectorTemplateBase<void*, true>’}
  591 |   using const_iterator = typename SuperClass::const_iterator;
      |         ^~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:592:9: error: no type named ‘reference’ in ‘using llvm::SmallVectorImpl<void*>::SuperClass = class llvm::SmallVectorTemplateBase<void*, true>’ {aka ‘class llvm::SmallVectorTemplateBase<void*, true>’}
  592 |   using reference = typename SuperClass::reference;
      |         ^~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:593:9: error: no type named ‘size_type’ in ‘using llvm::SmallVectorImpl<void*>::SuperClass = class llvm::SmallVectorTemplateBase<void*, true>’ {aka ‘class llvm::SmallVectorTemplateBase<void*, true>’}
  593 |   using size_type = typename SuperClass::size_type;
      |         ^~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:630:21: error: ‘set_size’ has not been declared in ‘using llvm::SmallVectorImpl<void*>::SuperClass = class llvm::SmallVectorTemplateBase<void*, true>’
  630 |   using SuperClass::set_size;
      |                     ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:586:7:   required from ‘class llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >’
  586 | class SmallVectorImpl : public SmallVectorTemplateBase<T> {
      |       ^~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1208:22:   required from ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
 1208 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:314:45:   required from here
  314 |   SmallVector<std::pair<void *, size_t>, 0> CustomSizedSlabs;
      |                                             ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:488:7: error: invalid use of incomplete type ‘class llvm::SmallVectorTemplateCommon<std::pair<void*, long unsigned int>, void>’
  488 | class SmallVectorTemplateBase<T, true> : public SmallVectorTemplateCommon<T> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:133:7: note: declaration of ‘class llvm::SmallVectorTemplateCommon<std::pair<void*, long unsigned int>, void>’
  133 | class SmallVectorTemplateCommon
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >’:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1208:22:   required from ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
 1208 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:314:45:   required from here
  314 |   SmallVector<std::pair<void *, size_t>, 0> CustomSizedSlabs;
      |                                             ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:590:9: error: no type named ‘iterator’ in ‘using llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >::SuperClass = class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’ {aka ‘class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’}
  590 |   using iterator = typename SuperClass::iterator;
      |         ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:591:9: error: no type named ‘const_iterator’ in ‘using llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >::SuperClass = class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’ {aka ‘class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’}
  591 |   using const_iterator = typename SuperClass::const_iterator;
      |         ^~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:592:9: error: no type named ‘reference’ in ‘using llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >::SuperClass = class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’ {aka ‘class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’}
  592 |   using reference = typename SuperClass::reference;
      |         ^~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:593:9: error: no type named ‘size_type’ in ‘using llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >::SuperClass = class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’ {aka ‘class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’}
  593 |   using size_type = typename SuperClass::size_type;
      |         ^~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:630:21: error: ‘set_size’ has not been declared in ‘using llvm::SmallVectorImpl<std::pair<void*, long unsigned int> >::SuperClass = class llvm::SmallVectorTemplateBase<std::pair<void*, long unsigned int>, true>’
  630 |   using SuperClass::set_size;
      |                     ^~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:351:59: error: expected ‘)’ before ‘,’ token [-Wtemplate-body]
  351 |   void DeallocateSlabs(SmallVectorImpl<void *>::iterator I,
      |                       ~                                   ^
      |                                                           )
/usr/lib/llvm18/include/llvm/Support/Allocator.h:352:24: error: invalid use of qualified-name ‘llvm::SmallVectorImpl<void*>::iterator’ [-Wtemplate-body]
  352 |                        SmallVectorImpl<void *>::iterator E) {
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:352:49: error: expected ‘;’ at end of member declaration [-Wtemplate-body]
  352 |                        SmallVectorImpl<void *>::iterator E) {
      |                                                 ^~~~~~~~
      |                                                         ;
/usr/lib/llvm18/include/llvm/Support/Allocator.h:352:58: error: ‘E’ does not name a type [-Wtemplate-body]
  352 |                        SmallVectorImpl<void *>::iterator E) {
      |                                                          ^
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In destructor ‘llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::~BumpPtrAllocatorImpl()’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:98:27: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
   98 |     DeallocateSlabs(Slabs.begin(), Slabs.end());
      |                           ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:98:42: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘end’ [-Wtemplate-body]
   98 |     DeallocateSlabs(Slabs.begin(), Slabs.end());
      |                                          ^~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>& llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::operator=(llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>&&)’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:103:27: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  103 |     DeallocateSlabs(Slabs.begin(), Slabs.end());
      |                           ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:103:42: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘end’ [-Wtemplate-body]
  103 |     DeallocateSlabs(Slabs.begin(), Slabs.end());
      |                                          ^~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::Reset()’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:128:15: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘empty’ [-Wtemplate-body]
  128 |     if (Slabs.empty())
      |               ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:133:28: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘front’ [-Wtemplate-body]
  133 |     CurPtr = (char *)Slabs.front();
      |                            ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:137:37: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  137 |     DeallocateSlabs(std::next(Slabs.begin()), Slabs.end());
      |                                     ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:137:53: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘end’ [-Wtemplate-body]
  137 |     DeallocateSlabs(std::next(Slabs.begin()), Slabs.end());
      |                                                     ^~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:138:11: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘erase’ [-Wtemplate-body]
  138 |     Slabs.erase(std::next(Slabs.begin()), Slabs.end());
      |           ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:138:33: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  138 |     Slabs.erase(std::next(Slabs.begin()), Slabs.end());
      |                                 ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:138:49: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘end’ [-Wtemplate-body]
  138 |     Slabs.erase(std::next(Slabs.begin()), Slabs.end());
      |                                                 ^~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘size_t llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::GetNumSlabs() const’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:225:45: error: ‘const class llvm::SmallVector<void*, 4>’ has no member named ‘size’ [-Wtemplate-body]
  225 |   size_t GetNumSlabs() const { return Slabs.size() + CustomSizedSlabs.size(); }
      |                                             ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:225:71: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘size’ [-Wtemplate-body]
  225 |   size_t GetNumSlabs() const { return Slabs.size() + CustomSizedSlabs.size(); }
      |                                                                       ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘std::optional<long int> llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::identifyObject(const void*)’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:235:36: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘size’ [-Wtemplate-body]
  235 |     for (size_t Idx = 0, E = Slabs.size(); Idx < E; Idx++) {
      |                                    ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:236:54: error: no match for ‘operator[]’ (operand types are ‘llvm::SmallVector<void*, 4>’ and ‘size_t’ {aka ‘long unsigned int’}) [-Wtemplate-body]
  236 |       const char *S = static_cast<const char *>(Slabs[Idx]);
      |                                                      ^
/usr/lib/llvm18/include/llvm/Support/Allocator.h:244:47: error: ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘size’ [-Wtemplate-body]
  244 |     for (size_t Idx = 0, E = CustomSizedSlabs.size(); Idx < E; Idx++) {
      |                                               ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:245:65: error: no match for ‘operator[]’ (operand types are ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ and ‘size_t’ {aka ‘long unsigned int’}) [-Wtemplate-body]
  245 |       const char *S = static_cast<const char *>(CustomSizedSlabs[Idx].first);
      |                                                                 ^
/usr/lib/llvm18/include/llvm/Support/Allocator.h:246:37: error: no match for ‘operator[]’ (operand types are ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ and ‘size_t’ {aka ‘long unsigned int’}) [-Wtemplate-body]
  246 |       size_t Size = CustomSizedSlabs[Idx].second;
      |                                     ^
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘size_t llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::getTotalMemory() const’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:283:25: error: ‘const class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  283 |     for (auto I = Slabs.begin(), E = Slabs.end(); I != E; ++I)
      |                         ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:283:56: error: ‘E’ was not declared in this scope [-Wtemplate-body]
  283 |     for (auto I = Slabs.begin(), E = Slabs.end(); I != E; ++I)
      |                                                        ^
/usr/lib/llvm18/include/llvm/Support/Allocator.h:284:58: error: ‘const class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  284 |       TotalMemory += computeSlabSize(std::distance(Slabs.begin(), I));
      |                                                          ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: error: no matching function for call to ‘begin(const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>&)’ [-Wtemplate-body]
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note: there are 6 candidates
In file included from /usr/include/c++/15.2.1/utility:75,
                 from /usr/lib/llvm18/include/llvm/Support/type_traits.h:18,
                 from /usr/lib/llvm18/include/llvm/ADT/SmallVector.h:18:
/usr/include/c++/15.2.1/initializer_list:90:5: note: candidate 1: ‘template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)’
   90 |     begin(initializer_list<_Tp> __ils) noexcept
      |     ^~~~~
/usr/include/c++/15.2.1/initializer_list:90:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::initializer_list<_Tp>’
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/15.2.1/unordered_map:44,
                 from /usr/include/c++/15.2.1/functional:65,
                 from /usr/lib/llvm18/include/llvm/ADT/SmallVector.h:24:
/usr/include/c++/15.2.1/bits/range_access.h:54:5: note: candidate 2: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)’
   54 |     begin(_Container& __cont) noexcept(noexcept(__cont.begin()))
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:54:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&) [with _Container = const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35:   required from here
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:55:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘begin’
   55 |     -> decltype(__cont.begin())
      |                 ~~~~~~~^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:66:5: note: candidate 3: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)’
   66 |     begin(const _Container& __cont) noexcept(noexcept(__cont.begin()))
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:66:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35:   required from here
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:67:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘begin’
   67 |     -> decltype(__cont.begin())
      |                 ~~~~~~~^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:101:5: note: candidate 4: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])’
  101 |     begin(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:101:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   mismatched types ‘_Tp [_Nm]’ and ‘const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:119:31: note: candidate 5: ‘template<class _Tp> _Tp* std::begin(valarray<_Tp>&)’
  119 |   template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept;
      |                               ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:119:31: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   types ‘std::valarray<_Tp>’ and ‘const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ have incompatible cv-qualifiers
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:120:37: note: candidate 6: ‘template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)’
  120 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:120:37: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   ‘const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘const std::valarray<_Tp>’
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: error: no matching function for call to ‘end(const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>&)’ [-Wtemplate-body]
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note: there are 6 candidates
/usr/include/c++/15.2.1/initializer_list:101:5: note: candidate 1: ‘template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)’
  101 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/15.2.1/initializer_list:101:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::initializer_list<_Tp>’
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:78:5: note: candidate 2: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)’
   78 |     end(_Container& __cont) noexcept(noexcept(__cont.end()))
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&) [with _Container = const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35:   required from here
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:79:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘end’
   79 |     -> decltype(__cont.end())
      |                 ~~~~~~~^~~
/usr/include/c++/15.2.1/bits/range_access.h:90:5: note: candidate 3: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)’
   90 |     end(const _Container& __cont) noexcept(noexcept(__cont.end()))
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:90:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35:   required from here
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:91:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘end’
   91 |     -> decltype(__cont.end())
      |                 ~~~~~~~^~~
/usr/include/c++/15.2.1/bits/range_access.h:112:5: note: candidate 4: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])’
  112 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:112:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   mismatched types ‘_Tp [_Nm]’ and ‘const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:121:31: note: candidate 5: ‘template<class _Tp> _Tp* std::end(valarray<_Tp>&)’
  121 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
/usr/include/c++/15.2.1/bits/range_access.h:121:31: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   types ‘std::valarray<_Tp>’ and ‘const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ have incompatible cv-qualifiers
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:122:37: note: candidate 6: ‘template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)’
  122 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:122:37: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:285:35: note:   ‘const llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘const std::valarray<_Tp>’
  285 |     for (const auto &PtrAndSize : CustomSizedSlabs)
      |                                   ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::PrintStats() const’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:297:46: error: ‘const class llvm::SmallVector<void*, 4>’ has no member named ‘size’ [-Wtemplate-body]
  297 |     detail::printBumpPtrAllocatorStats(Slabs.size(), BytesAllocated,
      |                                              ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::StartNewSlab()’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:337:54: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘size’ [-Wtemplate-body]
  337 |     size_t AllocatedSlabSize = computeSlabSize(Slabs.size());
      |                                                      ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::DeallocateCustomSizedSlabs()’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: error: no matching function for call to ‘begin(llvm::SmallVector<std::pair<void*, long unsigned int>, 0>&)’ [-Wtemplate-body]
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note: there are 6 candidates
/usr/include/c++/15.2.1/initializer_list:90:5: note: candidate 1: ‘template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)’
   90 |     begin(initializer_list<_Tp> __ils) noexcept
      |     ^~~~~
/usr/include/c++/15.2.1/initializer_list:90:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::initializer_list<_Tp>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:54:5: note: candidate 2: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)’
   54 |     begin(_Container& __cont) noexcept(noexcept(__cont.begin()))
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:54:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:55:24: error: ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘begin’
   55 |     -> decltype(__cont.begin())
      |                 ~~~~~~~^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:66:5: note: candidate 3: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)’
   66 |     begin(const _Container& __cont) noexcept(noexcept(__cont.begin()))
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:66:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:67:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘begin’
   67 |     -> decltype(__cont.begin())
      |                 ~~~~~~~^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:101:5: note: candidate 4: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])’
  101 |     begin(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:101:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   mismatched types ‘_Tp [_Nm]’ and ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:119:31: note: candidate 5: ‘template<class _Tp> _Tp* std::begin(valarray<_Tp>&)’
  119 |   template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept;
      |                               ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:119:31: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::valarray<_Tp>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:120:37: note: candidate 6: ‘template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)’
  120 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:120:37: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘const std::valarray<_Tp>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: error: no matching function for call to ‘end(llvm::SmallVector<std::pair<void*, long unsigned int>, 0>&)’ [-Wtemplate-body]
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note: there are 6 candidates
/usr/include/c++/15.2.1/initializer_list:101:5: note: candidate 1: ‘template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)’
  101 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/15.2.1/initializer_list:101:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::initializer_list<_Tp>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:78:5: note: candidate 2: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)’
   78 |     end(_Container& __cont) noexcept(noexcept(__cont.end()))
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:79:24: error: ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘end’
   79 |     -> decltype(__cont.end())
      |                 ~~~~~~~^~~
/usr/include/c++/15.2.1/bits/range_access.h:90:5: note: candidate 3: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)’
   90 |     end(const _Container& __cont) noexcept(noexcept(__cont.end()))
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:90:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:91:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘end’
   91 |     -> decltype(__cont.end())
      |                 ~~~~~~~^~~
/usr/include/c++/15.2.1/bits/range_access.h:112:5: note: candidate 4: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])’
  112 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:112:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   mismatched types ‘_Tp [_Nm]’ and ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:121:31: note: candidate 5: ‘template<class _Tp> _Tp* std::end(valarray<_Tp>&)’
  121 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
/usr/include/c++/15.2.1/bits/range_access.h:121:31: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::valarray<_Tp>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:122:37: note: candidate 6: ‘template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)’
  122 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:122:37: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:363:29: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘const std::valarray<_Tp>’
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h: In member function ‘void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:410:35: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  410 |     for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E;
      |                                   ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:410:76: error: ‘E’ was not declared in this scope [-Wtemplate-body]
  410 |     for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E;
      |                                                                            ^
/usr/lib/llvm18/include/llvm/Support/Allocator.h:413:41: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘begin’ [-Wtemplate-body]
  413 |           std::distance(Allocator.Slabs.begin(), I));
      |                                         ^~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:415:41: error: ‘class llvm::SmallVector<void*, 4>’ has no member named ‘back’ [-Wtemplate-body]
  415 |       char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
      |                                         ^~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: error: no matching function for call to ‘begin(llvm::SmallVector<std::pair<void*, long unsigned int>, 0>&)’ [-Wtemplate-body]
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note: there are 6 candidates
/usr/include/c++/15.2.1/initializer_list:90:5: note: candidate 1: ‘template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)’
   90 |     begin(initializer_list<_Tp> __ils) noexcept
      |     ^~~~~
/usr/include/c++/15.2.1/initializer_list:90:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::initializer_list<_Tp>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:54:5: note: candidate 2: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)’
   54 |     begin(_Container& __cont) noexcept(noexcept(__cont.begin()))
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:54:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:55:24: error: ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘begin’
   55 |     -> decltype(__cont.begin())
      |                 ~~~~~~~^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:66:5: note: candidate 3: ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)’
   66 |     begin(const _Container& __cont) noexcept(noexcept(__cont.begin()))
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:66:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:67:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘begin’
   67 |     -> decltype(__cont.begin())
      |                 ~~~~~~~^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:101:5: note: candidate 4: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])’
  101 |     begin(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:101:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   mismatched types ‘_Tp [_Nm]’ and ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:119:31: note: candidate 5: ‘template<class _Tp> _Tp* std::begin(valarray<_Tp>&)’
  119 |   template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept;
      |                               ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:119:31: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::valarray<_Tp>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:120:37: note: candidate 6: ‘template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)’
  120 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
/usr/include/c++/15.2.1/bits/range_access.h:120:37: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘const std::valarray<_Tp>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: error: no matching function for call to ‘end(llvm::SmallVector<std::pair<void*, long unsigned int>, 0>&)’ [-Wtemplate-body]
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note: there are 6 candidates
/usr/include/c++/15.2.1/initializer_list:101:5: note: candidate 1: ‘template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)’
  101 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/15.2.1/initializer_list:101:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::initializer_list<_Tp>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:78:5: note: candidate 2: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)’
   78 |     end(_Container& __cont) noexcept(noexcept(__cont.end()))
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:79:24: error: ‘class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘end’
   79 |     -> decltype(__cont.end())
      |                 ~~~~~~~^~~
/usr/include/c++/15.2.1/bits/range_access.h:90:5: note: candidate 3: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)’
   90 |     end(const _Container& __cont) noexcept(noexcept(__cont.end()))
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:90:5: note: template argument deduction/substitution failed:
/usr/include/c++/15.2.1/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&) [with _Container = llvm::SmallVector<std::pair<void*, long unsigned int>, 0>]’:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:91:24: error: ‘const class llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ has no member named ‘end’
   91 |     -> decltype(__cont.end())
      |                 ~~~~~~~^~~
/usr/include/c++/15.2.1/bits/range_access.h:112:5: note: candidate 4: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])’
  112 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:112:5: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   mismatched types ‘_Tp [_Nm]’ and ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:121:31: note: candidate 5: ‘template<class _Tp> _Tp* std::end(valarray<_Tp>&)’
  121 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
/usr/include/c++/15.2.1/bits/range_access.h:121:31: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘std::valarray<_Tp>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15.2.1/bits/range_access.h:122:37: note: candidate 6: ‘template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)’
  122 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/15.2.1/bits/range_access.h:122:37: note: template argument deduction/substitution failed:
/usr/lib/llvm18/include/llvm/Support/Allocator.h:421:39: note:   ‘llvm::SmallVector<std::pair<void*, long unsigned int>, 0>’ is not derived from ‘const std::valarray<_Tp>’
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorTemplateBase<char, true>’:
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:586:7:   required from ‘class llvm::SmallVectorImpl<char>’
  586 | class SmallVectorImpl : public SmallVectorTemplateBase<T> {
      |       ^~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/Twine.h:321:33:   required from here
  321 |       LHS.ptrAndLength.ptr = Str.data();
      |                                 ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:488:7: error: invalid use of incomplete type ‘class llvm::SmallVectorTemplateCommon<char, void>’
  488 | class SmallVectorTemplateBase<T, true> : public SmallVectorTemplateCommon<T> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:133:7: note: declaration of ‘class llvm::SmallVectorTemplateCommon<char, void>’
  133 | class SmallVectorTemplateCommon
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorImpl<char>’:
/usr/lib/llvm18/include/llvm/ADT/Twine.h:321:33:   required from here
  321 |       LHS.ptrAndLength.ptr = Str.data();
      |                                 ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:590:9: error: no type named ‘iterator’ in ‘using llvm::SmallVectorImpl<char>::SuperClass = class llvm::SmallVectorTemplateBase<char, true>’ {aka ‘class llvm::SmallVectorTemplateBase<char, true>’}
  590 |   using iterator = typename SuperClass::iterator;
      |         ^~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:591:9: error: no type named ‘const_iterator’ in ‘using llvm::SmallVectorImpl<char>::SuperClass = class llvm::SmallVectorTemplateBase<char, true>’ {aka ‘class llvm::SmallVectorTemplateBase<char, true>’}
  591 |   using const_iterator = typename SuperClass::const_iterator;
      |         ^~~~~~~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:592:9: error: no type named ‘reference’ in ‘using llvm::SmallVectorImpl<char>::SuperClass = class llvm::SmallVectorTemplateBase<char, true>’ {aka ‘class llvm::SmallVectorTemplateBase<char, true>’}
  592 |   using reference = typename SuperClass::reference;
      |         ^~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:593:9: error: no type named ‘size_type’ in ‘using llvm::SmallVectorImpl<char>::SuperClass = class llvm::SmallVectorTemplateBase<char, true>’ {aka ‘class llvm::SmallVectorTemplateBase<char, true>’}
  593 |   using size_type = typename SuperClass::size_type;
      |         ^~~~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:630:21: error: ‘set_size’ has not been declared in ‘using llvm::SmallVectorImpl<char>::SuperClass = class llvm::SmallVectorTemplateBase<char, true>’
  630 |   using SuperClass::set_size;
      |                     ^~~~~~~~
In file included from /usr/lib/llvm18/include/llvm/Support/Error.h:17,
                 from /startdir/src/lld-18.1.6.src/include/lld/Common/ErrorHandler.h:74,
                 from /startdir/src/lld-18.1.6.src/include/lld/Common/CommonLinkerContext.h:22,
                 from /startdir/src/lld-18.1.6.src/Common/Memory.cpp:10:
/usr/lib/llvm18/include/llvm/ADT/Twine.h: In constructor ‘llvm::Twine::Twine(const llvm::SmallVectorImpl<char>&)’:
/usr/lib/llvm18/include/llvm/ADT/Twine.h:321:34: error: ‘const class llvm::SmallVectorImpl<char>’ has no member named ‘data’
  321 |       LHS.ptrAndLength.ptr = Str.data();
      |                                  ^~~~
/usr/lib/llvm18/include/llvm/ADT/Twine.h:322:37: error: ‘const class llvm::SmallVectorImpl<char>’ has no member named ‘size’
  322 |       LHS.ptrAndLength.length = Str.size();
      |                                     ^~~~
/usr/lib/llvm18/include/llvm/ADT/Twine.h: In member function ‘llvm::StringRef llvm::Twine::toStringRef(llvm::SmallVectorImpl<char>&) const’:
/usr/lib/llvm18/include/llvm/ADT/Twine.h:496:28: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘data’
  496 |       return StringRef(Out.data(), Out.size());
      |                            ^~~~
/usr/lib/llvm18/include/llvm/ADT/Twine.h:496:40: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘size’
  496 |       return StringRef(Out.data(), Out.size());
      |                                        ^~~~
In file included from /usr/lib/llvm18/include/llvm/Support/Error.h:25:
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h: In member function ‘llvm::raw_ostream& llvm::raw_ostream::operator<<(const llvm::SmallVectorImpl<char>&)’:
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h:257:22: error: ‘const class llvm::SmallVectorImpl<char>’ has no member named ‘data’
  257 |     return write(Str.data(), Str.size());
      |                      ^~~~
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h:257:34: error: ‘const class llvm::SmallVectorImpl<char>’ has no member named ‘size’
  257 |     return write(Str.data(), Str.size());
      |                                  ^~~~
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h: In member function ‘llvm::StringRef llvm::raw_svector_ostream::str() const’:
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h:699:47: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘data’
  699 |   StringRef str() const { return StringRef(OS.data(), OS.size()); }
      |                                               ^~~~
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h:699:58: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘size’
  699 |   StringRef str() const { return StringRef(OS.data(), OS.size()); }
      |                                                          ^~~~
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h: In member function ‘virtual void llvm::raw_svector_ostream::reserveExtraSpace(uint64_t)’:
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h:702:8: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘reserve’
  702 |     OS.reserve(tell() + ExtraSize);
      |        ^~~~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h: In instantiation of ‘llvm::SmallVector<T, N>::~SmallVector() [with T = char; unsigned int N = 0]’:
/usr/lib/llvm18/include/llvm/Support/raw_ostream.h:728:71:   required from here
  728 |   buffer_ostream(raw_ostream &OS) : raw_svector_ostream(Buffer), OS(OS) {}
      |                                                                       ^
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1215:31: error: ‘class llvm::SmallVector<char, 0>’ has no member named ‘begin’
 1215 |     this->destroy_range(this->begin(), this->end());
      |                         ~~~~~~^~~~~
/usr/lib/llvm18/include/llvm/ADT/SmallVector.h:1215:46: error: ‘class llvm::SmallVector<char, 0>’ has no member named ‘end’
 1215 |     this->destroy_range(this->begin(), this->end());
      |                                        ~~~~~~^~~
[10/133] Building CXX object Common/CMakeFiles/lldCommon.dir/CommonLinkerContext.cpp.o
[11/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Timer.cpp.o
[12/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Reproduce.cpp.o
[13/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Args.cpp.o
[14/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Filesystem.cpp.o
[15/133] Building CXX object Common/CMakeFiles/lldCommon.dir/Strings.cpp.o
[16/133] Building CXX object Common/CMakeFiles/lldCommon.dir/DriverDispatcher.cpp.o
[17/133] Building CXX object Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o
[18/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o
[19/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o
[20/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o
[21/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o
[22/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o
[23/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o
[24/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o
[25/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o
[26/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o
[27/133] Building CXX object Common/CMakeFiles/lldCommon.dir/ErrorHandler.cpp.o
[28/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o
[29/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o
[30/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o
[31/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o
[32/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o
[33/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o
[34/133] Building CXX object COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_3cf40ae4-f969-4201-822b-3ac14a4d1002/build
