Bug#1114399: swiftlang: FTBFS: /<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:109:62: error: use of undeclared identifier 'uint64_t'
Santiago Vila
sanvila at debian.org
Fri Sep 5 19:27:03 BST 2025
Package: src:swiftlang
Version: 6.0.3-2
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:swiftlang, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf /<<PKGBUILDDIR>>/binforpython
rm -rf debian/libswiftlang
rm -rf debian/swiftlang
rm -rf debian/swiftlang-dev
rm -rf debian/swiftlang-doc
rm -rf build
rm -rf usr
rm -rf lib
rm -rf bin
rm -rf man
[... snipped ...]
-- 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
CMake Warning at cmake/modules/VersionFromVCS.cmake:49 (message):
Git not found. Version cannot be determined.
Call Stack (most recent call first):
CMakeLists.txt:1067 (get_source_info)
-- Linker detection: GNU ld
-- Setting native build dir to /<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64/NATIVE
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Success
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX - Success
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting PowerPC
-- Targeting SystemZ
-- Targeting Mips
-- Targeting RISCV
-- Targeting WebAssembly
CMake Deprecation Warning at /<<PKGBUILDDIR>>/llvm-project/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):
/<<PKGBUILDDIR>>/llvm-project/clang/CMakeLists.txt:6 (include)
CMake Deprecation Warning at /<<PKGBUILDDIR>>/llvm-project/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):
/<<PKGBUILDDIR>>/llvm-project/clang/CMakeLists.txt:6 (include)
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 17.0.0
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Success
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
CMake Deprecation Warning at /<<PKGBUILDDIR>>/llvm-project/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):
/<<PKGBUILDDIR>>/llvm-project/lld/CMakeLists.txt:6 (include)
CMake Deprecation Warning at /<<PKGBUILDDIR>>/llvm-project/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):
/<<PKGBUILDDIR>>/llvm-project/lld/CMakeLists.txt:6 (include)
-- LLD version: 17.0.0
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Registering ExampleIRTransforms as a pass plugin (static build: OFF)
-- Registering Bye as a pass plugin (static build: OFF)
CMake Deprecation Warning at /<<PKGBUILDDIR>>/llvm-project/third-party/benchmark/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Failed to find LLVM FileCheck
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Version: 1.6.0
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Performing Test HAVE_CXX_FLAG_STD_CXX11
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Failed
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
CMake Warning at /<<PKGBUILDDIR>>/llvm-project/third-party/benchmark/cmake/CXXFeatureCheck.cmake:43 (message):
If you see build failures due to cross compilation, try setting
HAVE_POSIX_REGEX to 0
Call Stack (most recent call first):
/<<PKGBUILDDIR>>/llvm-project/third-party/benchmark/CMakeLists.txt:302 (cxx_feature_check)
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
CMake Warning at /<<PKGBUILDDIR>>/llvm-project/third-party/benchmark/cmake/CXXFeatureCheck.cmake:43 (message):
If you see build failures due to cross compilation, try setting
HAVE_STEADY_CLOCK to 0
Call Stack (most recent call first):
/<<PKGBUILDDIR>>/llvm-project/third-party/benchmark/CMakeLists.txt:311 (cxx_feature_check)
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done (17.8s)
-- Generating done (3.5s)
CMake Warning:
Manually-specified variables were not used by the project:
CLANG_VERSION_PATCH
CMAKE_LIBTOOL
CMAKE_Swift_COMPILER
COVERAGE_DB
LLVM_TOOL_SWIFT_BUILD
SWIFTSYNTAX_ENABLE_ASSERTIONS
SWIFT_BUILD_SWIFT_SYNTAX
SWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE
-- Build files have been written to: /<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64
+ popd
+ env /usr/bin/cmake --build /<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64 --config Release -- -j2 all
[1/5217][ 0%][0.565s] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
[2/5217][ 0%][1.391s] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
[3/5217][ 0%][1.827s] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
[4/5217][ 0%][2.318s] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/RustDemangle.cpp.o
[5/5217][ 0%][2.604s] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/DLangDemangle.cpp.o
[6/5217][ 0%][2.612s] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
[7/5217][ 0%][2.626s] Generating VCSRevision.h
CMake Warning at /<<PKGBUILDDIR>>/llvm-project/llvm/cmake/modules/VersionFromVCS.cmake:49 (message):
Git not found. Version cannot be determined.
Call Stack (most recent call first):
/<<PKGBUILDDIR>>/llvm-project/llvm/cmake/modules/GenerateVersionFromVCS.cmake:44 (get_source_info)
[8/5217][ 0%][2.666s] Linking CXX static library lib/libLLVMDemangle.a
[9/5217][ 0%][2.893s] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_dispatch.c.o
[10/5217][ 0%][2.977s] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3.c.o
[11/5217][ 0%][3.164s] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_neon.c.o
[12/5217][ 0%][3.205s] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_portable.c.o
[13/5217][ 0%][3.236s] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_sse2_x86-64_unix.S.o
[14/5217][ 0%][3.269s] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_sse41_x86-64_unix.S.o
[15/5217][ 0%][3.303s] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx2_x86-64_unix.S.o
[16/5217][ 0%][3.330s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ABIBreak.cpp.o
[17/5217][ 0%][3.335s] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx512_x86-64_unix.S.o
[18/5217][ 0%][4.229s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFixedPoint.cpp.o
[19/5217][ 0%][4.512s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
[20/5217][ 0%][6.245s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
[21/5217][ 0%][6.500s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
[22/5217][ 0%][6.730s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APSInt.cpp.o
[23/5217][ 0%][7.016s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttrs.cpp.o
[24/5217][ 0%][7.441s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o
[25/5217][ 0%][7.821s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o
/usr/bin/clang++ --target=x86_64-pc-linux-gnu -DGTEST_HAS_RT [too-long-redacted] /llvm/lib/Support/Allocator.cpp
In file included from /<<PKGBUILDDIR>>/llvm-project/llvm/lib/Support/Allocator.cpp:13:
In file included from /<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/Support/Allocator.h:20:
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:109:62: error: use of undeclared identifier 'uint64_t'
109 | std::conditional_t<sizeof(T) < 4 && sizeof(void *) >= 8, uint64_t,
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:114:27: error: use of undeclared identifier 'SmallVectorSizeType'
114 | alignas(SmallVectorBase<SmallVectorSizeType<T>>) char Base[sizeof(
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:115:23: error: use of undeclared identifier 'SmallVectorSizeType'
115 | SmallVectorBase<SmallVectorSizeType<T>>)];
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:124:30: error: use of undeclared identifier 'SmallVectorSizeType'
124 | : public SmallVectorBase<SmallVectorSizeType<T>> {
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:125:32: error: use of undeclared identifier 'SmallVectorSizeType'
125 | using Base = SmallVectorBase<SmallVectorSizeType<T>>;
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:265:9: error: use of undeclared identifier 'Base'
265 | using Base::capacity;
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:266:9: error: use of undeclared identifier 'Base'
266 | using Base::empty;
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:267:9: error: use of undeclared identifier 'Base'
267 | using Base::size;
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:138:44: error: member initializer 'Base' does not name a non-static data member or base class
138 | SmallVectorTemplateCommon(size_t Size) : Base(getFirstEl(), Size) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:141:5: error: use of undeclared identifier 'Base'
141 | Base::grow_pod(getFirstEl(), MinSize, TSize);
| ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:146:39: error: no member named 'BeginX' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
146 | bool isSmall() const { return this->BeginX == getFirstEl(); }
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:150:11: error: no member named 'BeginX' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
150 | this->BeginX = getFirstEl();
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:151:11: error: no member named 'Size' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
151 | this->Size = this->Capacity = 0; // FIXME: Setting Capacity to 0 is suspect.
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:151:24: error: no member named 'Capacity' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
151 | this->Size = this->Capacity = 0; // FIXME: Setting Capacity to 0 is suspect.
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:183:26: error: no member named 'size' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
183 | if (NewSize <= this->size())
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:187:29: error: no member named 'capacity' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
187 | return NewSize <= this->capacity();
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:200:55: error: no member named 'size' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
200 | this->assertSafeToReferenceAfterResize(Elt, this->size() + N);
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:270:45: error: no member named 'BeginX' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
270 | iterator begin() { return (iterator)this->BeginX; }
| ~~~~ ^
/<<PKGBUILDDIR>>/llvm-project/llvm/include/llvm/ADT/SmallVector.h:271:63: error: no member named 'BeginX' in 'SmallVectorTemplateCommon<T, type-parameter-0-1>'
271 | const_iterator begin() const { return (const_iterator)this->BeginX; }
| ~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[26/5217][ 0%][7.922s] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMAttributeParser.cpp.o
ninja: build stopped: subcommand failed.
make[1]: *** [debian/rules:42: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:33: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-llvm-team
mailing list