Package: src:libelfin
Version: 0.3-3.1
Severity: important
Tags: sid trixie
User: pkg-llvm-t...@lists.alioth.debian.org
Usertags: llvm-18
libelfin fails autopkg test with LLVM 18:
[...]
194s autopkgtest [11:48:56]: test test-build-libdwarf++:
[-----------------------
194s Output from pkg-config --cflags libdwarf++:
194s -I/usr/include/libelfin
194s success: pkg-config call succeeded
194s success: Compilation with cc and c++ produced x.o
194s success: Linking with c++ produced x
194s In file included from x.cpp:1:
194s In file included from /usr/include/libelfin/dwarf/dwarf++.hh:14:
194s /usr/include/libelfin/dwarf/small_vector.hh:96:50: warning:
variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
194s 96 | char *newbuf = new char[sizeof(T[target])];
194s | ^~~~~~
194s /usr/include/libelfin/dwarf/small_vector.hh:96:50: note: read of
non-const variable 'target' is not allowed in a constant expression
194s /usr/include/libelfin/dwarf/small_vector.hh:90:27: note: declared here
194s 90 | size_type target = cap - base;
194s | ^
194s /usr/include/libelfin/dwarf/small_vector.hh:96:50: warning:
variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
194s 96 | char *newbuf = new char[sizeof(T[target])];
194s | ^~~~~~
194s /usr/include/libelfin/dwarf/small_vector.hh:96:50: note: read of
non-const variable 'target' is not allowed in a constant expression
194s /usr/include/libelfin/dwarf/small_vector.hh:90:27: note: declared here
194s 90 | size_type target = cap - base;
194s | ^
195s /usr/include/libelfin/dwarf/small_vector.hh:96:50: warning:
variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
195s 96 | char *newbuf = new char[sizeof(T[target])];
195s | ^~~~~~
195s /usr/include/libelfin/dwarf/small_vector.hh:68:17: note: in
instantiation of member function 'dwarf::small_vector<unsigned long,
6>::reserve' requested here
195s 68 | reserve(osize);
195s | ^
195s /usr/include/libelfin/dwarf/small_vector.hh:43:31: note: in
instantiation of member function 'dwarf::small_vector<unsigned long,
6>::operator=' requested here
195s 43 | *this = o;
195s | ^
195s /usr/include/libelfin/dwarf/dwarf++.hh:344:9: note: in
instantiation of member function 'dwarf::small_vector<unsigned long,
6>::small_vector' requested here
195s 344 | die(die &&o) = default;
195s | ^
195s /usr/include/libelfin/dwarf/small_vector.hh:96:50: note: read of
non-const variable 'target' is not allowed in a constant expression
195s 96 | char *newbuf = new char[sizeof(T[target])];
195s | ^
195s /usr/include/libelfin/dwarf/small_vector.hh:90:27: note: declared here
195s 90 | size_type target = cap - base;
195s | ^
195s 3 warnings generated.
195s success: Compilation with clang and clang++ produced x.o
195s success: Linking with clang++ produced x
195s info: test exiting
195s autopkgtest [11:48:57]: test test-build-libdwarf++:
-----------------------]
195s test-build-libdwarf++ FAIL stderr: In file included from x.cpp:1: