Hi,
finalcut fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.
The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/finalcut_arm64.build.xz
The last lines of the build log are at the end of this report.
To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html
Please only close this issue after double-checking that the package can be
built correctly with GCC 16.
Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.
[...]
inlined from 'void finalcut::FComboBox::cb_inputFieldHandOver()' at widget/fcombobox.cpp:644:62:
/usr/include/c++/16/bits/new_allocator.h:151:73: note: at offset 16 into object of size 48 allocated by 'operator new'
151 | return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
| ^
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:1040: widget/fcombobox.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c input/fkeyboard.cpp -o input/fkeyboard.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c output/tty/ftermxterminal.cpp -o output/tty/ftermxterminal.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/fwindow.cpp -o widget/fwindow.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c util/fstring.cpp -o util/fstring.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c output/tty/ftermlinux.cpp -o output/tty/ftermlinux.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c menu/fmenu.cpp -o menu/fmenu.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c input/fmouse.cpp -o input/fmouse.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c output/tty/foptiattr.cpp -o output/tty/foptiattr.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c output/tty/ftermdetection.cpp -o output/tty/ftermdetection.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/fscrollview.cpp -o widget/fscrollview.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/ftextview.cpp -o widget/ftextview.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c dialog/ffiledialog.cpp -o dialog/ffiledialog.o >/dev/null 2>&1
In file included from /usr/include/c++/16/bits/stl_tempbuf.h:61,
from /usr/include/c++/16/memory:68,
from dialog/fdialog.cpp:23:
In function 'constexpr void std::_Destroy(_Tp*) [with _Tp = array<finalcut::FKeyMap::KeyCapMap, 190>]',
inlined from 'static void std::allocator_traits<std::allocator<void> >::destroy(allocator_type&, _Up*) [with _Up = std::array<finalcut::FKeyMap::KeyCapMap, 190>]' at /usr/include/c++/16/bits/alloc_traits.h:859:17,
inlined from 'void std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_dispose() [with _Tp = std::array<finalcut::FKeyMap::KeyCapMap, 190>; _Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:682:35,
inlined from 'void std::_Sp_counted_base<_Lp>::_M_release() [with __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:423:18,
inlined from 'void std::_Sp_counted_base<_Lp>::_M_release() [with __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:392:5,
inlined from 'std::__shared_count<_Lp>::~__shared_count() [with __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:1136:21,
inlined from 'std::__shared_ptr<_Tp, _Lp>::~__shared_ptr() [with _Tp = finalcut::FMouseEvent; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:1610:7,
inlined from 'std::shared_ptr<finalcut::FMouseEvent>::~shared_ptr()' at /usr/include/c++/16/bits/shared_ptr.h:175:11,
inlined from 'void finalcut::FDialog::passEventToSubMenu(const MouseStates&, const finalcut::FMouseEvent&)' at dialog/fdialog.cpp:1558:62,
inlined from 'virtual void finalcut::FDialog::onMouseMove(finalcut::FMouseEvent*)' at dialog/fdialog.cpp:569:24:
/usr/include/c++/16/bits/stl_construct.h:166:7: error: array subscript 'std::array<finalcut::FKeyMap::KeyCapMap, 190>[0]' is partly outside array bounds of 'unsigned char [48]' [-Werror=array-bounds=]
166 | __pointer->~_Tp();
| ^~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/c++/16/bits/c++allocator.h:33,
from /usr/include/c++/16/bits/allocator.h:46,
from /usr/include/c++/16/memory:67:
In member function '_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*) [with _Tp = std::_Sp_counted_ptr_inplace<finalcut::FMouseEvent, std::allocator<void>, __gnu_cxx::_S_atomic>]',
inlined from 'static _Tp* std::allocator_traits<std::allocator<_Tp1> >::allocate(allocator_type&, size_type) [with _Tp = std::_Sp_counted_ptr_inplace<finalcut::FMouseEvent, std::allocator<void>, __gnu_cxx::_S_atomic>]' at /usr/include/c++/16/bits/alloc_traits.h:638:28,
inlined from 'std::__allocated_ptr<_Alloc> std::__allocate_guarded(_Alloc&) [with _Alloc = allocator<_Sp_counted_ptr_inplace<finalcut::FMouseEvent, allocator<void>, __gnu_cxx::_S_atomic> >]' at /usr/include/c++/16/bits/allocated_ptr.h:103:69,
inlined from 'std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = finalcut::FMouseEvent; _Alloc = std::allocator<void>; _Args = {finalcut::Event, const finalcut::FPoint&, const finalcut::FPoint&, const finalcut::MouseButton&}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:1034:9,
inlined from 'std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {finalcut::Event, const finalcut::FPoint&, const finalcut::FPoint&, const finalcut::MouseButton&}; _Tp = finalcut::FMouseEvent; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]' at /usr/include/c++/16/bits/shared_ptr_base.h:1812:14,
inlined from 'std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {finalcut::Event, const finalcut::FPoint&, const finalcut::FPoint&, const finalcut::MouseButton&}; _Tp = finalcut::FMouseEvent]' at /usr/include/c++/16/bits/shared_ptr.h:463:59,
inlined from 'std::shared_ptr<typename std::enable_if<(! std::is_array<_Tp>::value), _Tp>::type> std::make_shared(_Args&& ...) [with _Tp = finalcut::FMouseEvent; _Args = {finalcut::Event, const finalcut::FPoint&, const finalcut::FPoint&, const finalcut::MouseButton&}]' at /usr/include/c++/16/bits/shared_ptr.h:1066:39,
inlined from 'void finalcut::FDialog::passEventToSubMenu(const MouseStates&, const finalcut::FMouseEvent&)' at dialog/fdialog.cpp:1558:62,
inlined from 'virtual void finalcut::FDialog::onMouseMove(finalcut::FMouseEvent*)' at dialog/fdialog.cpp:569:24:
/usr/include/c++/16/bits/new_allocator.h:151:73: note: at offset 16 into object of size 48 allocated by 'operator new'
151 | return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
| ^
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c vterm/fvterm.cpp -o vterm/fvterm.o >/dev/null 2>&1
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:1040: dialog/fdialog.lo] Error 1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/flistbox.cpp -o widget/flistbox.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c output/tty/fterm.cpp -o output/tty/fterm.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c fwidget.cpp -o fwidget.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c fapplication.cpp -o fapplication.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c output/tty/ftermoutput.cpp -o output/tty/ftermoutput.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/flistview.cpp -o widget/flistview.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/fspinbox.cpp -o widget/fspinbox.o >/dev/null 2>&1
libtool: compile: g++ -std=gnu++11 -std=gnu++14 -DHAVE_CONFIG_H -I. -I.. -I../final -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++14 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/finalcut-0.9.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c widget/flineedit.cpp -o widget/flineedit.o >/dev/null 2>&1
make[4]: Leaving directory '/build/reproducible-path/finalcut-0.9.1/final'
make[3]: *** [Makefile:1252: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/finalcut-0.9.1/final'
make[2]: *** [Makefile:503: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/finalcut-0.9.1'
make[1]: *** [Makefile:391: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/finalcut-0.9.1'
dh_auto_build: error: make -j128 returned exit code 2
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2