Package: src:ccls
Version: 0.20240202-1
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- -DCCLS_VERSION=0.20240202-1 
-DCLANG_RESOURCE_DIR=/usr/include/clang/19
        cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb 
PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON 
-DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix 
Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu 
-DCCLS_VERSION=0.20240202-1 -DCLANG_RESOURCE_DIR=/usr/include/clang/19 ..
-- The CXX compiler identification is GNU 14.2.0
-- The C compiler identification is GNU 14.2.0
-- 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
-- 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
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib/x86_64-linux-gnu/libffi.so
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find zstd (missing: zstd_LIBRARY zstd_INCLUDE_DIR)
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.14")
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- RapidJSON found. Headers: /usr/include
-- Configuring done (0.5s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LOCALSTATEDIR
    CMAKE_INSTALL_RUNSTATEDIR
    CMAKE_INSTALL_SYSCONFDIR
    FETCHCONTENT_FULLY_DISCONNECTED


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
        cd obj-x86_64-linux-gnu && make -j2 "INSTALL=install 
--strip-program=true" VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu 
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f CMakeFiles/ccls.dir/build.make CMakeFiles/ccls.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> 
/<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/ccls.dir/DependInfo.cmake "--color="
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f CMakeFiles/ccls.dir/build.make CMakeFiles/ccls.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[  4%] Building CXX object CMakeFiles/ccls.dir/third_party/siphash.cc.o
[  4%] Building CXX object CMakeFiles/ccls.dir/src/clang_tu.cc.o
/usr/bin/c++  -I/<<PKGBUILDDIR>>/src -isystem /<<PKGBUILDDIR>>/third_party -isystem 
/usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Wall 
-Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/third_party/siphash.cc.o -MF 
CMakeFiles/ccls.dir/third_party/siphash.cc.o.d -o CMakeFiles/ccls.dir/third_party/siphash.cc.o -c 
/<<PKGBUILDDIR>>/third_party/siphash.cc
/usr/bin/c++  -I/<<PKGBUILDDIR>>/src -isystem /<<PKGBUILDDIR>>/third_party -isystem 
/usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Wall 
-Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/clang_tu.cc.o -MF 
CMakeFiles/ccls.dir/src/clang_tu.cc.o.d -o CMakeFiles/ccls.dir/src/clang_tu.cc.o -c /<<PKGBUILDDIR>>/src/clang_tu.cc
[  6%] Building CXX object CMakeFiles/ccls.dir/src/config.cc.o
/usr/bin/c++  -I/<<PKGBUILDDIR>>/src -isystem /<<PKGBUILDDIR>>/third_party -isystem 
/usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Wall 
-Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/config.cc.o -MF 
CMakeFiles/ccls.dir/src/config.cc.o.d -o CMakeFiles/ccls.dir/src/config.cc.o -c /<<PKGBUILDDIR>>/src/config.cc
[  9%] Building CXX object CMakeFiles/ccls.dir/src/filesystem.cc.o
/usr/bin/c++  -I/<<PKGBUILDDIR>>/src -isystem /<<PKGBUILDDIR>>/third_party -isystem 
/usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Wall 
-Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/filesystem.cc.o -MF 
CMakeFiles/ccls.dir/src/filesystem.cc.o.d -o CMakeFiles/ccls.dir/src/filesystem.cc.o -c 
/<<PKGBUILDDIR>>/src/filesystem.cc
[ 11%] Building CXX object CMakeFiles/ccls.dir/src/fuzzy_match.cc.o
/usr/bin/c++  -I/<<PKGBUILDDIR>>/src -isystem /<<PKGBUILDDIR>>/third_party -isystem 
/usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Wall 
-Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/fuzzy_match.cc.o -MF 
CMakeFiles/ccls.dir/src/fuzzy_match.cc.o.d -o CMakeFiles/ccls.dir/src/fuzzy_match.cc.o -c 
/<<PKGBUILDDIR>>/src/fuzzy_match.cc
[ 13%] Building CXX object CMakeFiles/ccls.dir/src/main.cc.o
/usr/bin/c++  -DCCLS_VERSION=\"0.20240202-1\" -I/<<PKGBUILDDIR>>/src -isystem 
/<<PKGBUILDDIR>>/third_party -isystem /usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
-std=c++17 -Wall -Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/main.cc.o -MF 
CMakeFiles/ccls.dir/src/main.cc.o.d -o CMakeFiles/ccls.dir/src/main.cc.o -c /<<PKGBUILDDIR>>/src/main.cc
/<<PKGBUILDDIR>>/src/clang_tu.cc: In function ‘std::string 
ccls::pathFromFileEntry(clang::FileEntryRef)’:
/<<PKGBUILDDIR>>/src/clang_tu.cc:32:22: error: ‘class llvm::StringRef’ has no 
member named ‘startswith’; did you mean ‘starts_with’?
   32 |   if (file.getName().startswith("/../")) {
      |                      ^~~~~~~~~~
      |                      starts_with
/<<PKGBUILDDIR>>/src/clang_tu.cc: In function ‘const char* 
ccls::clangBuiltinTypeName(int)’:
/<<PKGBUILDDIR>>/src/clang_tu.cc:340:21: error: ‘OMPArraySection’ is not a 
member of ‘clang::BuiltinType’
  340 |   case BuiltinType::OMPArraySection:
      |                     ^~~~~~~~~~~~~~~
[ 16%] Building CXX object CMakeFiles/ccls.dir/src/include_complete.cc.o
/usr/bin/c++  -I/<<PKGBUILDDIR>>/src -isystem /<<PKGBUILDDIR>>/third_party -isystem 
/usr/lib/llvm-19/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Wall 
-Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/include_complete.cc.o -MF 
CMakeFiles/ccls.dir/src/include_complete.cc.o.d -o CMakeFiles/ccls.dir/src/include_complete.cc.o -c 
/<<PKGBUILDDIR>>/src/include_complete.cc
make[3]: *** [CMakeFiles/ccls.dir/build.make:93: 
CMakeFiles/ccls.dir/src/clang_tu.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/<<PKGBUILDDIR>>/src/include_complete.cc: In lambda function:
/<<PKGBUILDDIR>>/src/include_complete.cc:117:37: error: ‘class llvm::StringRef’ 
has no member named ‘endswith’; did you mean ‘ends_with’?
  117 |                 if (StringRef(path).endswith(suffix))
      |                                     ^~~~~~~~
      |                                     ends_with
/<<PKGBUILDDIR>>/src/include_complete.cc: In member function ‘void 
ccls::IncludeComplete::addFile(const std::string&)’:
/<<PKGBUILDDIR>>/src/include_complete.cc:158:25: error: ‘class llvm::StringRef’ 
has no member named ‘endswith’; did you mean ‘ends_with’?
  158 |     if (StringRef(path).endswith(suffix))
      |                         ^~~~~~~~
      |                         ends_with
make[3]: *** [CMakeFiles/ccls.dir/build.make:163: 
CMakeFiles/ccls.dir/src/include_complete.cc.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:93: CMakeFiles/ccls.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 "INSTALL=install 
--strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

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

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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to