Bug#1114187: llvm-toolchain-18: FTBFS: /<<PKGBUILDDIR>>/llvm/include/llvm/ADT/SmallVector.h:119:62: error: 'uint64_t' was not declared in this scope

Santiago Vila sanvila at debian.org
Fri Sep 5 19:19:50 BST 2025


Package: src:llvm-toolchain-18
Version: 1:18.1.8-18
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:llvm-toolchain-18, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with ocaml
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf build-llvm llvm/docs/_build/ clang/docs/_build tools/clang/docs/_html/
rm -rf cov-int/ reports/
rm -f `ls debian/*.in|grep -v control.in|sed -e "s|.in$||g"`
find utils -name '*.pyc' | xargs -r rm -f
# Use -I because a test has a space in its name
find lldb/test -iname '*.pyc' | xargs -I{} -r rm -f {}
rm -f /<<PKGBUILDDIR>>/utils/vim/llvm-18.vim /<<PKGBUILDDIR>>/utils/vim/tablegen-18.vim
rm -f /<<PKGBUILDDIR>>/clang/tools/clang-format/clang-format-diff-18
rm -f /<<PKGBUILDDIR>>/clang/tools/clang-format/clang-format-18.py
rm -rf libclc/build

[... snipped ...]

/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:66:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:101:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:119:31: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:120:37: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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) {
      |                             ^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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]
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:363:29: note: there are 6 candidates
/usr/include/c++/15/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/initializer_list:101:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:90:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:363:29:   required from here
  363 |     for (auto &PtrAndSize : CustomSizedSlabs) {
      |                             ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:112:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:121:31: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:122:37: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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) {
      |                             ^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h: In member function ‘void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
/<<PKGBUILDDIR>>/llvm/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;
      |                                   ^~~~~
/<<PKGBUILDDIR>>/llvm/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;
      |                                                                            ^
/<<PKGBUILDDIR>>/llvm/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));
      |                                         ^~~~~
/<<PKGBUILDDIR>>/llvm/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
      |                                         ^~~~
/<<PKGBUILDDIR>>/llvm/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) {
      |                                       ^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:421:39: note: there are 6 candidates
/usr/include/c++/15/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/initializer_list:90:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:54:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:66:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:101:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:119:31: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:120:37: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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) {
      |                                       ^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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]
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:421:39: note: there are 6 candidates
/usr/include/c++/15/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/initializer_list:101:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:90:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/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>]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/Allocator.h:421:39:   required from here
  421 |     for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
      |                                       ^~~~~~~~~~~~~~~~
/usr/include/c++/15/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/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/bits/range_access.h:112:5: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:121:31: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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/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/bits/range_access.h:122:37: note: template argument deduction/substitution failed:
/<<PKGBUILDDIR>>/llvm/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) {
      |                                       ^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorTemplateBase<char, true>’:
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/SmallVector.h:586:7:   required from ‘class llvm::SmallVectorImpl<char>’
  586 | class SmallVectorImpl : public SmallVectorTemplateBase<T> {
      |       ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h:244:28:   required from here
  244 |     return this->operator<<(StringRef(Str));
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/SmallVector.h:133:7: note: declaration of ‘class llvm::SmallVectorTemplateCommon<char, void>’
  133 | class SmallVectorTemplateCommon
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/SmallVector.h: In instantiation of ‘class llvm::SmallVectorImpl<char>’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h:244:28:   required from here
  244 |     return this->operator<<(StringRef(Str));
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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;
      |         ^~~~~~~~
/<<PKGBUILDDIR>>/llvm/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;
      |         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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;
      |         ^~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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;
      |         ^~~~~~~~~
/<<PKGBUILDDIR>>/llvm/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 /<<PKGBUILDDIR>>/llvm/lib/Support/Allocator.cpp:14:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h: In member function ‘llvm::raw_ostream& llvm::raw_ostream::operator<<(const llvm::SmallVectorImpl<char>&)’:
/<<PKGBUILDDIR>>/llvm/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());
      |                      ^~~~
/<<PKGBUILDDIR>>/llvm/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());
      |                                  ^~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h: In member function ‘llvm::StringRef llvm::raw_svector_ostream::str() const’:
/<<PKGBUILDDIR>>/llvm/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()); }
      |                                               ^~~~
/<<PKGBUILDDIR>>/llvm/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()); }
      |                                                          ^~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h: In member function ‘virtual void llvm::raw_svector_ostream::reserveExtraSpace(uint64_t)’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h:702:8: error: ‘class llvm::SmallVectorImpl<char>’ has no member named ‘reserve’
  702 |     OS.reserve(tell() + ExtraSize);
      |        ^~~~~~~
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/SmallVector.h: In instantiation of ‘llvm::SmallVector<T, N>::~SmallVector() [with T = char; unsigned int N = 0]’:
/<<PKGBUILDDIR>>/llvm/include/llvm/Support/raw_ostream.h:728:71:   required from here
  728 |   buffer_ostream(raw_ostream &OS) : raw_svector_ostream(Buffer), OS(OS) {}
      |                                                                       ^
/<<PKGBUILDDIR>>/llvm/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());
      |                         ~~~~~~^~~~~
/<<PKGBUILDDIR>>/llvm/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());
      |                                        ~~~~~~^~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
[17/3120] /usr/bin/g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACRO [too-long-redacted] /Support/ARMAttributeParser.cpp
ninja: build stopped: subcommand failed.

cat: build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeOutput.log: No such file or directory
make[1]: *** [debian/rules:891: stamps/debian-full-build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:601: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-llvm-team mailing list